From ff1d158fb15f7a8bc7bca542baac6f9873a58f68 Mon Sep 17 00:00:00 2001 From: "Hongzhi.Song" Date: Mon, 15 Oct 2018 22:54:19 -0400 Subject: ltp: modify mmap_24-2 testcase Mips will return EINVAL instead of ENOMEM as expected if the range [addr + len) exceeds TASK_SIZE. Linux kernel code: arch/mips/mm/mmap.c if (flags & MAP_FIXED) { /* Even MAP_FIXED mappings must reside within TASK_SIZE */ if (TASK_SIZE - len < addr) return -EINVAL; Relax the condition and accept both ENOMEM and EINVAL as expected outcome. Signed-off-by: Hongzhi.Song Signed-off-by: Richard Purdie --- meta/recipes-extended/ltp/ltp_20180515.bb | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/recipes-extended/ltp/ltp_20180515.bb') diff --git a/meta/recipes-extended/ltp/ltp_20180515.bb b/meta/recipes-extended/ltp/ltp_20180515.bb index 643239f793..ff85be723f 100644 --- a/meta/recipes-extended/ltp/ltp_20180515.bb +++ b/meta/recipes-extended/ltp/ltp_20180515.bb @@ -55,6 +55,7 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \ file://0001-syscalls-fcntl-make-OFD-command-use-fcntl64-syscall-.patch \ file://0001-sigwaitinfo01-recent-glibc-calls-syscall-directly.patch \ file://0001-netns_helper.sh-use-ping-6-when-ping6-is-not-avaliab.patch \ + file://0001-open_posix_testsuite-mmap24-2-Relax-condition-a-bit.patch \ " S = "${WORKDIR}/git" -- cgit 1.2.3-korg