Re: getcpu() returns EFAULT when called via the vdso

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux