From: Denys Dmytriyenko <[email protected]>

Signed-off-by: Denys Dmytriyenko <[email protected]>
---
 .../ltp-ddt/0001-dirtyc0w-Include-stdint.h.patch   | 34 ++++++++++++++++++++++
 .../recipes-devtools/ltp-ddt/ltp-ddt_20170116.bb   |  1 +
 2 files changed, 35 insertions(+)
 create mode 100644 
meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt/0001-dirtyc0w-Include-stdint.h.patch

diff --git 
a/meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt/0001-dirtyc0w-Include-stdint.h.patch
 
b/meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt/0001-dirtyc0w-Include-stdint.h.patch
new file mode 100644
index 0000000..5c73be4
--- /dev/null
+++ 
b/meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt/0001-dirtyc0w-Include-stdint.h.patch
@@ -0,0 +1,34 @@
+From 1b30d8dac1a37dc0abbb3b545db2824d6489e23f Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Fri, 9 Jun 2017 09:32:13 -0700
+Subject: [PATCH] dirtyc0w: Include stdint.h
+
+uintptr_t is defined in stdint.h
+
+Fixes
+| dirtyc0w_child.c:76:15: error: 'uintptr_t' undeclared (first use in this 
function); did you mean 'intptr_t'?
+|    lseek(mfd, (uintptr_t) map, SEEK_SET);
+|                ^~~~~~~~~
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+Upstream-Status: Submitted
+
+ testcases/kernel/security/dirtyc0w/dirtyc0w_child.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/testcases/kernel/security/dirtyc0w/dirtyc0w_child.c 
b/testcases/kernel/security/dirtyc0w/dirtyc0w_child.c
+index 5328a9bc4..49abdd6ba 100644
+--- a/testcases/kernel/security/dirtyc0w/dirtyc0w_child.c
++++ b/testcases/kernel/security/dirtyc0w/dirtyc0w_child.c
+@@ -23,6 +23,7 @@
+ #include <sys/stat.h>
+ #include <string.h>
+ #include <stdlib.h>
++#include <stdint.h>
+ #include <pwd.h>
+ 
+ #include "tst_safe_pthread.h"
+-- 
+2.13.1
+
diff --git a/meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20170116.bb 
b/meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20170116.bb
index edc43f3..d97e0e0 100644
--- a/meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20170116.bb
+++ b/meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20170116.bb
@@ -18,6 +18,7 @@ SRCREV = "4a32e93b9fb16da6e26ab84cb225f89255aeb7db"
 BRANCH ?= "master"
 
 SRC_URI = 
"git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH}"
+SRC_URI += "file://0001-dirtyc0w-Include-stdint.h.patch"
 
 S = "${WORKDIR}/git"
 
-- 
2.7.4

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to