aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorCatalin Marinas <[email protected]>2019-08-13 15:37:34 -0700
committerLinus Torvalds <[email protected]>2019-08-13 16:06:52 -0700
commitfcf3a5b62f431ce9feeac73afbe128b7b6395dbc (patch)
treedd71cf52ac4dd8a03e3516c37e2e7499f920c52e /lib/test_overflow.c
parent5336e52c9e46afa69b7a85a0a091f0e4daa23d6e (diff)
mm: kmemleak: disable early logging in case of error
If an error occurs during kmemleak_init() (e.g. kmem cache cannot be created), kmemleak is disabled but kmemleak_early_log remains enabled. Subsequently, when the .init.text section is freed, the log_early() function no longer exists. To avoid a page fault in such scenario, ensure that kmemleak_disable() also disables early logging. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]> Reported-by: Qian Cai <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions