kmemleak-allow-to-coexist-with-fault-injection.patch removed from -mm tree
The patch titled
Subject: kmemleak: allow to coexist with fault injection
has been removed from the -mm tree. Its filename was
kmemleak-allow-to-coexist-with-fault-injection.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Dmitry Vyukov <[email protected]>
Subject: kmemleak: allow to coexist with fault injection
kmemleak does one slab allocation per user allocation. So if slab fault injection is enabled to any degree, kmemleak instantly fails to allocate and turns itself off. However, it's useful to use kmemleak with fault injection to find leaks on error paths. On the other hand, checking kmemleak itself is not so useful because (1) it's a debugging tool and (2) it has a very regular allocation pattern (basically a single allocation site, so it either works or not).
Turn off fault injection for kmemleak allocations.
---
mm/kmemleak.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/kmemleak.c renamed from mm/kmemleak.c~kmemleak-allow-to-coexist-with-fault-injection +1 -1
@@ -127,7 +127,7 @@/* GFP bitmask for kmemleak internal allocations */ #define gfp_kmemleak_mask (gfp) (((gfp) & (GFP_KERNEL | GFP_ATOMIC)) | \ __GFP_NORETRY | __GFP_NOMEMALLOC | \ - __GFP_NOWARN) + __GFP_NOWARN | __GFP_NOFAIL)/* scanning area inside a memory block */ struct kmemleak_scan_area {
_
Patches currently in -mm which might be from [email protected] are
kasan-detect-invalid-frees-for-large-objects.patch kasan-dont-use-__builtin_return_address1.patch kasan-detect-invalid-frees-for-large-mempool-objects.patch kasan-unify-code-between-kasan_slab_free-and-kasan_poison_kfree.patch kasan-detect-invalid-frees.patch