================================================================== BUG: KASAN: stack-out-of-bounds in fixup_exception+0xa7/0x1cc0 arch/x86/mm/extable.c:320 Read of size 8 at addr ffffc900047f7018 by task syz.1.40/5477 CPU: 0 UID: 0 PID: 5477 Comm: syz.1.40 Not tainted 6.11.0-rc4-next-20240821-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __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 The buggy address belongs to stack of task syz.1.40/5477 internal error: frame has invalid marker: 1 The buggy address belongs to the virtual mapping at [ffffc900047f0000, ffffc900047f9000) created by: copy_process+0x5d1/0x3d50 kernel/fork.c:2206 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88802a74fb40 pfn:0x2a74f memcg:ffff8880299fb482 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: ffff88802a74fb40 0000000000000000 00000001ffffffff ffff8880299fb482 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 5465, tgid 5465 (syz.3.36), ts 81069107373, free_ts 80928324402 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+0x3004/0x30c0 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:2206 kernel_clone+0x226/0x8f0 kernel/fork.c:2787 __do_sys_clone3 kernel/fork.c:3091 [inline] __se_sys_clone3+0x2cb/0x350 kernel/fork.c:3070 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 5462 tgid 5459 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1098 [inline] free_unref_folios+0xe8a/0x1850 mm/page_alloc.c:2699 folios_put_refs+0x76e/0x860 mm/swap.c:1007 free_pages_and_swap_cache+0x2ea/0x690 mm/swap_state.c:332 __tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline] tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:366 [inline] tlb_flush_mmu+0x3a3/0x680 mm/mmu_gather.c:373 tlb_finish_mmu+0xd4/0x200 mm/mmu_gather.c:465 exit_mmap+0x496/0xc40 mm/mmap.c:1934 __mmput+0x115/0x390 kernel/fork.c:1347 exit_mm+0x220/0x310 kernel/exit.c:571 do_exit+0x9b2/0x28e0 kernel/exit.c:926 do_group_exit+0x207/0x2c0 kernel/exit.c:1088 get_signal+0x176f/0x1810 kernel/signal.c:2936 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xc9/0x370 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffffc900047f6f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900047f6f80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 f3 >ffffc900047f7000: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffffc900047f7080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900047f7100: f1 f1 f1 f1 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== kernel tried to execute NX-protected page - exploit attempt? (uid: 0) BUG: unable to handle page fault for address: fffff520008fedbb #PF: supervisor instruction fetch in kernel mode #PF: error_code(0x0011) - permissions violation PGD 23ffed067 P4D 23ffed067 PUD 166df067 PMD 200cc067 PTE 8000000079697063 Oops: Oops: 0011 [#1] PREEMPT SMP KASAN PTI CPU: 0 UID: 0 PID: 5477 Comm: syz.1.40 Tainted: G B 6.11.0-rc4-next-20240821-syzkaller #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:0xfffff520008fedbb Code: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 f1 f1 f1 f1 00 f2 f2 f2 00 00 f3 f2 f2 f2 f2 04 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 00 RSP: 0018:ffffc900047f6ce0 EFLAGS: 00010082 RAX: ffff8880222c5a01 RBX: 0000000000000000 RCX: ffff8880222c5a00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: dffffc0000000001 R08: ffffffff8155a2df R09: 1ffffffff2632014 R10: dffffc0000000000 R11: fffffbfff2632015 R12: 0000000000000000 R13: 1ffff920008fedb8 R14: dffffc0000000000 R15: dffffc0000000000 FS: 0000555594647500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffff520008fedbb CR3: 000000001fc36000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: Modules linked in: CR2: fffff520008fedbb ---[ end trace 0000000000000000 ]--- RIP: 0010:0xfffff520008fedbb Code: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 f1 f1 f1 f1 00 f2 f2 f2 00 00 f3 f2 f2 f2 f2 04 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 00 RSP: 0018:ffffc900047f6ce0 EFLAGS: 00010082 RAX: ffff8880222c5a01 RBX: 0000000000000000 RCX: ffff8880222c5a00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: dffffc0000000001 R08: ffffffff8155a2df R09: 1ffffffff2632014 R10: dffffc0000000000 R11: fffffbfff2632015 R12: 0000000000000000 R13: 1ffff920008fedb8 R14: dffffc0000000000 R15: dffffc0000000000 FS: 0000555594647500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffff520008fedbb CR3: 000000001fc36000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400