summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/ltp/ltp/0001-ustat02-Fix-EFAULT-in-32bit-compatibility-mode.patch36
-rw-r--r--meta/recipes-extended/ltp/ltp_20190517.bb1
2 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0001-ustat02-Fix-EFAULT-in-32bit-compatibility-mode.patch b/meta/recipes-extended/ltp/ltp/0001-ustat02-Fix-EFAULT-in-32bit-compatibility-mode.patch
new file mode 100644
index 0000000000..c936b788fe
--- /dev/null
+++ b/meta/recipes-extended/ltp/ltp/0001-ustat02-Fix-EFAULT-in-32bit-compatibility-mode.patch
@@ -0,0 +1,36 @@
1From 156776a3e29491b363fdc9811912e1298655d060 Mon Sep 17 00:00:00 2001
2From: Steven Price <steven.price@arm.com>
3Date: Fri, 19 Jul 2019 13:48:17 +0100
4Subject: [PATCH] ustat02: Fix EFAULT in 32bit compatibility mode
5
6The size of dev_t is larger than 32 bits which causes the dev argument
7to be passed incorrectly. On Arm this means that the EFAULT test case
8actually returns EINVAL because the device number isn't recognised.
9
10Signed-off-by: Steven Price <steven.price@arm.com>
11Acked-by: Li Wang <liwang@redhat.com>
12
13Upstream-Status: Backport
14[https://github.com/linux-test-project/ltp/commit/156776a3e29491b363fdc9811912e1298655d060]
15
16Signed-off-by: He Zhe <zhe.he@windriver.com>
17---
18 testcases/kernel/syscalls/ustat/ustat02.c | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21diff --git a/testcases/kernel/syscalls/ustat/ustat02.c b/testcases/kernel/syscalls/ustat/ustat02.c
22index 9bbe4f3..1a0e9e0 100644
23--- a/testcases/kernel/syscalls/ustat/ustat02.c
24+++ b/testcases/kernel/syscalls/ustat/ustat02.c
25@@ -36,7 +36,7 @@ int TST_TOTAL = ARRAY_SIZE(tc);
26
27 void run(unsigned int test)
28 {
29- TEST(tst_syscall(__NR_ustat, *tc[test].dev, tc[test].buf));
30+ TEST(tst_syscall(__NR_ustat, (unsigned int)*tc[test].dev, tc[test].buf));
31
32 if ((TST_RET == -1) && (TST_ERR == tc[test].exp_errno))
33 tst_res(TPASS | TTERRNO, "ustat(2) expected failure");
34--
352.7.4
36
diff --git a/meta/recipes-extended/ltp/ltp_20190517.bb b/meta/recipes-extended/ltp/ltp_20190517.bb
index f6c7de62dd..b0e2f969c7 100644
--- a/meta/recipes-extended/ltp/ltp_20190517.bb
+++ b/meta/recipes-extended/ltp/ltp_20190517.bb
@@ -44,6 +44,7 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \
44 file://0001-Add-configure-time-check-for-getdents-getdents64-API.patch \ 44 file://0001-Add-configure-time-check-for-getdents-getdents64-API.patch \
45 file://0002-check-for-RES_USE_INET6-during-configure.patch \ 45 file://0002-check-for-RES_USE_INET6-during-configure.patch \
46 file://0001-syscalls-tgkill03-wait-for-defunct-tid-to-get-detach.patch \ 46 file://0001-syscalls-tgkill03-wait-for-defunct-tid-to-get-detach.patch \
47 file://0001-ustat02-Fix-EFAULT-in-32bit-compatibility-mode.patch \
47 " 48 "
48 49
49S = "${WORKDIR}/git" 50S = "${WORKDIR}/git"