================================================================== BUG: KASAN: use-after-free in __hlist_del include/linux/list.h:791 [inline] BUG: KASAN: use-after-free in detach_timer kernel/time/timer.c:824 [inline] BUG: KASAN: use-after-free in expire_timers kernel/time/timer.c:1482 [inline] BUG: KASAN: use-after-free in __run_timers+0x7be/0xbe0 kernel/time/timer.c:1817 Write of size 8 at addr ffff8881ee9ef1c8 by task kworker/u4:4/435 CPU: 0 PID: 435 Comm: kworker/u4:4 Not tainted 5.4.289-syzkaller-00011-g39762b7a60e9 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Workqueue: events_unbound linkwatch_event Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 print_address_description+0x8c/0x600 mm/kasan/report.c:384 __kasan_report+0xf3/0x120 mm/kasan/report.c:516 kasan_report+0x30/0x60 mm/kasan/common.c:653 __hlist_del include/linux/list.h:791 [inline] detach_timer kernel/time/timer.c:824 [inline] expire_timers kernel/time/timer.c:1482 [inline] __run_timers+0x7be/0xbe0 kernel/time/timer.c:1817 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1830 __do_softirq+0x23b/0x6b7 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x195/0x1c0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:539 [inline] smp_apic_timer_interrupt+0x11a/0x490 arch/x86/kernel/apic/apic.c:1161 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:834 RIP: 0010:native_restore_fl arch/x86/include/asm/irqflags.h:41 [inline] RIP: 0010:arch_local_irq_restore arch/x86/include/asm/irqflags.h:84 [inline] RIP: 0010:console_unlock+0xa62/0xfa0 kernel/printk/printk.c:2527 Code: 03 84 db 4c 8d ac 24 00 01 00 00 0f 85 13 05 00 00 e8 e2 e2 16 00 e8 5d 5f 00 00 48 8b 44 24 20 48 89 44 24 70 ff 74 24 70 9d 99 f7 ff ff e8 c4 e2 16 00 48 c7 05 09 16 a0 05 00 00 00 00 e9 RSP: 0018:ffff8881d3a0f740 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000246 RBX: 0000000000000000 RCX: ffff8881edf15e80 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000001 RBP: ffff8881d3a0f8f0 R08: dffffc0000000000 R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff8881d3a0f840 R14: 0000000000000000 R15: ffffffff812ee850 vprintk_emit+0x1e0/0x3f0 kernel/printk/printk.c:2032 printk+0xd1/0x111 kernel/printk/printk.c:2092 addrconf_notify+0x943/0xe50 net/ipv6/addrconf.c:3638 notifier_call_chain kernel/notifier.c:98 [inline] __raw_notifier_call_chain kernel/notifier.c:399 [inline] raw_notifier_call_chain+0x95/0x110 kernel/notifier.c:406 call_netdevice_notifiers_info net/core/dev.c:1670 [inline] netdev_state_change+0x146/0x1e0 net/core/dev.c:1273 linkwatch_do_dev+0xfc/0x130 net/core/link_watch.c:159 __linkwatch_run_queue+0x4cc/0x7f0 net/core/link_watch.c:205 linkwatch_event+0x48/0x50 net/core/link_watch.c:244 process_one_work+0x765/0xd20 kernel/workqueue.c:2290 process_scheduled_works kernel/workqueue.c:2352 [inline] worker_thread+0xe02/0x1470 kernel/workqueue.c:2438 kthread+0x2da/0x360 kernel/kthread.c:288 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:354 The buggy address belongs to the page: page:ffffea0007ba7bc0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 flags: 0x8000000000000000() raw: 8000000000000000 0000000000000000 ffffea0007ba7b88 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 2, migratetype Unmovable, gfp_mask 0x152dc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_ZERO) set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook mm/page_alloc.c:2165 [inline] prep_new_page+0x18f/0x370 mm/page_alloc.c:2171 get_page_from_freelist+0x2d13/0x2d90 mm/page_alloc.c:3794 __alloc_pages_nodemask+0x393/0x840 mm/page_alloc.c:4893 __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] kmalloc_order mm/slab_common.c:1342 [inline] kmalloc_order_trace+0x2a/0x100 mm/slab_common.c:1358 __kmalloc_node include/linux/slab.h:422 [inline] kmalloc_node include/linux/slab.h:599 [inline] kvmalloc_node+0x7e/0xf0 mm/util.c:596 kvmalloc include/linux/mm.h:761 [inline] kvzalloc include/linux/mm.h:769 [inline] bpf_check+0xf4/0xb3e0 kernel/bpf/verifier.c:9561 bpf_prog_load kernel/bpf/syscall.c:1724 [inline] __do_sys_bpf kernel/bpf/syscall.c:2891 [inline] __se_sys_bpf+0x8139/0xbcb0 kernel/bpf/syscall.c:2849 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1176 [inline] __free_pages_ok+0x847/0x950 mm/page_alloc.c:1438 free_the_page mm/page_alloc.c:4955 [inline] __free_pages+0x91/0x140 mm/page_alloc.c:4961 bpf_check+0x8aeb/0xb3e0 kernel/bpf/verifier.c:9731 bpf_prog_load kernel/bpf/syscall.c:1724 [inline] __do_sys_bpf kernel/bpf/syscall.c:2891 [inline] __se_sys_bpf+0x8139/0xbcb0 kernel/bpf/syscall.c:2849 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 Memory state around the buggy address: ffff8881ee9ef080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881ee9ef100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8881ee9ef180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8881ee9ef200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881ee9ef280: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor instruction fetch in kernel mode #PF: error_code(0x0010) - not-present page PGD 1c38a6067 P4D 1c38a6067 PUD 0 Oops: 0010 [#1] PREEMPT SMP KASAN CPU: 0 PID: 435 Comm: kworker/u4:4 Tainted: G B 5.4.289-syzkaller-00011-g39762b7a60e9 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Workqueue: events_unbound linkwatch_event RIP: 0010:0x0 Code: Bad RIP value. RSP: 0018:ffff8881f6e09d18 EFLAGS: 00010202 RAX: ffffffff8154e8aa RBX: 0000000000000101 RCX: ffff8881edf15e80 RDX: 0000000000000101 RSI: 0000000000000000 RDI: ffff8881ee9ef1c0 RBP: ffff8881f6e09ec8 R08: ffffffff8154e4ee R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 0000000100001b00 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881ee9ef1c0 FS: 0000000000000000(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001b859c000 CR4: 00000000003406b0 DR0: 0000400000000300 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: call_timer_fn+0x36/0x390 kernel/time/timer.c:1448 expire_timers kernel/time/timer.c:1493 [inline] __run_timers+0x879/0xbe0 kernel/time/timer.c:1817 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1830 __do_softirq+0x23b/0x6b7 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x195/0x1c0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:539 [inline] smp_apic_timer_interrupt+0x11a/0x490 arch/x86/kernel/apic/apic.c:1161 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:834 RIP: 0010:native_restore_fl arch/x86/include/asm/irqflags.h:41 [inline] RIP: 0010:arch_local_irq_restore arch/x86/include/asm/irqflags.h:84 [inline] RIP: 0010:console_unlock+0xa62/0xfa0 kernel/printk/printk.c:2527 Code: 03 84 db 4c 8d ac 24 00 01 00 00 0f 85 13 05 00 00 e8 e2 e2 16 00 e8 5d 5f 00 00 48 8b 44 24 20 48 89 44 24 70 ff 74 24 70 9d 99 f7 ff ff e8 c4 e2 16 00 48 c7 05 09 16 a0 05 00 00 00 00 e9 RSP: 0018:ffff8881d3a0f740 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000246 RBX: 0000000000000000 RCX: ffff8881edf15e80 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000001 RBP: ffff8881d3a0f8f0 R08: dffffc0000000000 R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff8881d3a0f840 R14: 0000000000000000 R15: ffffffff812ee850 vprintk_emit+0x1e0/0x3f0 kernel/printk/printk.c:2032 printk+0xd1/0x111 kernel/printk/printk.c:2092 addrconf_notify+0x943/0xe50 net/ipv6/addrconf.c:3638 notifier_call_chain kernel/notifier.c:98 [inline] __raw_notifier_call_chain kernel/notifier.c:399 [inline] raw_notifier_call_chain+0x95/0x110 kernel/notifier.c:406 call_netdevice_notifiers_info net/core/dev.c:1670 [inline] netdev_state_change+0x146/0x1e0 net/core/dev.c:1273 linkwatch_do_dev+0xfc/0x130 net/core/link_watch.c:159 __linkwatch_run_queue+0x4cc/0x7f0 net/core/link_watch.c:205 linkwatch_event+0x48/0x50 net/core/link_watch.c:244 process_one_work+0x765/0xd20 kernel/workqueue.c:2290 process_scheduled_works kernel/workqueue.c:2352 [inline] worker_thread+0xe02/0x1470 kernel/workqueue.c:2438 kthread+0x2da/0x360 kernel/kthread.c:288 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:354 Modules linked in: CR2: 0000000000000000 ---[ end trace 042af25e740d62d4 ]--- RIP: 0010:0x0 Code: Bad RIP value. RSP: 0018:ffff8881f6e09d18 EFLAGS: 00010202 RAX: ffffffff8154e8aa RBX: 0000000000000101 RCX: ffff8881edf15e80 RDX: 0000000000000101 RSI: 0000000000000000 RDI: ffff8881ee9ef1c0 RBP: ffff8881f6e09ec8 R08: ffffffff8154e4ee R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 0000000100001b00 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881ee9ef1c0 FS: 0000000000000000(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001b859c000 CR4: 00000000003406b0 DR0: 0000400000000300 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 ---------------- Code disassembly (best guess): 0: 03 84 db 4c 8d ac 24 add 0x24ac8d4c(%rbx,%rbx,8),%eax 7: 00 01 add %al,(%rcx) 9: 00 00 add %al,(%rax) b: 0f 85 13 05 00 00 jne 0x524 11: e8 e2 e2 16 00 call 0x16e2f8 16: e8 5d 5f 00 00 call 0x5f78 1b: 48 8b 44 24 20 mov 0x20(%rsp),%rax 20: 48 89 44 24 70 mov %rax,0x70(%rsp) 25: ff 74 24 70 push 0x70(%rsp) 29: 9d popf * 2a: e9 99 f7 ff ff jmp 0xfffff7c8 <-- trapping instruction 2f: e8 c4 e2 16 00 call 0x16e2f8 34: 48 c7 05 09 16 a0 05 movq $0x0,0x5a01609(%rip) # 0x5a01648 3b: 00 00 00 00 3f: e9 .byte 0xe9