mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 13:49:49 +00:00
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>
This commit is contained in:
@@ -0,0 +1,34 @@
|
|||||||
|
From 1b30d8dac1a37dc0abbb3b545db2824d6489e23f Mon Sep 17 00:00:00 2001
|
||||||
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
|
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 <raj.khem@gmail.com>
|
||||||
|
---
|
||||||
|
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
|
||||||
|
|
||||||
@@ -50,6 +50,7 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \
|
|||||||
file://0034-periodic_output.patch \
|
file://0034-periodic_output.patch \
|
||||||
file://0035-fix-test_proc_kill-hang.patch \
|
file://0035-fix-test_proc_kill-hang.patch \
|
||||||
file://0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch \
|
file://0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch \
|
||||||
|
file://0001-dirtyc0w-Include-stdint.h.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|||||||
Reference in New Issue
Block a user