================================================================== BUG: KASAN: stack-out-of-bounds in profile_pc+0xa4/0xe0 arch/x86/kernel/time.c:42 Read of size 8 at addr ffffc900001df920 by task syz-fuzzer/3541 CPU: 1 PID: 3541 Comm: syz-fuzzer Not tainted 6.1.87-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x15f/0x4f0 mm/kasan/report.c:395 kasan_report+0x136/0x160 mm/kasan/report.c:495 profile_pc+0xa4/0xe0 arch/x86/kernel/time.c:42 profile_tick+0xee/0x170 kernel/profile.c:339 tick_sched_handle kernel/time/tick-sched.c:255 [inline] tick_sched_timer+0x390/0x550 kernel/time/tick-sched.c:1501 __run_hrtimer kernel/time/hrtimer.c:1686 [inline] __hrtimer_run_queues+0x5a7/0xe50 kernel/time/hrtimer.c:1750 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline] __sysvec_apic_timer_interrupt+0x156/0x580 arch/x86/kernel/apic/apic.c:1112 sysvec_apic_timer_interrupt+0x3e/0xb0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0xd4/0x130 kernel/locking/spinlock.c:194 Code: 9c 8f 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 f2 3b 4d f7 f6 44 24 21 02 75 4e 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 d7 88 c9 f6 65 8b 05 78 a4 6d 75 85 c0 74 3f 48 c7 04 24 0e 36 RSP: 0018:ffffc900001df920 EFLAGS: 00000206 RAX: c2b917863e0ef900 RBX: 1ffff9200003bf28 RCX: ffffffff816ad11a RDX: dffffc0000000000 RSI: ffffffff8aec01c0 RDI: 0000000000000001 RBP: ffffc900001df9b8 R08: dffffc0000000000 R09: fffffbfff209345d R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 1ffff9200003bf24 R14: ffffc900001df940 R15: 0000000000000246 __debug_check_no_obj_freed lib/debugobjects.c:987 [inline] debug_check_no_obj_freed+0x455/0x4e0 lib/debugobjects.c:1008 slab_free_hook mm/slub.c:1699 [inline] slab_free_freelist_hook mm/slub.c:1750 [inline] slab_free mm/slub.c:3661 [inline] kmem_cache_free+0x241/0x510 mm/slub.c:3683 tcp_clean_rtx_queue net/ipv4/tcp_input.c:3347 [inline] tcp_ack+0x246c/0x6e80 net/ipv4/tcp_input.c:3906 tcp_rcv_established+0x1341/0x1f00 net/ipv4/tcp_input.c:5983 tcp_v4_do_rcv+0x487/0xb00 net/ipv4/tcp_ipv4.c:1677 tcp_v4_rcv+0x29e0/0x3250 net/ipv4/tcp_ipv4.c:2099 ip_protocol_deliver_rcu+0x381/0x740 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x304/0x580 net/ipv4/ip_input.c:233 NF_HOOK+0x39d/0x450 include/linux/netfilter.h:302 dst_input include/net/dst.h:454 [inline] ip_sublist_rcv_finish net/ipv4/ip_input.c:580 [inline] ip_list_rcv_finish net/ipv4/ip_input.c:631 [inline] ip_sublist_rcv+0xaf9/0xe70 net/ipv4/ip_input.c:639 ip_list_rcv+0x422/0x470 net/ipv4/ip_input.c:674 __netif_receive_skb_list_ptype net/core/dev.c:5571 [inline] __netif_receive_skb_list_core+0x6b1/0x890 net/core/dev.c:5619 __netif_receive_skb_list net/core/dev.c:5671 [inline] netif_receive_skb_list_internal+0xa0d/0xe20 net/core/dev.c:5762 gro_normal_list include/net/gro.h:433 [inline] napi_complete_done+0x352/0x820 net/core/dev.c:6103 virtqueue_napi_complete drivers/net/virtio_net.c:403 [inline] virtnet_poll+0xc85/0x1470 drivers/net/virtio_net.c:1687 __napi_poll+0xc7/0x470 net/core/dev.c:6537 napi_poll net/core/dev.c:6604 [inline] net_rx_action+0x70f/0xeb0 net/core/dev.c:6718 __do_softirq+0x2e9/0xa4c kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x155/0x240 kernel/softirq.c:650 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662 common_interrupt+0xa4/0xc0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x22/0x40 arch/x86/include/asm/idtentry.h:644 RIP: 0010:cpu_max_bits_warn include/linux/cpumask.h:110 [inline] RIP: 0010:cpumask_check include/linux/cpumask.h:117 [inline] RIP: 0010:cpumask_test_cpu include/linux/cpumask.h:444 [inline] RIP: 0010:cpu_online include/linux/cpumask.h:1030 [inline] RIP: 0010:trace_lock_acquire include/trace/events/lock.h:24 [inline] RIP: 0010:lock_acquire+0xc4/0x5a0 kernel/locking/lockdep.c:5633 Code: 43 c6 44 2c 17 f3 0f 1f 44 00 00 65 8b 1d e4 b5 97 7e 48 c7 c0 78 79 73 8e 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 85 59 03 00 00 <39> 1d 9e 15 09 0d 0f 86 e4 02 00 00 89 db 48 89 d8 48 c1 e8 06 48 RSP: 0018:ffffc900039df940 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000002 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8d12ac80 RBP: ffffc900039dfa90 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff9200073bf30 R13: dffffc0000000000 R14: 0000000000000000 R15: ffffffff81f90ac8 rcu_lock_acquire include/linux/rcupdate.h:350 [inline] rcu_read_lock include/linux/rcupdate.h:791 [inline] __fget_files+0x45/0x4a0 fs/file.c:913 __fget fs/file.c:922 [inline] __fget_light fs/file.c:1022 [inline] __fdget+0x175/0x210 fs/file.c:1030 fdget include/linux/file.h:64 [inline] do_epoll_wait+0x1a1/0x1e60 fs/eventpoll.c:2243 do_epoll_pwait+0x56/0x1d0 fs/eventpoll.c:2296 __do_sys_epoll_pwait fs/eventpoll.c:2309 [inline] __se_sys_epoll_pwait fs/eventpoll.c:2303 [inline] __x64_sys_epoll_pwait+0x2b4/0x300 fs/eventpoll.c:2303 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x40720e Code: 48 83 ec 38 e8 13 00 00 00 48 83 c4 38 5d c3 cc cc cc cc cc cc cc cc cc cc cc cc cc 49 89 f2 48 89 fa 48 89 ce 48 89 df 0f 05 <48> 3d 01 f0 ff ff 76 15 48 f7 d8 48 89 c1 48 c7 c0 ff ff ff ff 48 RSP: 002b:000000c000083748 EFLAGS: 00000246 ORIG_RAX: 0000000000000119 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000040720e RDX: 0000000000000080 RSI: 000000c000083818 RDI: 0000000000000004 RBP: 000000c000083790 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000c000083820 R13: 000000c00028b000 R14: 000000c0002256c0 R15: 000000000000013f The buggy address belongs to the virtual mapping at [ffffc900001d9000, ffffc900001e2000) created by: map_irq_stack arch/x86/kernel/irq_64.c:48 [inline] irq_init_percpu_irqstack+0x333/0x490 arch/x86/kernel/irq_64.c:75 The buggy address belongs to the physical page: page:ffffea0002e64200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xb9908 flags: 0xfff80000001000(reserved|node=0|zone=1|lastcpupid=0xfff) raw: 00fff80000001000 ffffea0002e64208 ffffea0002e64208 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffffc900001df800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900001df880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc900001df900: 00 00 00 00 f1 f1 f1 f1 00 f3 f3 f3 00 00 00 00 ^ ffffc900001df980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900001dfa00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: 9c pushf 1: 8f 44 24 20 pop 0x20(%rsp) 5: 42 80 3c 23 00 cmpb $0x0,(%rbx,%r12,1) a: 74 08 je 0x14 c: 4c 89 f7 mov %r14,%rdi f: e8 f2 3b 4d f7 call 0xf74d3c06 14: f6 44 24 21 02 testb $0x2,0x21(%rsp) 19: 75 4e jne 0x69 1b: 41 f7 c7 00 02 00 00 test $0x200,%r15d 22: 74 01 je 0x25 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 d7 88 c9 f6 call 0xf6c98906 <-- trapping instruction 2f: 65 8b 05 78 a4 6d 75 mov %gs:0x756da478(%rip),%eax # 0x756da4ae 36: 85 c0 test %eax,%eax 38: 74 3f je 0x79 3a: 48 rex.W 3b: c7 .byte 0xc7 3c: 04 24 add $0x24,%al 3e: 0e (bad) 3f: 36 ss