================================================================== BUG: KASAN: stack-out-of-bounds in cmp_ex_search+0x34/0xa0 lib/extable.c:94 Read of size 8 at addr ffffc90008b96f40 by task syz.0.1/5317 CPU: 1 UID: 0 PID: 5317 Comm: syz.0.1 Tainted: G D 6.11.0-rc4-next-20240822-syzkaller #0 Tainted: [D]=DIE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: <TASK> __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 </TASK> The buggy address belongs to stack of task syz.0.1/5317 and is located at offset 32 in frame: search_extable+0x0/0x100 This frame has 1 object: [32, 40) 'value.addr' The buggy address belongs to the virtual mapping at [ffffc90008b90000, ffffc90008b99000) created by: copy_process+0x5d1/0x3d50 kernel/fork.c:2203 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5cc04 memcg:ffff88801bf85e82 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff88801bf85e82 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 5311, tgid 5311 (syz.1.6), ts 76171626959, free_ts 19870900779 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1517 prep_new_page mm/page_alloc.c:1525 [inline] get_page_from_freelist+0x3131/0x3280 mm/page_alloc.c:3476 __alloc_pages_noprof+0x29e/0x780 mm/page_alloc.c:4743 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2265 vm_area_alloc_pages mm/vmalloc.c:3600 [inline] __vmalloc_area_node mm/vmalloc.c:3669 [inline] __vmalloc_node_range_noprof+0xa40/0x1400 mm/vmalloc.c:3850 alloc_thread_stack_node kernel/fork.c:314 [inline] dup_task_struct+0x444/0x8c0 kernel/fork.c:1115 copy_process+0x5d1/0x3d50 kernel/fork.c:2203 kernel_clone+0x226/0x8f0 kernel/fork.c:2784 __do_sys_clone3 kernel/fork.c:3088 [inline] __se_sys_clone3+0x2cb/0x350 kernel/fork.c:3067 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 1 tgid 1 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1098 [inline] free_unref_page+0xc07/0xd90 mm/page_alloc.c:2651 free_contig_range+0x152/0x550 mm/page_alloc.c:6758 destroy_args+0x8a/0x890 mm/debug_vm_pgtable.c:1017 debug_vm_pgtable+0x4be/0x550 mm/debug_vm_pgtable.c:1397 do_one_initcall+0x248/0x880 init/main.c:1269 do_initcall_level+0x157/0x210 init/main.c:1331 do_initcalls+0x3f/0x80 init/main.c:1347 kernel_init_freeable+0x435/0x5d0 init/main.c:1580 kernel_init+0x1d/0x2b0 init/main.c:1469 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Memory state around the buggy address: ffffc90008b96e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90008b96e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90008b96f00: 00 00 00 00 f1 f1 f1 f1 f1 f1 f1 f1 00 f3 f3 f3 ^ ffffc90008b96f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90008b97000: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 f1 f1 f1 f1 ==================================================================