diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-10-22 14:56:12 -0700 |
---|---|---|
committer | Florian Fainelli <f.fainelli@gmail.com> | 2017-10-24 15:10:23 -0700 |
commit | fd75e4d264d305347647a29ae2dab56c9f3967c9 (patch) | |
tree | b1ede17d36f59acc4f3513aaa0f6cf096c7d8b06 /target/linux/uml/patches-4.9/002-um-Correctly-check-for-PTRACE_GETRESET-SETREGSET.patch | |
parent | 5e425ad42445750b3b995a93b3083f41ae381a3f (diff) | |
download | upstream-fd75e4d264d305347647a29ae2dab56c9f3967c9.tar.gz upstream-fd75e4d264d305347647a29ae2dab56c9f3967c9.tar.bz2 upstream-fd75e4d264d305347647a29ae2dab56c9f3967c9.zip |
uml: Add 4.9 kernel patches
102-pseudo-random-mac.patch required an update to the new style asynchronous
crypto
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Diffstat (limited to 'target/linux/uml/patches-4.9/002-um-Correctly-check-for-PTRACE_GETRESET-SETREGSET.patch')
-rw-r--r-- | target/linux/uml/patches-4.9/002-um-Correctly-check-for-PTRACE_GETRESET-SETREGSET.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/target/linux/uml/patches-4.9/002-um-Correctly-check-for-PTRACE_GETRESET-SETREGSET.patch b/target/linux/uml/patches-4.9/002-um-Correctly-check-for-PTRACE_GETRESET-SETREGSET.patch new file mode 100644 index 0000000000..79beb823c2 --- /dev/null +++ b/target/linux/uml/patches-4.9/002-um-Correctly-check-for-PTRACE_GETRESET-SETREGSET.patch @@ -0,0 +1,29 @@ +From 61e8d462457f202bf0c6393133425ad387825e22 Mon Sep 17 00:00:00 2001 +From: Richard Weinberger <richard@nod.at> +Date: Thu, 6 Jul 2017 09:35:27 +0200 +Subject: [PATCH] um: Correctly check for PTRACE_GETRESET/SETREGSET + +[ Upstream commit 61e8d462457f202bf0c6393133425ad387825e22 ] + +When checking for PTRACE_GETRESET/SETREGSET, make sure that +the correct header file is included. We need linux/ptrace.h +which contains all ptrace UAPI related defines. +Otherwise #if defined(PTRACE_GETRESET) is always false. + +Cc: Florian Fainelli <f.fainelli@gmail.com> +Signed-off-by: Richard Weinberger <richard@nod.at> +--- + arch/x86/um/user-offsets.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/arch/x86/um/user-offsets.c ++++ b/arch/x86/um/user-offsets.c +@@ -5,7 +5,7 @@ + #include <sys/mman.h> + #include <sys/user.h> + #define __FRAME_OFFSETS +-#include <asm/ptrace.h> ++#include <linux/ptrace.h> + #include <asm/types.h> + + #ifdef __i386__ |