diff options
Diffstat (limited to 'arch/x86/um/ptrace_32.c')
| -rw-r--r-- | arch/x86/um/ptrace_32.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/um/ptrace_32.c b/arch/x86/um/ptrace_32.c index 5766ead6fdb9..60a5a5a85505 100644 --- a/arch/x86/um/ptrace_32.c +++ b/arch/x86/um/ptrace_32.c | |||
| @@ -36,7 +36,8 @@ int is_syscall(unsigned long addr) | |||
| 36 | * slow, but that doesn't matter, since it will be called only | 36 | * slow, but that doesn't matter, since it will be called only |
| 37 | * in case of singlestepping, if copy_from_user failed. | 37 | * in case of singlestepping, if copy_from_user failed. |
| 38 | */ | 38 | */ |
| 39 | n = access_process_vm(current, addr, &instr, sizeof(instr), 0); | 39 | n = access_process_vm(current, addr, &instr, sizeof(instr), |
| 40 | FOLL_FORCE); | ||
| 40 | if (n != sizeof(instr)) { | 41 | if (n != sizeof(instr)) { |
| 41 | printk(KERN_ERR "is_syscall : failed to read " | 42 | printk(KERN_ERR "is_syscall : failed to read " |
| 42 | "instruction from 0x%lx\n", addr); | 43 | "instruction from 0x%lx\n", addr); |
