android_kernel_xiaomi_sm8450/mm/kasan
Patrick Daly 67474173e3 kasan: Zero shadow memory on memory hotplug
Vmalloc does not zero memory by default. In this instance,
CONFIG_PAGE_POISONING was enabled, so the pages were initialized
to 0xAA.

 kasan_report+0x28c/0x2f8
 check_memory_region+0x1dc/0x1e8
 memset+0x2c/0x50
 kernel_poison_pages+0x234/0x398
 __free_pages_ok+0x380/0xd50
 __free_pages+0x4c/0xd0
 online_pages_range+0x174/0x1c8
 walk_system_ram_range+0x130/0x170
 online_pages+0x298/0x458
 memory_block_change_state+0x160/0x210
 memory_subsys_online+0x68/0x90
 device_online+0x9c/0xc8
 add_memory_resource+0x18c/0x228
 add_memory+0x118/0x180

Memory state around the buggy address:
  ffffffc17fffff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  ffffffc17fffff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 >ffffffc180000000: aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa
                   ^
  ffffffc180000080: aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa
  ffffffc180000100: aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa

Change-Id: Id487a53d3cbe14a4ba73d43e151a51fd3162b1e0
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
[isaacm@codeaurora.org: resolve merge conflicts]
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-12-23 10:08:36 -08:00
..
common.c kasan: Zero shadow memory on memory hotplug 2019-12-23 10:08:36 -08:00
generic_report.c kasan: remove use after scope bugs detection. 2019-03-05 21:07:13 -08:00
generic.c mm/kasan: change kasan_check_{read,write} to return boolean 2019-07-12 11:05:42 -07:00
init.c treewide: add checks for the return value of memblock_alloc*() 2019-03-12 10:04:02 -07:00
kasan.h kasan: add memory corruption identification for software tag-based mode 2019-09-24 15:54:07 -07:00
Makefile arm64 updates for 5.2 2019-05-06 17:54:22 -07:00
quarantine.c mm: convert totalram_pages and totalhigh_pages variables to atomic 2018-12-28 12:11:47 -08:00
report.c kasan: add memory corruption identification for software tag-based mode 2019-09-24 15:54:07 -07:00
tags_report.c kasan: add memory corruption identification for software tag-based mode 2019-09-24 15:54:07 -07:00
tags.c mm/kasan: change kasan_check_{read,write} to return boolean 2019-07-12 11:05:42 -07:00