Re: [PATCH] kmemleak: survive in a low-memory situation

2019-01-02 Thread Catalin Marinas
Hi Qian, On Wed, Jan 02, 2019 at 11:08:49AM -0500, Qian Cai wrote: > Kmemleak could quickly fail to allocate an object structure and then > disable itself in a low-memory situation. For example, running a mmap() > workload triggering swapping and OOM [1]. > > First, it unnecessarily attempt to

[PATCH] kmemleak: survive in a low-memory situation

2019-01-02 Thread Qian Cai
Kmemleak could quickly fail to allocate an object structure and then disable itself in a low-memory situation. For example, running a mmap() workload triggering swapping and OOM [1]. First, it unnecessarily attempt to allocate even though the tracking object is NULL in kmem_cache_alloc(). For