================================================================== BUG: KASAN: use-after-free in rose_timer_expiry+0x470/0x490 net/rose/rose_timer.c:183 Read of size 2 at addr ffff8880585da82a by task swapper/0/0 CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.1.136-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x220 mm/kasan/report.c:427 kasan_report+0x10b/0x140 mm/kasan/report.c:531 rose_timer_expiry+0x470/0x490 net/rose/rose_timer.c:183 call_timer_fn+0x1a0/0x670 kernel/time/timer.c:1504 expire_timers kernel/time/timer.c:1549 [inline] __run_timers+0x525/0x7c0 kernel/time/timer.c:1820 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1833 handle_softirqs+0x2a1/0x920 kernel/softirq.c:578 __do_softirq kernel/softirq.c:612 [inline] invoke_softirq kernel/softirq.c:452 [inline] __irq_exit_rcu+0x12f/0x220 kernel/softirq.c:661 irq_exit_rcu+0x5/0x20 kernel/softirq.c:673 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:default_idle+0xb/0x10 arch/x86/kernel/process.c:736 Code: 48 89 df e8 67 3a b9 f7 e9 4c ff ff ff e8 4d 14 f6 ff 00 00 cc cc 00 00 cc cc 00 00 cc cc 00 66 90 0f 00 2d b7 a2 4d 00 fb f4 0f 1f 40 00 41 57 41 56 53 49 be 00 00 00 00 00 fc ff df 65 48 RSP: 0018:ffffffff8c607d88 EFLAGS: 000002c6 RAX: 6f1dbdc9cfbca600 RBX: ffffffff8a1900d7 RCX: 6f1dbdc9cfbca600 RDX: 0000000000000001 RSI: ffffffff8a6bfe00 RDI: ffffffff8abf0da0 RBP: ffffffff8c607ec0 R08: dffffc0000000000 R09: ffffed10171c6aee R10: ffffed10171c6aee R11: 1ffff110171c6aed R12: 0000000000000000 R13: dffffc0000000000 R14: ffffffff8c6bc680 R15: 1ffffffff1bfd07e default_idle_call+0x84/0xc0 kernel/sched/idle.c:109 cpuidle_idle_call kernel/sched/idle.c:191 [inline] do_idle+0x1fc/0x570 kernel/sched/idle.c:303 cpu_startup_entry+0x3f/0x60 kernel/sched/idle.c:401 rest_init+0x2dc/0x300 init/main.c:733 arch_call_rest_init+0xa/0xa init/main.c:893 start_kernel+0x490/0x539 init/main.c:1140 secondary_startup_64_no_verify+0xcf/0xdb Allocated by task 19170: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x8e/0xa0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc_node_track_caller+0xae/0x230 mm/slab_common.c:956 kmalloc_reserve net/core/skbuff.c:446 [inline] __alloc_skb+0x22a/0x7e0 net/core/skbuff.c:515 alloc_skb include/linux/skbuff.h:1271 [inline] alloc_skb_with_frags+0xa7/0x710 net/core/skbuff.c:6162 sock_alloc_send_pskb+0x853/0x980 net/core/sock.c:2750 sock_alloc_send_skb include/net/sock.h:1926 [inline] __ip_append_data+0x253c/0x3760 net/ipv4/ip_output.c:1121 ip_make_skb+0x1d6/0x3f0 net/ipv4/ip_output.c:1665 udp_sendmsg+0x19ea/0x23d0 net/ipv4/udp.c:1276 udpv6_sendmsg+0xa48/0x2540 net/ipv6/udp.c:1410 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] ____sys_sendmsg+0x59b/0x970 net/socket.c:2519 ___sys_sendmsg+0x21c/0x290 net/socket.c:2573 __sys_sendmmsg+0x272/0x490 net/socket.c:2659 __do_sys_sendmmsg net/socket.c:2688 [inline] __se_sys_sendmmsg net/socket.c:2685 [inline] __x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2685 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Freed by task 19170: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x2d/0x50 mm/kasan/generic.c:516 ____kasan_slab_free+0x126/0x1e0 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1724 [inline] slab_free_freelist_hook+0x131/0x1a0 mm/slub.c:1750 slab_free mm/slub.c:3661 [inline] __kmem_cache_free+0xb6/0x1f0 mm/slub.c:3674 skb_free_head net/core/skbuff.c:762 [inline] skb_release_data+0x5db/0x7c0 net/core/skbuff.c:791 skb_release_all net/core/skbuff.c:856 [inline] __kfree_skb net/core/skbuff.c:870 [inline] kfree_skb_reason+0x163/0x370 net/core/skbuff.c:893 kfree_skb_list_reason+0x43/0x70 net/core/skbuff.c:903 __dev_xmit_skb net/core/dev.c:3964 [inline] __dev_queue_xmit+0x20f1/0x3760 net/core/dev.c:4300 dev_queue_xmit include/linux/netdevice.h:3051 [inline] neigh_hh_output include/net/neighbour.h:528 [inline] neigh_output include/net/neighbour.h:542 [inline] ip_finish_output2+0xbe8/0x11b0 net/ipv4/ip_output.c:228 dst_output include/net/dst.h:453 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] ip_send_skb+0x129/0x1c0 net/ipv4/ip_output.c:1599 udp_send_skb+0xa88/0x1580 net/ipv4/udp.c:993 udp_sendmsg+0x1a31/0x23d0 net/ipv4/udp.c:1281 udpv6_sendmsg+0xa48/0x2540 net/ipv6/udp.c:1410 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] ____sys_sendmsg+0x59b/0x970 net/socket.c:2519 ___sys_sendmsg+0x21c/0x290 net/socket.c:2573 __sys_sendmmsg+0x272/0x490 net/socket.c:2659 __do_sys_sendmmsg net/socket.c:2688 [inline] __se_sys_sendmmsg net/socket.c:2685 [inline] __x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2685 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 kvfree_call_rcu+0x108/0x870 kernel/rcu/tree.c:3401 ipv6_mc_destroy_dev+0x3bd/0x590 net/ipv6/mcast.c:2819 addrconf_ifdown+0x151f/0x1a10 net/ipv6/addrconf.c:3944 addrconf_notify+0x405/0xf40 net/ipv6/addrconf.c:-1 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xcb/0x160 kernel/notifier.c:455 call_netdevice_notifiers_extack net/core/dev.c:2039 [inline] call_netdevice_notifiers net/core/dev.c:2053 [inline] unregister_netdevice_many+0xfdc/0x1840 net/core/dev.c:10978 default_device_exit_batch+0x9c3/0xa50 net/core/dev.c:11491 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x77b/0xb80 net/core/net_namespace.c:640 process_one_work+0x898/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1250 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the object at ffff8880585da800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 42 bytes inside of 512-byte region [ffff8880585da800, ffff8880585daa00) The buggy address belongs to the physical page: page:ffffea0001617600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x585d8 head:ffffea0001617600 order:2 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 dead000000000100 dead000000000122 ffff888017441c80 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 4250, tgid 4250 (syz-executor), ts 75773240549, free_ts 20935008402 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5606 alloc_slab_page+0x5d/0x160 mm/slub.c:1794 allocate_slab mm/slub.c:1939 [inline] new_slab+0x87/0x2c0 mm/slub.c:1992 ___slab_alloc+0xbc6/0x1220 mm/slub.c:3180 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] __kmem_cache_alloc_node+0x1a0/0x260 mm/slub.c:3437 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc_node_track_caller+0x9e/0x230 mm/slab_common.c:956 kmalloc_reserve net/core/skbuff.c:446 [inline] __alloc_skb+0x22a/0x7e0 net/core/skbuff.c:515 alloc_skb include/linux/skbuff.h:1271 [inline] alloc_uevent_skb+0x7d/0x230 lib/kobject_uevent.c:290 uevent_net_broadcast_tagged lib/kobject_uevent.c:351 [inline] kobject_uevent_net_broadcast+0x17e/0x530 lib/kobject_uevent.c:412 kobject_uevent_env+0x54c/0x8a0 lib/kobject_uevent.c:608 rx_queue_add_kobject net/core/net-sysfs.c:1072 [inline] net_rx_queue_update_kobjects+0x23f/0x4a0 net/core/net-sysfs.c:1112 register_queue_kobjects net/core/net-sysfs.c:1772 [inline] netdev_register_kobject+0x223/0x310 net/core/net-sysfs.c:2017 register_netdevice+0x12b9/0x1aa0 net/core/dev.c:10192 veth_newlink+0x592/0xbe0 drivers/net/veth.c:1724 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare mm/page_alloc.c:1509 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3384 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3479 free_contig_range+0x9d/0x150 mm/page_alloc.c:9566 destroy_args+0xef/0x8bf mm/debug_vm_pgtable.c:1031 debug_vm_pgtable+0x32a/0x37e mm/debug_vm_pgtable.c:1354 do_one_initcall+0x214/0x7a0 init/main.c:1298 do_initcall_level+0x137/0x1e4 init/main.c:1371 do_initcalls+0x4b/0x8a init/main.c:1387 kernel_init_freeable+0x3fa/0x5ac init/main.c:1626 kernel_init+0x19/0x1b0 init/main.c:1514 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Memory state around the buggy address: ffff8880585da700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880585da780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880585da800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880585da880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880585da900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ---------------- Code disassembly (best guess): 0: 48 89 df mov %rbx,%rdi 3: e8 67 3a b9 f7 call 0xf7b93a6f 8: e9 4c ff ff ff jmp 0xffffff59 d: e8 4d 14 f6 ff call 0xfff6145f 12: 00 00 add %al,(%rax) 14: cc int3 15: cc int3 16: 00 00 add %al,(%rax) 18: cc int3 19: cc int3 1a: 00 00 add %al,(%rax) 1c: cc int3 1d: cc int3 1e: 00 66 90 add %ah,-0x70(%rsi) 21: 0f 00 2d b7 a2 4d 00 verw 0x4da2b7(%rip) # 0x4da2df 28: fb sti 29: f4 hlt * 2a: c3 ret <-- trapping instruction 2b: 0f 1f 40 00 nopl 0x0(%rax) 2f: 41 57 push %r15 31: 41 56 push %r14 33: 53 push %rbx 34: 49 be 00 00 00 00 00 movabs $0xdffffc0000000000,%r14 3b: fc ff df 3e: 65 gs 3f: 48 rex.W