On Wed, Feb 27, 2002 at 03:43:30PM -0500, Israel Fernandez wrote:
Hi again... I'm changing the sys_call_table[__NR_excecve], in the
new function I do nothing, just return to "int sys_execve(struct
pt_regs regs)" doing this: return original_sys_execve(regs), where
regs is the pt_regs I receave in the new function, but when I excecute
any file I get a "Segmentation Fault" error message
Any hint??
your problem likely stems from the fact that you're passing the
original pt_regs by value on the stack instead of passing a pointer to
it - in other words, sys_execve() relies on the location of the struct
pt_regs on the stack.