================================================================== BUG: KASAN: use-after-free in rose_timer_expiry+0x470/0x490 net/rose/rose_timer.c:183 Read of size 2 at addr ffff888062f9782a by task swapper/1/0 CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.15.189-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x168/0x230 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+0x16c/0x530 kernel/time/timer.c:1451 expire_timers kernel/time/timer.c:1496 [inline] __run_timers+0x525/0x7c0 kernel/time/timer.c:1767 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1780 handle_softirqs+0x328/0x820 kernel/softirq.c:576 __do_softirq kernel/softirq.c:610 [inline] invoke_softirq kernel/softirq.c:450 [inline] __irq_exit_rcu+0x12f/0x220 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:default_idle+0xb/0x10 arch/x86/kernel/process.c:729 Code: bf 48 89 df e8 a6 aa 0a f8 eb b5 e8 4f b0 f6 ff 00 00 cc cc 00 00 cc cc 00 00 cc cc 00 00 cc 66 90 0f 00 2d e7 44 54 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:ffffc90000d67d48 EFLAGS: 000002c2 RAX: 8357094c41f8d400 RBX: ffff88813fe28000 RCX: 8357094c41f8d400 RDX: 0000000000000001 RSI: ffffffff8a0b15c0 RDI: ffffffff8a599340 RBP: ffffc90000d67e80 R08: dffffc0000000000 R09: ffffed101722765a R10: ffffed101722765a R11: 1ffff11017227659 R12: ffffffff8d696ea8 R13: 0000000000000001 R14: 0000000000000001 R15: 1ffff11027fc5000 default_idle_call+0x81/0xc0 kernel/sched/idle.c:112 cpuidle_idle_call kernel/sched/idle.c:194 [inline] do_idle+0x21b/0x5b0 kernel/sched/idle.c:306 cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:403 start_secondary+0x31f/0x430 arch/x86/kernel/smpboot.c:281 secondary_startup_64_no_verify+0xb1/0xbb Allocated by task 11024: 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] nlmsg_new include/net/netlink.h:953 [inline] inet6_ifa_notify net/ipv6/addrconf.c:5517 [inline] __ipv6_ifa_notify+0x1e5/0xda0 net/ipv6/addrconf.c:6173 ipv6_ifa_notify net/ipv6/addrconf.c:6225 [inline] add_addr+0x1aa/0x2c0 net/ipv6/addrconf.c:3137 add_v4_addrs+0x6f9/0xbf0 net/ipv6/addrconf.c:3193 addrconf_sit_config net/ipv6/addrconf.c:3442 [inline] addrconf_init_auto_addrs+0x37d/0xa80 net/ipv6/addrconf.c:3480 addrconf_notify+0xa6b/0xf00 net/ipv6/addrconf.c:3663 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:2061 [inline] call_netdevice_notifiers net/core/dev.c:2075 [inline] __dev_notify_flags+0x178/0x2d0 net/core/dev.c:-1 dev_change_flags+0xe3/0x1a0 net/core/dev.c:8929 do_setlink+0xc01/0x3980 net/core/rtnetlink.c:2779 __rtnl_newlink net/core/rtnetlink.c:3450 [inline] rtnl_newlink+0x1419/0x17d0 net/core/rtnetlink.c:3572 rtnetlink_rcv_msg+0x9b9/0xe60 net/core/rtnetlink.c:5650 netlink_rcv_skb+0x1e0/0x430 net/netlink/af_netlink.c:2507 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x774/0x920 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x8ab/0xbc0 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] __sys_sendto+0x423/0x580 net/socket.c:2063 __do_sys_sendto net/socket.c:2075 [inline] __se_sys_sendto net/socket.c:2071 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2071 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 11024: 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:1705 [inline] slab_free_freelist_hook+0xea/0x170 mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kfree+0xef/0x2a0 mm/slub.c:4559 skb_free_head net/core/skbuff.c:655 [inline] skb_release_data+0x6fe/0x850 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 inet6_ifa_notify net/ipv6/addrconf.c:5528 [inline] __ipv6_ifa_notify+0x230/0xda0 net/ipv6/addrconf.c:6173 ipv6_ifa_notify net/ipv6/addrconf.c:6225 [inline] add_addr+0x1aa/0x2c0 net/ipv6/addrconf.c:3137 add_v4_addrs+0x6f9/0xbf0 net/ipv6/addrconf.c:3193 addrconf_sit_config net/ipv6/addrconf.c:3442 [inline] addrconf_init_auto_addrs+0x37d/0xa80 net/ipv6/addrconf.c:3480 addrconf_notify+0xa6b/0xf00 net/ipv6/addrconf.c:3663 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:2061 [inline] call_netdevice_notifiers net/core/dev.c:2075 [inline] __dev_notify_flags+0x178/0x2d0 net/core/dev.c:-1 dev_change_flags+0xe3/0x1a0 net/core/dev.c:8929 do_setlink+0xc01/0x3980 net/core/rtnetlink.c:2779 __rtnl_newlink net/core/rtnetlink.c:3450 [inline] rtnl_newlink+0x1419/0x17d0 net/core/rtnetlink.c:3572 rtnetlink_rcv_msg+0x9b9/0xe60 net/core/rtnetlink.c:5650 netlink_rcv_skb+0x1e0/0x430 net/netlink/af_netlink.c:2507 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x774/0x920 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x8ab/0xbc0 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] __sys_sendto+0x423/0x580 net/socket.c:2063 __do_sys_sendto net/socket.c:2075 [inline] __se_sys_sendto net/socket.c:2071 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2071 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 Last potentially related work creation: kasan_save_stack+0x35/0x60 mm/kasan/common.c:38 kasan_record_aux_stack+0xb8/0x100 mm/kasan/generic.c:348 __call_rcu kernel/rcu/tree.c:3011 [inline] call_rcu+0x182/0x930 kernel/rcu/tree.c:3091 fib6_info_release include/net/ip6_fib.h:339 [inline] fib6_del_route net/ipv6/ip6_fib.c:1998 [inline] fib6_del+0x10d9/0x1500 net/ipv6/ip6_fib.c:2031 fib6_clean_node+0x296/0x580 net/ipv6/ip6_fib.c:2193 fib6_walk_continue+0x640/0x8c0 net/ipv6/ip6_fib.c:2115 fib6_walk+0x149/0x290 net/ipv6/ip6_fib.c:2163 fib6_clean_tree net/ipv6/ip6_fib.c:2243 [inline] __fib6_clean_all+0x20e/0x350 net/ipv6/ip6_fib.c:2259 rt6_sync_down_dev net/ipv6/route.c:4915 [inline] rt6_disable_ip+0x11f/0x690 net/ipv6/route.c:4920 addrconf_ifdown+0x149/0x1970 net/ipv6/addrconf.c:3776 addrconf_notify+0x445/0xf00 net/ipv6/addrconf.c:-1 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:2061 [inline] call_netdevice_notifiers net/core/dev.c:2075 [inline] dev_close_many+0x28d/0x400 net/core/dev.c:1650 unregister_netdevice_many+0x472/0x18f0 net/core/dev.c:11110 default_device_exit_batch+0x336/0x390 net/core/dev.c:11667 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x77b/0xb80 net/core/net_namespace.c:635 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Second to last potentially related work creation: kasan_save_stack+0x35/0x60 mm/kasan/common.c:38 kasan_record_aux_stack+0xb8/0x100 mm/kasan/generic.c:348 kvfree_call_rcu+0x10a/0x7c0 kernel/rcu/tree.c:3600 drop_sysctl_table+0x2fa/0x430 fs/proc/proc_sysctl.c:1685 drop_sysctl_table+0x2e9/0x430 fs/proc/proc_sysctl.c:1688 unregister_sysctl_table+0x87/0x130 fs/proc/proc_sysctl.c:1723 mpls_dev_sysctl_unregister+0x8b/0xc0 net/mpls/af_mpls.c:1445 mpls_dev_notify+0x545/0x780 net/mpls/af_mpls.c:1663 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:2061 [inline] call_netdevice_notifiers net/core/dev.c:2075 [inline] unregister_netdevice_many+0xf57/0x18f0 net/core/dev.c:11134 default_device_exit_batch+0x336/0x390 net/core/dev.c:11667 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x77b/0xb80 net/core/net_namespace.c:635 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the object at ffff888062f97800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 42 bytes inside of 512-byte region [ffff888062f97800, ffff888062f97a00) The buggy address belongs to the page: page:ffffea00018be500 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x62f94 head:ffffea00018be500 order:2 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea0001828500 0000000200000002 ffff888016841c80 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 4182, ts 65956464188, free_ts 65941468295 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5474 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab mm/slub.c:1912 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1975 ___slab_alloc+0x81e/0xdf0 mm/slub.c:3008 __slab_alloc mm/slub.c:3095 [inline] slab_alloc_node mm/slub.c:3186 [inline] __kmalloc_node_track_caller+0x1fc/0x3a0 mm/slub.c:4958 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] 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+0x556/0x890 lib/kobject_uevent.c:608 device_add+0x91c/0xfb0 drivers/base/core.c:3393 netdev_register_kobject+0x176/0x310 net/core/net-sysfs.c:2014 register_netdevice+0x1019/0x16b0 net/core/dev.c:10397 __ip_tunnel_create+0x2bf/0x380 net/ipv4/ip_tunnel.c:267 ip_tunnel_init_net+0x232/0x6b0 net/ipv4/ip_tunnel.c:1098 ops_init+0x357/0x600 net/core/net_namespace.c:138 setup_net+0x38d/0x9f0 net/core/net_namespace.c:333 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+0x94/0x280 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 mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0xb3/0xd0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x100/0x290 mm/slub.c:3233 radix_tree_node_alloc+0x197/0x3a0 lib/radix-tree.c:251 idr_get_free+0x2af/0xa60 lib/radix-tree.c:1504 idr_alloc_u32 lib/idr.c:46 [inline] idr_alloc_cyclic+0x19e/0x530 lib/idr.c:125 __kernfs_new_node+0x120/0x680 fs/kernfs/dir.c:599 kernfs_new_node+0x148/0x250 fs/kernfs/dir.c:669 kernfs_create_dir_ns+0x40/0x120 fs/kernfs/dir.c:1005 sysfs_create_dir_ns+0x120/0x280 fs/sysfs/dir.c:59 create_dir lib/kobject.c:89 [inline] kobject_add_internal+0x662/0xd00 lib/kobject.c:263 kobject_add_varg lib/kobject.c:398 [inline] kobject_add+0x152/0x210 lib/kobject.c:450 device_add+0x483/0xfb0 drivers/base/core.c:3347 Memory state around the buggy address: ffff888062f97700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888062f97780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888062f97800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888062f97880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888062f97900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ---------------- Code disassembly (best guess): 0: bf 48 89 df e8 mov $0xe8df8948,%edi 5: a6 cmpsb %es:(%rdi),%ds:(%rsi) 6: aa stos %al,%es:(%rdi) 7: 0a f8 or %al,%bh 9: eb b5 jmp 0xffffffc0 b: e8 4f b0 f6 ff call 0xfff6b05f 10: 00 00 add %al,(%rax) 12: cc int3 13: cc int3 14: 00 00 add %al,(%rax) 16: cc int3 17: cc int3 18: 00 00 add %al,(%rax) 1a: cc int3 1b: cc int3 1c: 00 00 add %al,(%rax) 1e: cc int3 1f: 66 90 xchg %ax,%ax 21: 0f 00 2d e7 44 54 00 verw 0x5444e7(%rip) # 0x54450f 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