================================================================== BUG: KASAN: use-after-free in rose_timer_expiry+0x470/0x490 net/rose/rose_timer.c:183 Read of size 2 at addr ffff8880610c4c2a by task kworker/1:15/8990 CPU: 1 PID: 8990 Comm: kworker/1:15 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Workqueue: rcu_gp process_srcu Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 rose_timer_expiry+0x470/0x490 net/rose/rose_timer.c:183 call_timer_fn+0x17b/0x540 kernel/time/timer.c:1648 expire_timers kernel/time/timer.c:1699 [inline] __run_timers+0x53e/0x800 kernel/time/timer.c:1970 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1983 handle_softirqs+0x339/0x830 kernel/softirq.c:576 __do_softirq kernel/softirq.c:610 [inline] invoke_softirq kernel/softirq.c:450 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659 irq_exit_rcu+0x5/0x20 kernel/softirq.c:671 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676 RIP: 0010:queue_delayed_work_on+0x1a7/0x1f0 kernel/workqueue.c:1720 Code: 4d 85 ed 75 16 e8 89 1f 2b 00 eb 15 e8 82 1f 2b 00 e8 3d 67 6e 08 4d 85 ed 74 ea e8 73 1f 2b 00 fb 48 c7 44 24 20 0e 36 e0 45 <48> b8 00 00 00 00 00 fc ff df 49 c7 04 06 00 00 00 00 41 c7 44 06 RSP: 0018:ffffc9000326fb60 EFLAGS: 00000293 RAX: ffffffff814e019d RBX: 0000000000000000 RCX: ffff888074cb1dc0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000326fc30 R08: ffffffff901d40d7 R09: 1ffffffff203a81a R10: dffffc0000000000 R11: fffffbfff203a81b R12: dffffc0000000001 R13: 0000000000000200 R14: 1ffff9200064df70 R15: 0000000000000000 process_one_work+0x85f/0x1010 kernel/workqueue.c:2310 worker_thread+0xaa6/0x1290 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Allocated by task 9779: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] ____kasan_kmalloc mm/kasan/common.c:513 [inline] __kasan_kmalloc+0xb5/0xf0 mm/kasan/common.c:522 kmalloc_reserve net/core/skbuff.c:356 [inline] __alloc_skb+0x22c/0x750 net/core/skbuff.c:427 alloc_skb include/linux/skbuff.h:1162 [inline] sock_wmalloc+0xa6/0x120 net/core/sock.c:2385 l2tp_ip_sendmsg+0x1bf/0x1440 net/l2tp/l2tp_ip.c:437 sock_sendmsg_nosec net/socket.c:706 [inline] __sock_sendmsg net/socket.c:718 [inline] ____sys_sendmsg+0x5b7/0x8f0 net/socket.c:2445 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2499 __sys_sendmmsg+0x2ba/0x500 net/socket.c:2585 __do_sys_sendmmsg net/socket.c:2614 [inline] __se_sys_sendmmsg net/socket.c:2611 [inline] __x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2611 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Freed by task 9779: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:46 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360 ____kasan_slab_free+0xd5/0x110 mm/kasan/common.c:366 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1710 [inline] slab_free_freelist_hook+0xea/0x170 mm/slub.c:1736 slab_free mm/slub.c:3504 [inline] kfree+0xef/0x2a0 mm/slub.c:4564 skb_free_head net/core/skbuff.c:655 [inline] skb_release_data+0x6b8/0x800 net/core/skbuff.c:677 skb_release_all net/core/skbuff.c:742 [inline] __kfree_skb net/core/skbuff.c:756 [inline] kfree_skb_reason net/core/skbuff.c:776 [inline] kfree_skb include/linux/skbuff.h:1118 [inline] kfree_skb_list+0xc4/0x140 net/core/skbuff.c:785 __dev_xmit_skb net/core/dev.c:3961 [inline] __dev_queue_xmit+0x2024/0x2f80 net/core/dev.c:4266 neigh_hh_output include/net/neighbour.h:493 [inline] neigh_output include/net/neighbour.h:507 [inline] ip_finish_output2+0xc87/0x10a0 net/ipv4/ip_output.c:228 NF_HOOK_COND include/linux/netfilter.h:291 [inline] ip_output+0x2c0/0x3e0 net/ipv4/ip_output.c:434 dst_output include/net/dst.h:452 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] __ip_queue_xmit+0x11c1/0x1c00 net/ipv4/ip_output.c:538 l2tp_ip_sendmsg+0x56a/0x1440 net/l2tp/l2tp_ip.c:498 sock_sendmsg_nosec net/socket.c:706 [inline] __sock_sendmsg net/socket.c:718 [inline] ____sys_sendmsg+0x5b7/0x8f0 net/socket.c:2445 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2499 __sys_sendmmsg+0x2ba/0x500 net/socket.c:2585 __do_sys_sendmmsg net/socket.c:2614 [inline] __se_sys_sendmmsg net/socket.c:2611 [inline] __x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2611 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff8880610c4c00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 42 bytes inside of 512-byte region [ffff8880610c4c00, ffff8880610c4e00) The buggy address belongs to the page: page:ffffea0001843100 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x610c4 head:ffffea0001843100 order:2 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 0000000100000001 ffff888016c41c80 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4185, ts 52062968392, free_ts 52062401264 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1bbd/0x1ca0 mm/page_alloc.c:4192 __alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501 alloc_slab_page mm/slub.c:1780 [inline] allocate_slab mm/slub.c:1917 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1980 ___slab_alloc+0x80a/0xdd0 mm/slub.c:3013 __slab_alloc mm/slub.c:3100 [inline] slab_alloc_node mm/slub.c:3191 [inline] __kmalloc_node_track_caller+0x1fc/0x3a0 mm/slub.c:4963 kmalloc_reserve net/core/skbuff.c:356 [inline] __alloc_skb+0x22c/0x750 net/core/skbuff.c:427 alloc_skb include/linux/skbuff.h:1162 [inline] nlmsg_new include/net/netlink.h:953 [inline] mpls_netconf_notify_devconf+0x46/0xf0 net/mpls/af_mpls.c:1188 mpls_dev_sysctl_register+0x249/0x2f0 net/mpls/af_mpls.c:1425 mpls_add_dev net/mpls/af_mpls.c:1476 [inline] mpls_dev_notify+0x2fa/0x780 net/mpls/af_mpls.c:1621 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xcb/0x160 kernel/notifier.c:391 call_netdevice_notifiers_extack net/core/dev.c:2074 [inline] call_netdevice_notifiers net/core/dev.c:2088 [inline] register_netdevice+0x12a6/0x1710 net/core/dev.c:10454 register_vlan_dev+0x393/0x810 net/8021q/vlan.c:180 vlan_newlink+0x44c/0x610 net/8021q/vlan_netlink.c:195 __rtnl_newlink net/core/rtnetlink.c:3526 [inline] rtnl_newlink+0x1359/0x1a50 net/core/rtnetlink.c:3574 rtnetlink_rcv_msg+0x844/0xf30 net/core/rtnetlink.c:5684 netlink_rcv_skb+0x1f5/0x440 net/netlink/af_netlink.c:2507 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page+0x8f/0x2a0 mm/page_alloc.c:3396 stack_depot_save+0x418/0x440 lib/stackdepot.c:335 kasan_save_stack mm/kasan/common.c:40 [inline] kasan_set_track+0x62/0x70 mm/kasan/common.c:46 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360 ____kasan_slab_free+0xd5/0x110 mm/kasan/common.c:366 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1710 [inline] slab_free_freelist_hook+0xea/0x170 mm/slub.c:1736 slab_free mm/slub.c:3504 [inline] kfree+0xef/0x2a0 mm/slub.c:4564 skb_free_head net/core/skbuff.c:655 [inline] skb_release_data+0x6b8/0x800 net/core/skbuff.c:677 skb_release_all net/core/skbuff.c:742 [inline] __kfree_skb net/core/skbuff.c:756 [inline] consume_skb+0xa2/0x100 net/core/skbuff.c:914 netlink_broadcast_filtered+0x107a/0x1170 net/netlink/af_netlink.c:1534 netlink_broadcast net/netlink/af_netlink.c:1556 [inline] nlmsg_multicast include/net/netlink.h:1033 [inline] nlmsg_notify+0xec/0x1a0 net/netlink/af_netlink.c:2550 __devinet_sysctl_register+0x32a/0x3a0 net/ipv4/devinet.c:2609 devinet_sysctl_register+0x17c/0x1f0 net/ipv4/devinet.c:2643 inetdev_init+0x28c/0x4d0 net/ipv4/devinet.c:277 inetdev_event+0x26f/0x1370 net/ipv4/devinet.c:1543 Memory state around the buggy address: ffff8880610c4b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880610c4b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880610c4c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880610c4c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880610c4d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ---------------- Code disassembly (best guess): 0: 4d 85 ed test %r13,%r13 3: 75 16 jne 0x1b 5: e8 89 1f 2b 00 call 0x2b1f93 a: eb 15 jmp 0x21 c: e8 82 1f 2b 00 call 0x2b1f93 11: e8 3d 67 6e 08 call 0x86e6753 16: 4d 85 ed test %r13,%r13 19: 74 ea je 0x5 1b: e8 73 1f 2b 00 call 0x2b1f93 20: fb sti 21: 48 c7 44 24 20 0e 36 movq $0x45e0360e,0x20(%rsp) 28: e0 45 * 2a: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax <-- trapping instruction 31: fc ff df 34: 49 c7 04 06 00 00 00 movq $0x0,(%r14,%rax,1) 3b: 00 3c: 41 rex.B 3d: c7 .byte 0xc7 3e: 44 06 rex.R (bad)