Re: [PATCH v2 2/8] powernv/memtrace: fix crashing the kernel when enabling concurrently

2020-11-17 Thread Oscar Salvador
On Wed, Nov 11, 2020 at 03:53:16PM +0100, David Hildenbrand wrote: > Fixes: 9d5171a8f248 ("powerpc/powernv: Enable removal of memory for in memory > tracing") > Cc: sta...@vger.kernel.org# v4.14+ > Cc: Michael Ellerman > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Rashmica Gupta > Si

[PATCH v2 2/8] powernv/memtrace: fix crashing the kernel when enabling concurrently

2020-11-11 Thread David Hildenbrand
It's very easy to crash the kernel right now by simply trying to enable memtrace concurrently, hammering on the "enable" interface loop.sh: #!/bin/bash dmesg --console-off while true; do echo 0x4000 > /sys/kernel/debug/powerpc/memtrace/enable done [root@localhost ~]# loop.