Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1682131 > unrolled thread
| Started by | Richard Weinberger <richard@nod.at> |
|---|---|
| First post | 2017-07-06 09:40 +0200 |
| Last post | 2017-07-07 11:40 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] um: Correctly check for PTRACE_GETRESET/SETREGSET Richard Weinberger <richard@nod.at> - 2017-07-06 09:40 +0200
Re: [PATCH] um: Correctly check for PTRACE_GETRESET/SETREGSET Richard Weinberger <richard.weinberger@gmail.com> - 2017-07-07 11:40 +0200
| From | Richard Weinberger <richard@nod.at> |
|---|---|
| Date | 2017-07-06 09:40 +0200 |
| Subject | [PATCH] um: Correctly check for PTRACE_GETRESET/SETREGSET |
| Message-ID | <u09yi-1lP-17@gated-at.bofh.it> |
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(-) diff --git a/arch/x86/um/user-offsets.c b/arch/x86/um/user-offsets.c index 8af0fb5d2780..ae4cd58c0c7a 100644 --- 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__ -- 2.12.3
[toc] | [next] | [standalone]
| From | Richard Weinberger <richard.weinberger@gmail.com> |
|---|---|
| Date | 2017-07-07 11:40 +0200 |
| Message-ID | <u0xTY-24L-15@gated-at.bofh.it> |
| In reply to | #1682131 |
On Thu, Jul 6, 2017 at 9:35 AM, Richard Weinberger <richard@nod.at> wrote: > 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> Applied. -- Thanks, //richard
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web