summaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
authorCatalin Marinas2009-07-07 11:32:58 +0200
committerCatalin Marinas2009-07-08 15:25:13 +0200
commit2587362eaf5c9df4e08de11e6340e3c4a88ed4c8 (patch)
tree90fc902a3c131146981164b859ed009d20157333 /mm/slub.c
parentkmemleak: Do not acquire scan_mutex in kmemleak_open() (diff)
downloadkernel-qcow2-linux-2587362eaf5c9df4e08de11e6340e3c4a88ed4c8.tar.gz
kernel-qcow2-linux-2587362eaf5c9df4e08de11e6340e3c4a88ed4c8.tar.xz
kernel-qcow2-linux-2587362eaf5c9df4e08de11e6340e3c4a88ed4c8.zip
kmemleak: Scan objects allocated during a scanning episode
Many of the false positives in kmemleak happen on busy systems where objects are allocated during a kmemleak scanning episode. These objects aren't scanned by default until the next memory scan. When such object is added, for example, at the head of a list, it is possible that all the other objects in the list become unreferenced until the next scan. This patch adds checking for newly allocated objects at the end of the scan and repeats the scanning on these objects. If Linux allocates new objects at a higher rate than their scanning, it stops after a predefined number of passes. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'mm/slub.c')
0 files changed, 0 insertions, 0 deletions