Alex Sverdlin
3680442cba
ARM: 9242/1: kasan: Only map modules if CONFIG_KASAN_VMALLOC=n
...
[ Upstream commit 823f606ab6b4759a1faf0388abcf4fb0776710d2 ]
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-26 12:35:45 +02:00
..
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-06-13 18:16:43 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2022-07-21 21:24:12 +02:00
2020-05-06 11:12:12 -07:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:37:06 +02:00
2020-09-15 14:35:53 +01:00
2019-06-19 17:09:55 +02:00
2015-11-26 22:12:26 +00:00
2019-05-30 11:26:39 -07:00
2019-05-30 11:26:37 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2021-03-09 10:25:18 +00:00
2019-12-08 14:37:32 +01:00
2019-06-05 17:37:06 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2021-04-30 11:20:37 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2021-04-30 11:20:37 -07:00
2019-06-19 17:09:55 +02:00
2021-04-30 11:20:37 -07:00
2021-08-18 16:24:10 +02:00
2021-08-09 17:13:05 +02:00
2017-11-02 11:10:55 +01:00
2022-10-26 12:34:37 +02:00
2017-11-02 11:10:55 +01:00
2020-06-09 09:39:13 -07:00
2020-08-12 10:58:03 -07:00
2019-08-23 11:39:34 +01:00
2021-09-03 09:58:13 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-08-07 11:33:26 -07:00
2020-06-09 09:39:13 -07:00
2021-06-30 11:39:00 +03:00
2019-10-31 16:58:54 +00:00
2022-05-18 10:26:56 +02:00
2022-10-26 12:35:45 +02:00
2022-03-11 12:22:32 +01:00
2019-06-19 17:09:55 +02:00
2017-11-02 11:10:55 +01:00
2020-12-22 13:34:27 -08:00
2020-06-09 09:39:13 -07:00
2020-12-11 12:28:24 -08:00
2022-10-26 12:34:37 +02:00
2021-09-03 09:58:13 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-06-09 09:39:13 -07:00
2020-10-27 12:11:10 +00:00
2017-11-02 11:10:55 +01:00
2021-03-25 10:25:20 +00:00
2021-03-25 10:25:20 +00:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:13 -07:00
2021-10-19 10:37:35 +01:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:13 -07:00
2019-06-19 17:09:55 +02:00
2020-06-09 09:39:13 -07:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:37:06 +02:00
2022-07-21 21:24:16 +02:00
2021-03-09 10:25:18 +00:00
2019-11-15 22:21:19 +00:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:13 -07:00
2021-04-18 19:15:13 +01:00
2021-08-10 12:17:25 +01:00
2019-05-30 11:29:22 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2021-06-29 10:53:52 -07:00
2021-06-29 10:53:52 -07:00