Code: e1 07 80 c1 03 38 c1 0f 8c 97 fe ff ff 4c 89 f7 e8 65 38 81 00 e9 8a fe ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 RSP: 0018:ffffc90000107718 EFLAGS: 00000206 RAX: dffffc0000000000 RBX: 1ffff92000020eec RCX: ffffffff94f2f903 RDX: 0000777d5931ae01 RSI: ffffffff8c0ae240 RDI: ffffffff8c607c40 ================================================================== BUG: KASAN: stack-out-of-bounds in __show_regs+0x172/0x610 arch/x86/kernel/process_64.c:87 Read of size 8 at addr ffffc90000107688 by task rm/9497 CPU: 0 UID: 0 PID: 9497 Comm: rm Not tainted 6.11.0-rc1-next-20240729-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/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 __show_regs+0x172/0x610 arch/x86/kernel/process_64.c:87 show_trace_log_lvl+0x3d4/0x520 arch/x86/kernel/dumpstack.c:301 sched_show_task+0x506/0x6d0 kernel/sched/core.c:7512 report_rtnl_holders+0x327/0x400 net/core/rtnetlink.c:110 call_timer_fn+0x18e/0x650 kernel/time/timer.c:1792 expire_timers kernel/time/timer.c:1843 [inline] __run_timers kernel/time/timer.c:2417 [inline] __run_timer_base+0x66a/0x8e0 kernel/time/timer.c:2428 run_timer_base kernel/time/timer.c:2437 [inline] run_timer_softirq+0xb7/0x170 kernel/time/timer.c:2447 handle_softirqs+0x2c4/0x970 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu+0xf4/0x1c0 kernel/softirq.c:637 irq_exit_rcu+0x9/0x30 kernel/softirq.c:649 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:stack_access_ok arch/x86/kernel/unwind_orc.c:393 [inline] RIP: 0010:deref_stack_reg+0x46/0x260 arch/x86/kernel/unwind_orc.c:403 Code: 00 00 00 fc ff df e8 99 96 52 00 48 8d 6b 08 49 89 ec 49 c1 ec 03 43 80 3c 3c 00 74 08 48 89 ef e8 af 1b ba 00 48 89 6c 24 10 <4c> 89 74 24 18 48 8b 43 08 48 89 44 24 20 48 8d 6b 10 49 89 ed 49 RSP: 0018:ffffc90002ff7788 EFLAGS: 00000246 RAX: ffffffff814134c7 RBX: ffffc90002ff78c0 RCX: ffff88802c995a00 RDX: 0000000000000000 RSI: ffffc90002ff7ce8 RDI: ffffc90002ff78c0 RBP: ffffc90002ff78c8 R08: 0000000000000005 R09: ffffffff814120bf R10: 0000000000000003 R11: ffff88802c995a00 R12: 1ffff920005fef19 R13: dffffc0000000000 R14: ffffc90002ff7900 R15: dffffc0000000000 unwind_next_frame+0x1ab8/0x2a00 arch/x86/kernel/unwind_orc.c:648 arch_stack_walk+0x151/0x1b0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:312 [inline] __kasan_slab_alloc+0x66/0x80 mm/kasan/common.c:338 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3988 [inline] slab_alloc_node mm/slub.c:4037 [inline] kmem_cache_alloc_noprof+0x135/0x2a0 mm/slub.c:4044 getname_flags+0xb7/0x540 fs/namei.c:139 do_sys_openat2+0xd2/0x1d0 fs/open.c:1410 do_sys_open fs/open.c:1431 [inline] __do_sys_openat fs/open.c:1447 [inline] __se_sys_openat fs/open.c:1442 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1442 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 RIP: 0033:0x7f0462ca7a46 Code: 10 00 00 00 44 8b 54 24 e0 48 89 44 24 c0 48 8d 44 24 d0 48 89 44 24 c8 44 89 c2 4c 89 ce bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 76 0c f7 d8 89 05 0a 48 01 00 48 83 c8 ff c3 31 RSP: 002b:00007ffd876ca5b8 EFLAGS: 00000287 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f0462cbc1b8 RCX: 00007f0462ca7a46 RDX: 0000000000080000 RSI: 00007f0462cb044b RDI: 00000000ffffff9c RBP: 00007ffd876ca6a0 R08: 0000000000080000 R09: 00007f0462cb044b R10: 0000000000000000 R11: 0000000000000287 R12: ffffffffffffffff R13: 0000000000000001 R14: 0000000000000000 R15: 00007f0462cbc660 The buggy address belongs to the virtual mapping at [ffffc90000100000, ffffc90000109000) created by: copy_process+0x5d1/0x3d90 kernel/fork.c:2206 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x17a9d flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2dc2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_ZERO), pid 2, tgid 2 (kthreadd), ts 2415861012, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1493 prep_new_page mm/page_alloc.c:1501 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3442 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4700 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2263 vm_area_alloc_pages mm/vmalloc.c:3584 [inline] __vmalloc_area_node mm/vmalloc.c:3660 [inline] __vmalloc_node_range_noprof+0x971/0x1460 mm/vmalloc.c:3841 alloc_thread_stack_node kernel/fork.c:314 [inline] dup_task_struct+0x444/0x8c0 kernel/fork.c:1115 copy_process+0x5d1/0x3d90 kernel/fork.c:2206 kernel_clone+0x226/0x8f0 kernel/fork.c:2788 kernel_thread+0x1bc/0x240 kernel/fork.c:2850 create_kthread kernel/kthread.c:412 [inline] kthreadd+0x60d/0x810 kernel/kthread.c:765 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:144 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 page_owner free stack trace missing Memory state around the buggy address: ffffc90000107580: f2 f2 f2 f2 00 00 00 00 00 f3 f3 f3 f3 f3 f3 f3 ffffc90000107600: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 >ffffc90000107680: 00 f2 f2 f2 00 f3 f3 f3 00 00 00 00 00 00 00 00 ^ ffffc90000107700: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 f2 f2 f2 ffffc90000107780: 00 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: e1 07 loope 0x9 2: 80 c1 03 add $0x3,%cl 5: 38 c1 cmp %al,%cl 7: 0f 8c 97 fe ff ff jl 0xfffffea4 d: 4c 89 f7 mov %r14,%rdi 10: e8 65 38 81 00 call 0x81387a 15: e9 8a fe ff ff jmp 0xfffffea4 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 90 nop 1f: 90 nop 20: 90 nop 21: 90 nop 22: 90 nop 23: 90 nop 24: 90 nop 25: 90 nop 26: 90 nop 27: 90 nop 28: 90 nop 29: 90 nop * 2a: f3 0f 1e fa endbr64 <-- trapping instruction 2e: 55 push %rbp 2f: 48 89 e5 mov %rsp,%rbp 32: 41 57 push %r15 34: 41 56 push %r14 36: 41 55 push %r13 38: 41 54 push %r12 3a: 53 push %rbx 3b: 48 83 e4 e0 and $0xffffffffffffffe0,%rsp 3f: 48 rex.W