vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I'm developing Dynamic LKM now on HP-UX 11.11i to protect kill a specified process by any user on kernel level.... I wrote a code indirecting kill() system call in HP-UX kernel.. Belows are my code.. extern struct sysent sysent[]; static int (* org_kill)(pid_t pid, int sig); int my_kill(pid_t pid, int sig) { /* call original system call */ sysent[SYS_kill].sy_call(pid, sig); /* or,,,,, kill (pid, sig); get the same result, panic !!! */ } int my_load() { org_fork = sysent[SYS_kill].sy_call; sysent[SYS_kill].sy_call = &(my_kill); return 0; } After loading a my module,... I'm getting random 'data page fault' panics. I tested other system calls (open, execve etc..), that's work fine. I attache the debugging information of crash file.. ----------------- Processor 0 was running process "pwgrd" at 0x4342f040 (pid 968) Thread at 0x435a6040 (tid 1024) Event selected is 0. It was a panic #0 0x200ed4 in panic+0x6c () #1 0x255a2c in report_trap_or_int_and_panic+0x94 () #2 0x15ac1c in trap+0xedc () #3 0x15cf3c in thandler+0xd20 () #4 0x82f5e4 in kill_stub32+0x0 () <--- Trap in Kernel mode #5 0xcc83e4 in ?? () -------------- HELP ME ~~~~~ㅠ.ㅠ |
| Thread Tools | |
| Display Modes | |
|
|