lkml.org 
[lkml]   [1999]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subjectdebug registers in 2.3.x
Hi,
I was looking into usage of ia32 debug registers in 2.3.16 kernel
and I found that anybody with ptrace rights to any process can confuse
vm86 applications, if I did not miss something, because of we are setting
DR7 lazy, but we do not check thread.debugreg[7] in do_debug() if exception
came from VM86 mode (doing handle_vm86_trap() doing in turn do_int() or
send_sig(SIGTRAP)). We check this if exception came from 32-bit code
and I think that we should do this check in all cases, not only for 32bit
code.
Is it intentional (I do not think...) or did I miss DR7 clear/load
somewhere else? Or is VMM using vm86() syscall responsible for handling
this spurious traps?
Thanks,
Petr Vandrovec
vandrove@vc.cvut.cz

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.023 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site