Re: Oops when working with syscalls

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

 



On Wed, 2006-05-31 at 17:25 +0200, Fernando Apesteguía wrote:
> Hi,
> 
> I'm writing a module to profile some syscalls parameters. I replace
> the original functions by my own ones, doing (for brk syscall):
> 
> old_brk = (void *) sct[__NR_brk];
> sct[__NR_brk] = (unsigned long *) my_brk; 

this code isn't going to work ;)
for one it's full of races already

there is a reason the system call table isn't exported to modules...



--
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