Messages in this thread | | | Date | Mon, 14 Jan 2013 17:01:53 +0100 | From | Oleg Nesterov <> | Subject | Re: PTRACE_SYSCALL && vsyscall (Was: arch_check_bp_in_kernelspace: fix the range check) |
| |
On 01/14, u3557@miso.sublimeip.com wrote: > > So here again is the patch that I need so badly - clearly it fixes a bug > and harms nobody: > > ----------------------------------------------------------------------- > diff -Naur before/arch/x86/kernel/hw_breakpoint.c > after/arch/x86/kernel/hw_breakpoint.c > --- before/arch/x86/kernel/hw_breakpoint.c 2013-01-14 12:45:20.000000000 > +1030 > +++ after/arch/x86/kernel/hw_breakpoint.c 2013-01-14 12:46:24.000000000 +1030 > @@ -200,7 +200,8 @@ > va = info->address; > len = get_hbp_len(info->len); > > - return (va >= TASK_SIZE) && ((va + len - 1) >= TASK_SIZE); > + return (va >= TASK_SIZE) && ((va + len - 1) >= TASK_SIZE) && > + !((va >= VSYSCALL_START) && ((va + len - 1) <= VSYSCALL_END)); > }
I meant this one: http://marc.info/?l=linux-kernel&m=135336050319266 on top of http://marc.info/?l=linux-kernel&m=135248575426474
But nobody bothers to take even the trivial bugfix I sent ;)
Oleg.
| |