call_usermodehelper(argv [0], argv, envp);
[...]
but when I run it, it causes a kernel panic during the call_usermodehelper()
call.. this is the kernel panic message:
<0> Kernel panic: Aiee, killing interrupt handler!
In interrupt handler - not syncing
This indicates that you are calling call_usermodhelper() from within an
interrupt context. This would never work, because of call_usermodhelper()
-> call_usermodehelper_keys() -> wait_for_completion() -> schedule() ->
boom. You can't schedule from an interrupt context.
This fact is even mentioned in the comment of call_usermodehelper_keys()
function.
Really thanks for the answers..
I'm trying to call it into a nf_hook_ops registered function ..
there's another way to execute a local file when a specified packet it's received?
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/