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. -Tony
Attachment:
getcpu.patch
Description: Binary data