lkml.org 
[lkml]   [2002]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] (re-xmit): kprobes for i386

On 20 Aug 2002, Luca Barbieri wrote:
> How about checking %cs in assembly and branching off for the kernel-mode
> case?
>
> Something like this:
> ENTRY(debug)
> testl $0x3, 4(%esp)
> jz handle_kernel_mode_debug

That's not correct, you can have the low bits of CS clear even from user
mode if the thing is in vm86 mode.

See the full test at the top of "ret_from_intr" (the "mix EFLAGS and CS"
thing - it's a bit funky).

Linus

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

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