diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-06-12 07:59:03 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-13 10:46:34 +0100 |
commit | d90102ed2564a644f2f816fc6ccee3378e88ebc6 (patch) | |
tree | 3eaa8a5ef3873fd9465e3c733f08616089a51ae5 | |
parent | 18369bf39c9ad8439b688b0b6b4e640de7a82143 (diff) | |
download | poky-d90102ed2564a644f2f816fc6ccee3378e88ebc6.tar.gz |
ltp: Include stdint.h for uintptr_t
Fixes build with musl and upcoming glibc
(From OE-Core rev: af314c17f6c32afbed9a277775156b9bbc5ac033)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-extended/ltp/ltp/0001-dirtyc0w-Include-stdint.h.patch | 34 | ||||
-rw-r--r-- | meta/recipes-extended/ltp/ltp_20170516.bb | 1 |
2 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0001-dirtyc0w-Include-stdint.h.patch b/meta/recipes-extended/ltp/ltp/0001-dirtyc0w-Include-stdint.h.patch new file mode 100644 index 0000000000..5c73be440b --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/0001-dirtyc0w-Include-stdint.h.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From 1b30d8dac1a37dc0abbb3b545db2824d6489e23f Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 9 Jun 2017 09:32:13 -0700 | ||
4 | Subject: [PATCH] dirtyc0w: Include stdint.h | ||
5 | |||
6 | uintptr_t is defined in stdint.h | ||
7 | |||
8 | Fixes | ||
9 | | dirtyc0w_child.c:76:15: error: 'uintptr_t' undeclared (first use in this function); did you mean 'intptr_t'? | ||
10 | | lseek(mfd, (uintptr_t) map, SEEK_SET); | ||
11 | | ^~~~~~~~~ | ||
12 | |||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | --- | ||
15 | Upstream-Status: Submitted | ||
16 | |||
17 | testcases/kernel/security/dirtyc0w/dirtyc0w_child.c | 1 + | ||
18 | 1 file changed, 1 insertion(+) | ||
19 | |||
20 | diff --git a/testcases/kernel/security/dirtyc0w/dirtyc0w_child.c b/testcases/kernel/security/dirtyc0w/dirtyc0w_child.c | ||
21 | index 5328a9bc4..49abdd6ba 100644 | ||
22 | --- a/testcases/kernel/security/dirtyc0w/dirtyc0w_child.c | ||
23 | +++ b/testcases/kernel/security/dirtyc0w/dirtyc0w_child.c | ||
24 | @@ -23,6 +23,7 @@ | ||
25 | #include <sys/stat.h> | ||
26 | #include <string.h> | ||
27 | #include <stdlib.h> | ||
28 | +#include <stdint.h> | ||
29 | #include <pwd.h> | ||
30 | |||
31 | #include "tst_safe_pthread.h" | ||
32 | -- | ||
33 | 2.13.1 | ||
34 | |||
diff --git a/meta/recipes-extended/ltp/ltp_20170516.bb b/meta/recipes-extended/ltp/ltp_20170516.bb index 012c43de35..31f339461f 100644 --- a/meta/recipes-extended/ltp/ltp_20170516.bb +++ b/meta/recipes-extended/ltp/ltp_20170516.bb | |||
@@ -50,6 +50,7 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \ | |||
50 | file://0034-periodic_output.patch \ | 50 | file://0034-periodic_output.patch \ |
51 | file://0035-fix-test_proc_kill-hang.patch \ | 51 | file://0035-fix-test_proc_kill-hang.patch \ |
52 | file://0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch \ | 52 | file://0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch \ |
53 | file://0001-dirtyc0w-Include-stdint.h.patch \ | ||
53 | " | 54 | " |
54 | 55 | ||
55 | S = "${WORKDIR}/git" | 56 | S = "${WORKDIR}/git" |