================================================================== BUG: KASAN: stack-out-of-bounds in profile_pc+0xa4/0xe0 arch/x86/kernel/time.c:42 Read of size 8 at addr ffffc9000b48fb60 by task systemd-udevd/10185 CPU: 1 PID: 10185 Comm: systemd-udevd Not tainted 5.13.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x202/0x31e lib/dump_stack.c:120 print_address_description+0x5f/0x3b0 mm/kasan/report.c:233 __kasan_report mm/kasan/report.c:419 [inline] kasan_report+0x15c/0x200 mm/kasan/report.c:436 profile_pc+0xa4/0xe0 arch/x86/kernel/time.c:42 profile_tick+0xcd/0x120 kernel/profile.c:408 tick_sched_handle kernel/time/tick-sched.c:227 [inline] tick_sched_timer+0x287/0x420 kernel/time/tick-sched.c:1374 __run_hrtimer kernel/time/hrtimer.c:1537 [inline] __hrtimer_run_queues+0x4cb/0xa60 kernel/time/hrtimer.c:1601 hrtimer_interrupt+0x3b3/0x1040 kernel/time/hrtimer.c:1663 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1089 [inline] __sysvec_apic_timer_interrupt+0xf9/0x270 arch/x86/kernel/apic/apic.c:1106 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:647 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0xbc/0x120 kernel/locking/spinlock.c:191 Code: f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 ea d5 03 f8 f6 44 24 21 02 75 4e 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 ff b2 93 f7 65 8b 05 50 b4 3e 76 85 c0 74 3f 48 c7 04 24 0e 36 RSP: 0018:ffffc9000b48fb60 EFLAGS: 00000206 RAX: 1ffff92001691f70 RBX: ffffffff90999948 RCX: ffffffff8161dcc9 RDX: dffffc0000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffffc9000b48fbf0 R08: dffffc0000000000 R09: fffffbfff1f4dbc4 R10: fffffbfff1f4dbc4 R11: 0000000000000000 R12: dffffc0000000000 R13: 1ffff92001691f6c R14: ffffc9000b48fb80 R15: 0000000000000a06 debug_rcu_head_queue kernel/rcu/rcu.h:177 [inline] __call_rcu kernel/rcu/tree.c:3022 [inline] call_rcu+0xb1/0xa20 kernel/rcu/tree.c:3113 __dentry_kill+0x4f8/0x660 fs/dcache.c:596 dentry_kill fs/dcache.c:695 [inline] dput+0x45e/0x6f0 fs/dcache.c:888 do_unlinkat+0x4b8/0x990 fs/namei.c:4095 do_syscall_64+0x3f/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f2cf6cdf0e7 Code: f0 ff ff 73 01 c3 48 8b 0d ae bd 2b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 81 bd 2b 00 f7 d8 64 89 01 48 RSP: 002b:00007fff40ee5e68 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00005576f0443680 RCX: 00007f2cf6cdf0e7 RDX: 00007fff40ee5d40 RSI: 00007fff40ee5d40 RDI: 00007fff40ee5e70 RBP: 0000000000000015 R08: 00000000000001c0 R09: 0000000000000012 R10: 00007fff40ee5e40 R11: 0000000000000246 R12: 00007fff40ee5e70 R13: 00005576f0443680 R14: 0000000000000003 R15: 000000000000000e addr ffffc9000b48fb60 is located in stack of task systemd-udevd/10185 at offset 0 in frame: _raw_spin_unlock_irqrestore+0x0/0x120 kernel/locking/spinlock.c:184 this frame has 1 object: [32, 40) 'flags.i.i.i.i' Memory state around the buggy address: ffffc9000b48fa00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000b48fa80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc9000b48fb00: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 ^ ffffc9000b48fb80: 00 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000b48fc00: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 ==================================================================