asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0000:0x9 Code: Unable to access opcode bytes at RIP 0xffffffffffffffdf. RSP: 0000:dffffc0000000000 EFLAGS: 00000000 ORIG_RAX: 0000000000000000 RAX: 0000000000000004 RBX: 0000000000000000 RCX: ffff8881163e80ac RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffffffff81162382 RBP: 0000000000000000 R08: ffff8881163e8000 R09: 0000000000000000 ================================================================== BUG: KASAN: stack-out-of-bounds in __show_regs.cold+0x1a1/0x481 arch/x86/kernel/process_64.c:87 Read of size 8 at addr ffffc9000da0fc00 by task syz-executor.5/7559 CPU: 0 PID: 7559 Comm: syz-executor.5 Not tainted 5.19.0-rc3-syzkaller-00076-g508aeb54e4f0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description.constprop.0.cold+0xf/0x495 mm/kasan/report.c:313 print_report mm/kasan/report.c:429 [inline] kasan_report.cold+0xf4/0x1c6 mm/kasan/report.c:491 __show_regs.cold+0x1a1/0x481 arch/x86/kernel/process_64.c:87 show_trace_log_lvl+0x25b/0x2ba arch/x86/kernel/dumpstack.c:292 sched_show_task kernel/sched/core.c:8801 [inline] sched_show_task+0x44c/0x5c0 kernel/sched/core.c:8775 show_state_filter+0x13e/0x300 kernel/sched/core.c:8846 k_spec drivers/tty/vt/keyboard.c:667 [inline] k_spec+0xe1/0x130 drivers/tty/vt/keyboard.c:656 kbd_keycode drivers/tty/vt/keyboard.c:1524 [inline] kbd_event+0xcdd/0x1780 drivers/tty/vt/keyboard.c:1543 input_to_handler+0x3b9/0x4c0 drivers/input/input.c:129 input_pass_values.part.0+0x230/0x710 drivers/input/input.c:156 input_pass_values drivers/input/input.c:145 [inline] input_handle_event+0x373/0x1440 drivers/input/input.c:415 input_inject_event+0x1bd/0x320 drivers/input/input.c:487 evdev_write+0x430/0x760 drivers/input/evdev.c:530 vfs_write+0x269/0xac0 fs/read_write.c:589 ksys_write+0x1e8/0x250 fs/read_write.c:644 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7ff08ef11109 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff08e687168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007ff08f023f60 RCX: 00007ff08ef11109 RDX: 0000000000002ad8 RSI: 0000000020000040 RDI: 0000000000000005 RBP: 00007ff08ef6b05d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc22a6768f R14: 00007ff08e687300 R15: 0000000000022000 The buggy address belongs to the virtual mapping at [ffffc9000da08000, ffffc9000da11000) created by: kernel_clone+0xe7/0xab0 kernel/fork.c:2655 The buggy address belongs to the physical page: page:ffffea0004c92dc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1324b7 memcg:ffff88811a00e702 flags: 0x200000000000000(node=0|zone=2) raw: 0200000000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff88811a00e702 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 7455, tgid 7455 (syz-executor.0), ts 302863771743, free_ts 302329232186 prep_new_page mm/page_alloc.c:2456 [inline] get_page_from_freelist+0x138c/0x27a0 mm/page_alloc.c:4198 __alloc_pages+0x1c7/0x510 mm/page_alloc.c:5426 alloc_pages+0x1aa/0x310 mm/mempolicy.c:2272 vm_area_alloc_pages mm/vmalloc.c:2927 [inline] __vmalloc_area_node mm/vmalloc.c:2995 [inline] __vmalloc_node_range+0x735/0x13e0 mm/vmalloc.c:3165 alloc_thread_stack_node kernel/fork.c:312 [inline] dup_task_struct kernel/fork.c:977 [inline] copy_process+0x155b/0x6dd0 kernel/fork.c:2071 kernel_clone+0xe7/0xab0 kernel/fork.c:2655 __do_sys_clone+0xba/0x100 kernel/fork.c:2789 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1371 [inline] free_pcp_prepare+0x537/0xb80 mm/page_alloc.c:1421 free_unref_page_prepare mm/page_alloc.c:3343 [inline] free_unref_page+0x19/0x5a0 mm/page_alloc.c:3438 __unfreeze_partials+0x17c/0x1a0 mm/slub.c:2521 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x180/0x200 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x78/0x80 mm/kasan/common.c:446 kasan_slab_alloc include/linux/kasan.h:224 [inline] slab_post_alloc_hook mm/slab.h:750 [inline] slab_alloc_node mm/slub.c:3214 [inline] slab_alloc mm/slub.c:3222 [inline] __kmem_cache_alloc_lru mm/slub.c:3229 [inline] kmem_cache_alloc+0x241/0x480 mm/slub.c:3239 getname_flags.part.0+0x50/0x4f0 fs/namei.c:139 getname_flags include/linux/audit.h:323 [inline] getname fs/namei.c:218 [inline] __do_sys_unlink fs/namei.c:4308 [inline] __se_sys_unlink fs/namei.c:4306 [inline] __x64_sys_unlink+0xb1/0x110 fs/namei.c:4306 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 Memory state around the buggy address: ffffc9000da0fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000da0fb80: 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f3 >ffffc9000da0fc00: f3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffffc9000da0fc80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000da0fd00: f1 f1 f1 f1 04 f3 f3 f3 00 00 00 00 00 00 00 00 ==================================================================