• C
    kmemleak: Scan objects allocated during a scanning episode · 2587362e
    Catalin Marinas 提交于
    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: NCatalin Marinas <catalin.marinas@arm.com>
    2587362e
kmemleak.c 41.1 KB