diff options
author | Dmitry Vyukov <[email protected]> | 2018-01-12 16:53:10 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2018-01-13 10:42:48 -0800 |
commit | d9570ee3bd1d4f20ce63485f5ef05663866fe6c0 (patch) | |
tree | a625ced48ca7ceaeafb4e1683ab597107a3a5d54 /net/unix/af_unix.c | |
parent | bed6760cf2c40778a58f2e399c8947b3b3c55518 (diff) |
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.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Dmitry Vyukov <[email protected]>
Cc: Catalin Marinas <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions