Kprobes might be stealing int3
Keshavamurthy Anil S
anil.s.keshavamurthy@intel.com
Thu Feb 23 20:10:00 GMT 2006
Hi,
I tried running the below program on both
x86_64 and i386 and on both architecture,
if the kernel is compiled with CONFIG_KPROBES,
my below application segmentation faults.
On kernel where CONFIG_KPROBES set to N, the
same test program passes.
Here goes the test program...
-------------------------
#include <stdlib.h>
#include <signal.h>
void my_trap(int sig)
{
printf("Test passed, all OK\n");
exit(0);
}
int main()
{
signal(SIGTRAP, my_trap);
asm volatile (".byte 0xcd,3");
printf("Stolen interrupt, very bad!\n");
}
----------------------------------
More information about the Systemtap
mailing list