WSL2-Linux-Kernel/Documentation/dev-tools
Catalin Marinas 9099daed9c mm: kmemleak: avoid using __va() on addresses that don't have a lowmem mapping
Some of the kmemleak_*() callbacks in memblock, bootmem, CMA convert a
physical address to a virtual one using __va().  However, such physical
addresses may sometimes be located in highmem and using __va() is
incorrect, leading to inconsistent object tracking in kmemleak.

The following functions have been added to the kmemleak API and they take
a physical address as the object pointer.  They only perform the
corresponding action if the address has a lowmem mapping:

kmemleak_alloc_phys
kmemleak_free_part_phys
kmemleak_not_leak_phys
kmemleak_ignore_phys

The affected calling places have been updated to use the new kmemleak
API.

Link: http://lkml.kernel.org/r/1471531432-16503-1-git-send-email-catalin.marinas@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Reported-by: Vignesh R <vigneshr@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-10-11 15:06:33 -07:00
..
coccinelle.rst
gcov.rst docs: sphinixfy gcov.txt and move to dev-tools 2016-08-18 17:41:38 -06:00
gdb-kernel-debugging.rst docs: Sphinxify gdb-kernel-debugging.txt and move to dev-tools 2016-08-18 17:43:24 -06:00
kasan.rst Merge branch 'dev-tools' into doc/4.9 2016-08-19 11:38:36 -06:00
kcov.rst
kmemcheck.rst docs: sphinxify kmemcheck.txt and move to dev-tools 2016-08-18 17:43:14 -06:00
kmemleak.rst mm: kmemleak: avoid using __va() on addresses that don't have a lowmem mapping 2016-10-11 15:06:33 -07:00
sparse.rst
tools.rst docs: Sphinxify gdb-kernel-debugging.txt and move to dev-tools 2016-08-18 17:43:24 -06:00
ubsan.rst docs: sphinxify ubsan.txt and move it to dev-tools 2016-08-18 17:41:51 -06:00