On Tuesday 08 May 2012 17:13:28 Tony Luck wrote: > On Mon, May 7, 2012 at 4:53 PM, Mike Frysinger <vapier@xxxxxxxxxx> wrote: > > i guess that needs to load some p reg with a NULL pointer test and then > > do the loads/stores based on that. calling getcpu(NULL, NULL, NULL) > > from userspace shouldn't trigger EFAULT. > > We could do that (see attached, untested, patch). But it wouldn't help > the sched_getcpu() code much ... it would stop getting -EFAULT, but > it still wouldn't have the right return value. seems to work for me Tested-by: Mike Frysinger <vapier@xxxxxxxxxx> also, strace shows the successful syscall via the vdso, but not the failing ones. not sure where things are going wrong with that though. -mike
Attachment:
signature.asc
Description: This is a digitally signed message part.