Linux-kernel mailing list archive 1999-23,: Re: Bug: Tracing recursive system calls

# Re: Bug: Tracing recursive system calls

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 8 Jun 1999 00:27:39 +0100 (BST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Jens Axboe: "Re: Can't play audio CD's with ide-scsi"
- Previous message: Richard Gooch: "Re: Migrating to larger numbers"

> 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/

- Next message: Jens Axboe: "Re: Can't play audio CD's with ide-scsi"
- Previous message: Richard Gooch: "Re: Migrating to larger numbers"