Re: i has some problem about sock_sendmsg and sock_recvmsg

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

 



Hi Sasin

> first ... i try to change some kernel code for support add system
> call dynamically by add EXPORT_SYMBOL(sys_call_table) in file ksyms.c

Sasin, I agree with Gaurav. I also think there is a basic flaw here, 
that is not updating NR_syscalls. Try to check it here: 
include/asm-i386/unistd.h. As you can see, that is a constant so you 
need to change that before doing kernel rebuild.

Another thing is, please take a look on 
arch/i386/kernel/syscall_table.S. In my humble opinion, even if 
sys_call_table is referenced with array index, that doesn't mean it can 
be extended the way you had done (by simply adding 
sys_call_table[259]="..." and so on). It is fixed size length series of 
data and I also think right after the last entry of syscall table, it 
is straightly followed by another data or code...so I am afraid, you're 
actually overwriting another code/data.

That's all I know so far, I hope it is helpful for you

PS: Try to check these two interesting URLs
http://www.linuxgazette.com/issue90/weber.html
http://www.ussg.iu.edu/hypermail/linux/kernel/0306.0/0500.html

regards

Mulyadi


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