On Tuesday 15 May 2012 01:41:11 Mike Frysinger wrote: > 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> was this patch going to get merged at some point ? -mike
Attachment:
signature.asc
Description: This is a digitally signed message part.