Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'fixes-2021-10-16' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock

Pull memblock fix from Mike Rapoport:
"Fix handling of NOMAP regions with kmemleak.

NOMAP regions don't have linear map entries so an attempt to scan
these areas in kmemleak would fault.

Prevent such faults by excluding NOMAP regions from kmemleak"

* tag 'fixes-2021-10-16' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock:
memblock: exclude NOMAP regions from kmemleak

+6 -1
+6 -1
mm/memblock.c
··· 936 936 */ 937 937 int __init_memblock memblock_mark_nomap(phys_addr_t base, phys_addr_t size) 938 938 { 939 - return memblock_setclr_flag(base, size, 1, MEMBLOCK_NOMAP); 939 + int ret = memblock_setclr_flag(base, size, 1, MEMBLOCK_NOMAP); 940 + 941 + if (!ret) 942 + kmemleak_free_part_phys(base, size); 943 + 944 + return ret; 940 945 } 941 946 942 947 /**