Re: What is __KERNEL_SYSCALLS__ for?

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

 



On Tue, 2004-11-16 at 13:07 -0600, Timur Tabi wrote:
> Arjan van de Ven wrote:
> 
> > ewwww why do you need to find sys_read ????????
> > 
> > or call it ???
> 
> It's a long story.  We do the same thing the infiniband driver does. 
> Because of a bug in the VM with respect to get_user_pages(), we need to 
> call sys_mlock().  The bug's been fixed in 2.6, but we're stuck with 
> sys_mlock() in 2.4.  To find sys_mlock(), we scan memory for the 
> addresses of known sys_xxx functions, and extrapolate the address for 
> sys_mlock() that way.

Remind me to never run your module... that's one nice security hole ;)
-- 


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux