================================================================== 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:1452 [inline] BUG: KASAN: use-after-free in __run_timers+0x7be/0xbe0 kernel/time/timer.c:1787 Write of size 8 at addr ffff8881b77231c8 by task syz-executor.2/15634 CPU: 0 PID: 15634 Comm: syz-executor.2 Tainted: G W 5.4.268-syzkaller-00012-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 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:1452 [inline] __run_timers+0x7be/0xbe0 kernel/time/timer.c:1787 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1800 __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:538 [inline] smp_apic_timer_interrupt+0x11a/0x460 arch/x86/kernel/apic/apic.c:1149 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:834 The buggy address belongs to the page: page:ffffea0006ddc8c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 flags: 0x8000000000000000() raw: 8000000000000000 0000000000000000 ffffea0006ddc8c8 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 0x1c2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL) 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:4891 __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_reserve net/core/skbuff.c:142 [inline] pskb_expand_head+0x10c/0x10b0 net/core/skbuff.c:1647 __skb_cow include/linux/skbuff.h:3192 [inline] skb_cow_head include/linux/skbuff.h:3226 [inline] ip_tunnel_xmit+0x1691/0x26a0 net/ipv4/ip_tunnel.c:810 erspan_xmit+0x855/0x14c0 net/ipv4/ip_gre.c:688 __netdev_start_xmit include/linux/netdevice.h:4538 [inline] netdev_start_xmit include/linux/netdevice.h:4552 [inline] xmit_one net/core/dev.c:3221 [inline] dev_hard_start_xmit+0x1b7/0x6b0 net/core/dev.c:3237 sch_direct_xmit+0x28f/0xa10 net/sched/sch_generic.c:336 qdisc_restart net/sched/sch_generic.c:401 [inline] __qdisc_run+0xa14/0x1e80 net/sched/sch_generic.c:409 qdisc_run+0xf8/0x300 include/net/pkt_sched.h:122 net_tx_action+0x4fc/0x5c0 net/core/dev.c:4582 __do_softirq+0x23b/0x6b7 kernel/softirq.c:292 run_ksoftirqd+0x1f/0x30 kernel/softirq.c:603 smpboot_thread_fn+0x545/0x930 kernel/smpboot.c:165 kthread+0x2da/0x360 kernel/kthread.c:288 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:4953 [inline] __free_pages+0x91/0x140 mm/page_alloc.c:4959 skb_release_all net/core/skbuff.c:675 [inline] __kfree_skb net/core/skbuff.c:689 [inline] kfree_skb+0xb8/0x3c0 net/core/skbuff.c:708 ip_rcv_finish_core+0x5af/0xfb0 net/ipv4/ip_input.c:397 ip_rcv_finish net/ipv4/ip_input.c:418 [inline] NF_HOOK include/linux/netfilter.h:303 [inline] ip_rcv+0xed/0x320 net/ipv4/ip_input.c:530 __netif_receive_skb_one_core net/core/dev.c:4972 [inline] __netif_receive_skb+0x1c6/0x530 net/core/dev.c:5086 process_backlog+0x34f/0x680 net/core/dev.c:5921 napi_poll net/core/dev.c:6367 [inline] net_rx_action+0x53f/0x1160 net/core/dev.c:6435 __do_softirq+0x23b/0x6b7 kernel/softirq.c:292 run_ksoftirqd+0x1f/0x30 kernel/softirq.c:603 smpboot_thread_fn+0x545/0x930 kernel/smpboot.c:165 kthread+0x2da/0x360 kernel/kthread.c:288 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:354 Memory state around the buggy address: ffff8881b7723080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881b7723100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8881b7723180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8881b7723200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881b7723280: 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 0 P4D 0 Oops: 0010 [#1] PREEMPT SMP KASAN CPU: 0 PID: 15634 Comm: syz-executor.2 Tainted: G B W 5.4.268-syzkaller-00012-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:0x0 Code: Bad RIP value. RSP: 0018:ffff8881f6e09d18 EFLAGS: 00010206 RAX: ffffffff8154e34a RBX: 0000000000000100 RCX: ffff8881f0d10000 RDX: 0000000000000100 RSI: 0000000000000000 RDI: ffff8881b77231c0 RBP: ffff8881f6e09ec8 R08: ffffffff8154df8e R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 000000010000f620 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881b77231c0 FS: 0000555556330480(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001d5fed000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: call_timer_fn+0x36/0x390 kernel/time/timer.c:1418 expire_timers kernel/time/timer.c:1463 [inline] __run_timers+0x879/0xbe0 kernel/time/timer.c:1787 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1800 __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:538 [inline] smp_apic_timer_interrupt+0x11a/0x460 arch/x86/kernel/apic/apic.c:1149 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:834 Modules linked in: CR2: 0000000000000000 ---[ end trace 42dc572b1323105c ]--- RIP: 0010:0x0 Code: Bad RIP value. RSP: 0018:ffff8881f6e09d18 EFLAGS: 00010206 RAX: ffffffff8154e34a RBX: 0000000000000100 RCX: ffff8881f0d10000 RDX: 0000000000000100 RSI: 0000000000000000 RDI: ffff8881b77231c0 RBP: ffff8881f6e09ec8 R08: ffffffff8154df8e R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 000000010000f620 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881b77231c0 FS: 0000555556330480(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001d5fed000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600