Re: [PATCH] slab: fix an infinite loop in leaks_show()

2019-04-11 Thread Qian Cai
On 4/11/19 4:20 AM, Vlastimil Babka wrote: > On 4/11/19 5:26 AM, Qian Cai wrote: >> "cat /proc/slab_allocators" could hang forever on SMP machines with >> kmemleak or object debugging enabled due to other CPUs running do_drain() >> will keep making kmemleak_object or debug_objects_cache dirty an

Re: [PATCH] slab: fix an infinite loop in leaks_show()

2019-04-11 Thread Vlastimil Babka
On 4/11/19 5:26 AM, Qian Cai wrote: > "cat /proc/slab_allocators" could hang forever on SMP machines with > kmemleak or object debugging enabled due to other CPUs running do_drain() > will keep making kmemleak_object or debug_objects_cache dirty and unable > to escape the first loop in leaks_show()

[PATCH] slab: fix an infinite loop in leaks_show()

2019-04-10 Thread Qian Cai
"cat /proc/slab_allocators" could hang forever on SMP machines with kmemleak or object debugging enabled due to other CPUs running do_drain() will keep making kmemleak_object or debug_objects_cache dirty and unable to escape the first loop in leaks_show(), do { set_store_user_clean(cachep)