How to traverse kernel threads?

Oliver Pinter oliver.pinter at hardenedbsd.org
Sun Mar 22 20:58:51 UTC 2015


Probably take a look at DDB:
https://github.com/HardenedBSD/hardenedBSD/blob/hardened/current/master/sys/ddb/db_thread.c#L88

On Sun, Mar 22, 2015 at 9:45 PM, Benjamin Kaduk <bjk at freebsd.org> wrote:
> On Sat, 21 Mar 2015, Mateusz Guzik wrote:
>
>> But once more the real question is what are you trying to do. I don't
>> see any use for stack info of random threads.
>
> One thing that comes to mind is for live binary-patching the kernel, to
> confirm that no thread is currently in a routine which would be patched.
>
> -Ben
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"


More information about the freebsd-hackers mailing list