================================================================== BUG: KASAN: stack-out-of-bounds in profile_pc+0xa4/0xe0 arch/x86/kernel/time.c:42 Read of size 8 at addr ffff8881e719f4a0 by task systemd-udevd/152 CPU: 1 PID: 152 Comm: systemd-udevd Not tainted 5.4.121-syzkaller-00751-g1d3dcc209600 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x24e lib/dump_stack.c:118 print_address_description+0x9b/0x650 mm/kasan/report.c:384 __kasan_report+0x182/0x260 mm/kasan/report.c:516 kasan_report+0x30/0x60 mm/kasan/common.c:641 profile_pc+0xa4/0xe0 arch/x86/kernel/time.c:42 profile_tick+0xb2/0xf0 kernel/profile.c:408 tick_sched_handle kernel/time/tick-sched.c:172 [inline] tick_sched_timer+0x268/0x410 kernel/time/tick-sched.c:1296 __run_hrtimer+0x187/0x7b0 kernel/time/hrtimer.c:1535 __hrtimer_run_queues kernel/time/hrtimer.c:1597 [inline] hrtimer_interrupt+0x582/0x1170 kernel/time/hrtimer.c:1659 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1123 [inline] smp_apic_timer_interrupt+0x109/0x420 arch/x86/kernel/apic/apic.c:1148 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:831 RIP: 0010:__raw_spin_lock include/linux/spinlock_api_smp.h:141 [inline] RIP: 0010:_raw_spin_lock+0x64/0x1b0 kernel/locking/spinlock.c:151 Code: 8a b5 41 48 c7 44 24 08 8b 93 71 85 48 c7 44 24 10 40 4d 46 84 48 89 e3 48 c1 eb 03 48 b8 f1 f1 f1 f1 04 f3 f3 f3 4a 89 04 23 01 00 00 00 e8 b2 3b 00 fd 4d 89 fe 49 c1 ee 03 43 8a 04 26 84 RSP: 0018:ffff8881e719f4a0 EFLAGS: 00000a02 ORIG_RAX: ffffffffffffff13 RAX: f3f3f304f1f1f1f1 RBX: 1ffff1103ce33e94 RCX: 0000000000000000 RDX: ffff8881e7190fc0 RSI: 000000004f820e04 RDI: ffff8881ecc0e8d8 RBP: ffff8881e719f530 R08: ffffffff819e75e9 R09: ffff8881e719f780 R10: ffffed103ce33ef2 R11: 0000000000000000 R12: dffffc0000000000 R13: ffff8881ecc0e8d8 R14: ffff8881ecc0e8a0 R15: ffff8881e719f4c0 spin_lock include/linux/spinlock.h:338 [inline] __d_lookup+0xfe/0x510 fs/dcache.c:2374 lookup_fast+0x12b/0xfd0 fs/namei.c:1694 walk_component+0x145/0x960 fs/namei.c:1881 link_path_walk+0x62b/0x14b0 fs/namei.c:2210 path_lookupat+0xc8/0xa40 fs/namei.c:2392 filename_lookup+0x223/0x6a0 fs/namei.c:2423 user_path_at include/linux/namei.h:49 [inline] vfs_statx fs/stat.c:187 [inline] vfs_lstat include/linux/fs.h:3356 [inline] __do_sys_newlstat fs/stat.c:354 [inline] __se_sys_newlstat+0xde/0x860 fs/stat.c:348 do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7fc2acb6d335 Code: 69 db 2b 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 83 ff 01 48 89 f0 77 30 48 89 c7 48 89 d6 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 03 f3 c3 90 48 8b 15 31 db 2b 00 f7 d8 64 89 RSP: 002b:00007fff76ea9658 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 RAX: ffffffffffffffda RBX: 0000556bfe934a70 RCX: 00007fc2acb6d335 RDX: 00007fff76ea9690 RSI: 00007fff76ea9690 RDI: 0000556bfe933a70 RBP: 00007fff76ea9750 R08: 00007fc2ace2c1c8 R09: 0000000000001010 R10: 0000000000000020 R11: 0000000000000246 R12: 0000556bfe933a70 R13: 0000556bfe933a8a R14: 0000556bfe92feb5 R15: 0000556bfe92feba The buggy address belongs to the page: page:ffffea00079c67c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 flags: 0x8000000000000000() raw: 8000000000000000 ffffea00079c67c8 ffffea00079c67c8 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x400dc0(GFP_KERNEL_ACCOUNT|__GFP_ZERO) set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook mm/page_alloc.c:2165 [inline] prep_new_page+0x19a/0x380 mm/page_alloc.c:2171 get_page_from_freelist+0x550/0x8b0 mm/page_alloc.c:3794 __alloc_pages_nodemask+0x3a2/0x880 mm/page_alloc.c:4855 __alloc_pages include/linux/gfp.h:503 [inline] __alloc_pages_node include/linux/gfp.h:516 [inline] alloc_pages_node include/linux/gfp.h:530 [inline] alloc_thread_stack_node kernel/fork.c:259 [inline] dup_task_struct kernel/fork.c:875 [inline] copy_process+0x605/0x5630 kernel/fork.c:1877 _do_fork+0x18f/0x900 kernel/fork.c:2391 __do_sys_clone kernel/fork.c:2549 [inline] __se_sys_clone kernel/fork.c:2530 [inline] __x64_sys_clone+0x25b/0x2c0 kernel/fork.c:2530 do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 page_owner free stack trace missing addr ffff8881e719f4a0 is located in stack of task systemd-udevd/152 at offset 0 in frame: _raw_spin_lock+0x0/0x1b0 arch/x86/include/asm/atomic.h:200 this frame has 1 object: [32, 36) 'val.i.i.i' Memory state around the buggy address: ffff8881e719f380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881e719f400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881e719f480: 00 00 00 00 f1 f1 f1 f1 04 f3 f3 f3 00 00 00 00 ^ ffff8881e719f500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881e719f580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================