lkml.org 
[lkml]   [2004]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] kprobes: dont steal interrupts from vm86
Hi Prasanna.

I've found yet another bug in this
very same piece of code. Now I can
reproduce the interrupt theft without
using either vm86() or modify_ldt().
Test-case is attached. It gets
ocasionally fixed by the patch I've
sent in my previous mail, but it is
really another bug that requires a
separate fix.
#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");
}
\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.123 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site