Hi All, I want to trace the trace the system call sys_execve().I wrote the code (plz refer below).The messgage is displayed after that segmentation fault is coming.My code may be wrong.Plz clear me for which i would be thankful.Thank u in advance Kannan Ram code: #include<linux/kernel.h> #include<linux/module.h> #include<asm/uaccess.h> #include<sys/stscall.h> extern void *sys_call_table[]; asmlinkage int (*original_sys_execve)(struct pt_regs regs); asmlinkage int my_sys_execve(struct pt_regs regs) { printk("From my_sys_exeve\n"); return original_sys_execve(regs); } int init_module() { original_sys_execve=sys_call_table[__NR_execve]; sys_call_table[__NR_execve]=my_sys_execve; return 0; } void cleanup_module() { sys_call_table[__NR_execve]=original_sys_execve; } after insering if i give commands like :ls I am getting output "From my_sys_execv" then segmentation fault What went wrong? _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp - Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/