search for: no_kprobe

Displaying 2 results from an estimated 2 matches for "no_kprobe".

Did you mean: __kprobe
2007 Apr 18
2
[PATCH 19/21] i386 Kprobes semaphore fix
...d ignore it. */ p = get_kprobe(addr); @@ -209,13 +211,20 @@ static int __kprobes kprobe_handler(stru lock_kprobes(); p = get_kprobe(addr); if (!p) { + unsigned char instr; unlock_kprobes(); if (regs->eflags & VM_MASK) { /* We are in virtual-8086 mode. Return 0 */ goto no_kprobe; } - if (*addr != BREAKPOINT_INSTRUCTION) { + instr = BREAKPOINT_INSTRUCTION; + if (user_mode(regs)) + __get_user(instr, (unsigned char __user *) addr); + else + instr = *addr; + + if (instr != BREAKPOINT_INSTRUCTION) { /* * The breakpoint instruction was removed right...
2007 Apr 18
2
[PATCH 19/21] i386 Kprobes semaphore fix
...d ignore it. */ p = get_kprobe(addr); @@ -209,13 +211,20 @@ static int __kprobes kprobe_handler(stru lock_kprobes(); p = get_kprobe(addr); if (!p) { + unsigned char instr; unlock_kprobes(); if (regs->eflags & VM_MASK) { /* We are in virtual-8086 mode. Return 0 */ goto no_kprobe; } - if (*addr != BREAKPOINT_INSTRUCTION) { + instr = BREAKPOINT_INSTRUCTION; + if (user_mode(regs)) + __get_user(instr, (unsigned char __user *) addr); + else + instr = *addr; + + if (instr != BREAKPOINT_INSTRUCTION) { /* * The breakpoint instruction was removed right...