Re: kmemleak splat on copy_process()

From: Luis R. Rodriguez
Date: Fri Feb 17 2017 - 12:24:18 EST


On Fri, Feb 17, 2017 at 9:07 AM, Andy Lutomirski <luto@xxxxxxxxxxxxxx> wrote:
> But maybe
> there really is a race in which a kmemleak check right in the middle
> of duplicating the task struct really can't see the stack pointer.

Funny, but it was actually using kmemleak how I can easily reproduce:

To reproduce the kmemleak splat:

echo clear > /sys/kernel/debug/kmemleak
echo scan > /sys/kernel/debug/kmemleak
cat /sys/kernel/debug/kmemleak

Try that.

Luis