lkml.org 
[lkml]   [1999]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Bug: Tracing recursive system calls
Date
From
> You can reproduce the problem by stracing a system call which, for
> instance, tries to load a module. i.e. open() of a device whose module
> is not loaded.

Chuckle.

> I don't think user-space debuggers should need to know about the
> internals of the kernel, and so there is no reason to keep this. >

Yep

> arch/i386/kernel/ptrace.c:syscall_trace (and similarly for other arches)
> to see if the syscall was made from kernel mode. If so, the parent
> should not be notified.

Thats the fast path though. I think you just need to clear the ptrace
flags in kernel_thread()

Alan


-
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:52    [W:1.338 / U:0.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site