Re: [PATCH v2 -next] x86,vdso: Fix an OOPS accessing the hpet mapping w/o an hpet

2014-05-14 Thread Hillf Danton
On Thu, May 15, 2014 at 11:38 AM, Andrew Morton wrote: > > We could easily change the interface so that pages==NULL means "no > pages" but that isn't the way it works at present. > Yeah, thanks /Hillf -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a messa

Re: [PATCH v2 -next] x86,vdso: Fix an OOPS accessing the hpet mapping w/o an hpet

2014-05-14 Thread Andrew Morton
On Thu, 15 May 2014 11:18:29 +0800 Hillf Danton wrote: > > --- a/arch/x86/vdso/vma.c > > +++ b/arch/x86/vdso/vma.c > > @@ -90,6 +90,7 @@ static int map_vdso(const struct vdso_image *image, bool > > calculate_addr) > > struct vm_area_struct *vma; > > unsigned long addr; > >

Re: [PATCH v2 -next] x86,vdso: Fix an OOPS accessing the hpet mapping w/o an hpet

2014-05-14 Thread Hillf Danton
Hi Andy, On Thu, May 15, 2014 at 7:46 AM, Andy Lutomirski wrote: > The oops can be triggered in qemu using -no-hpet (but not nohpet) by > reading a couple of pages past the end of the vdso text. This > should send SIGBUS instead of OOPSing. > > The bug was introduced by: > > commit 7a59ed415f5b5

[PATCH v2 -next] x86,vdso: Fix an OOPS accessing the hpet mapping w/o an hpet

2014-05-14 Thread Andy Lutomirski
The oops can be triggered in qemu using -no-hpet (but not nohpet) by reading a couple of pages past the end of the vdso text. This should send SIGBUS instead of OOPSing. The bug was introduced by: commit 7a59ed415f5b57469e22e41fc4188d5399e0b194 Author: Stefani Seibold Date: Mon Mar 17 23:22:0