mm/kmemleak: Fix kmemleak hang problem
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2095633
MR: !1041 (closed)
Upstream Status: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/commit/?h=mm-stable
The patchset contains 3 kmemleak commits from the mm-stable tree and one other mainline upstream kmemleak commit to reduce merge conflict. The 3 mm-stable commits optimize the kmemleak_scan() code to either insert the proper cond_resched() call or reduce its run time to avoid soft lockup.
Signed-off-by: Waiman Long longman@redhat.com
Waiman Long (4):
mm/kmemleak: avoid scanning potential huge holes
mm/kmemleak: use _irq lock/unlock variants in kmemleak_scan/_clear()
mm/kmemleak: skip unlikely objects in kmemleak_scan() without taking
lock
mm/kmemleak: prevent soft lockup in first object iteration loop of
kmemleak_scan()
mm/kmemleak.c | 73 +++++++++++++++++++++++++++++++++++++++------------
1 file changed, 56 insertions(+), 17 deletions(-)
Edited by Waiman Long