[issue1312] ktrace -c -f related panic

Stathis Kamperis (via DragonFly issue tracker) sinknull at crater.dragonflybsd.org
Thu Mar 12 09:12:00 PDT 2009


New submission from Stathis Kamperis <ekamperi at gmail.com>:

Greetings.

First:
-c and -f aren't allowed to execute due to a wrong check in ktrace(1).
In FreeBSD it has been fixed:
http://svn.freebsd.org/viewvc/base?view=revision&revision=166679

Second:
ktrace_clear_callback(), which is applied on every process of the system,
doesn't check whether the X process is traced to a vnode. Therefore, if it isn't
traced, a NULL pointer dereference occurs when trying to access p->p_tracenode.

Patch in:
http://leaf.dragonflybsd.org/~beket/0001-Fix-ktrace-related-panic-with-c-f-flags.patch

Please review.

Best regards,
Stathis Kamperis

----------
assignedto: Beket
messages: 6312
nosy: Beket
priority: bug
status: unread
title: ktrace -c -f related panic

_____________________________________________________
DragonFly issue tracker <bugs at lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1312>
_____________________________________________________





More information about the Bugs mailing list