Re: kthreads: sporadic NULL pointer dereference in exit_creds()

2015-08-14 Thread Phil Sutter
Hi, I found the problem, it was a bug in my own code. For details see below: On Wed, Aug 12, 2015 at 05:09:31PM +0200, Phil Sutter wrote: [...] > Here is the reproducer code (kthread_test.c) I used: > > ---8<--- > #include > #inclu

kthreads: sporadic NULL pointer dereference in exit_creds()

2015-08-12 Thread Phil Sutter
[please keep me on Cc: since I am not subscribed to this list] Hi, While enhancing lib/test_rhashtable.c by a few threads to provoke concurrency issues, I encountered a bug in the kernel's cleanup routines for kthreads. Upon calling kthread_stop(), it would occasionally call exit_creds() for the