• Anil S Keshavamurthy's avatar
    [IA64] fix Kprobes reentrancy · cdc7dbdf
    Anil S Keshavamurthy authored
    In case of reentrance i.e when a probe handler calls a functions which
    inturn has a probe, we save a previous kprobe information and just single
    step the reentrant probe without calling the actual probe handler.  During
    this reentracy period, if an interrupt occurs and if probe happens to
    trigger in the inturrupt path, then we were corrupting the previous kprobe(
    as we were overriding the previous kprobe info) info their by crashing the
    system.  This patch fixes this issues by having a an array of previous
    kprobe info struct(with the array size of 2).
    
    This similar technique is not needed on i386 and x86_64 because by default
    interrupts are turn off in the break/int3 exception handler.
    Signed-off-by: default avatarAnil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
    cdc7dbdf
kprobes.c 26.9 KB