Alex Sverdlin
7ab9620ee8
ARM: 9242/1: kasan: Only map modules if CONFIG_KASAN_VMALLOC=n
[ Upstream commit 823f606ab6 ]
In case CONFIG_KASAN_VMALLOC=y kasan_populate_vmalloc() allocates the
shadow pages dynamically. But even worse is that kasan_release_vmalloc()
releases them, which is not compatible with create_mapping() of
MODULES_VADDR..MODULES_END range:
BUG: Bad page state in process kworker/9:1 pfn:2068b
page:e5e06160 refcount:0 mapcount:0 mapping:00000000 index:0x0
flags: 0x1000(reserved)
raw: 00001000 e5e06164 e5e06164 00000000 00000000 00000000 ffffffff 00000000
page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set
bad because of flags: 0x1000(reserved)
Modules linked in: ip_tables
CPU: 9 PID: 154 Comm: kworker/9:1 Not tainted 5.4.188-... #1
Hardware name: LSI Axxia AXM55XX
Workqueue: events do_free_init
unwind_backtrace
show_stack
dump_stack
bad_page
free_pcp_prepare
free_unref_page
kasan_depopulate_vmalloc_pte
__apply_to_page_range
apply_to_existing_page_range
kasan_release_vmalloc
__purge_vmap_area_lazy
_vm_unmap_aliases.part.0
__vunmap
do_free_init
process_one_work
worker_thread
kthread
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-21 12:39:20 +02:00
..
2022-10-21 12:39:18 +02:00
2022-08-29 14:26:14 +03:00
2022-10-21 12:39:20 +02:00
2022-10-21 12:39:20 +02:00
2022-10-21 12:39:20 +02:00
2022-08-31 10:28:18 +03:00
2022-08-04 12:12:54 -07:00
2022-07-22 14:18:52 +02:00
2022-08-04 12:12:54 -07:00
2022-08-04 12:12:54 -07:00
2022-07-22 13:11:21 +02:00
2022-08-06 10:56:45 -07:00
2022-08-02 19:12:45 -07:00
2022-07-22 14:18:52 +02:00
2022-08-29 11:06:16 +02:00
2022-08-02 08:35:17 -07:00
2022-08-04 12:12:54 -07:00
2022-08-06 10:56:45 -07:00
2022-08-04 12:12:54 -07:00
2022-08-04 12:12:54 -07:00
2022-08-04 12:12:54 -07:00
2022-08-06 10:25:16 -07:00
2022-07-18 18:06:08 -05:00
2022-08-02 08:35:17 -07:00
2022-07-22 14:18:39 +02:00
2022-08-04 12:12:54 -07:00
2022-09-23 14:20:00 +02:00
2022-10-21 12:39:20 +02:00
2022-10-21 12:39:19 +02:00
2022-08-01 07:43:03 +02:00
2022-10-21 12:38:35 +02:00
2022-07-08 14:08:51 -07:00
2022-07-08 14:24:14 +02:00