================================================================== BUG: KASAN: slab-use-after-free in rose_timer_expiry+0x471/0x4b0 net/rose/rose_timer.c:183 Read of size 2 at addr ffff888027344c2a by task syz-executor/14392 CPU: 1 UID: 0 PID: 14392 Comm: syz-executor Not tainted 6.15.0-rc4-syzkaller-00178-g9540984da649 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/29/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0xb4/0x290 mm/kasan/report.c:521 kasan_report+0x118/0x150 mm/kasan/report.c:634 rose_timer_expiry+0x471/0x4b0 net/rose/rose_timer.c:183 call_timer_fn+0x17b/0x5f0 kernel/time/timer.c:1789 expire_timers kernel/time/timer.c:1840 [inline] __run_timers kernel/time/timer.c:2414 [inline] __run_timer_base+0x61a/0x860 kernel/time/timer.c:2426 run_timer_base kernel/time/timer.c:2435 [inline] run_timer_softirq+0xb7/0x180 kernel/time/timer.c:2445 handle_softirqs+0x283/0x870 kernel/softirq.c:579 __do_softirq kernel/softirq.c:613 [inline] invoke_softirq kernel/softirq.c:453 [inline] __irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:680 irq_exit_rcu+0x9/0x30 kernel/softirq.c:696 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:lock_is_held_type+0x137/0x190 kernel/locking/lockdep.c:5943 Code: 01 75 44 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 4c 41 f7 c4 00 02 00 00 74 01 fb 65 48 8b 05 89 44 1f 07 <48> 3b 44 24 08 75 43 89 d8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f RSP: 0018:ffffc900041d75a8 EFLAGS: 00000206 RAX: 95bda59a146fd600 RBX: 0000000000000001 RCX: 95bda59a146fd600 RDX: 0000000000000003 RSI: ffffffff8d93517b RDI: ffffffff8bc1cde0 RBP: 00000000ffffffff R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: ffffffff825afd8c R12: 0000000000000246 R13: ffff888030515a00 R14: ffff88801aef7148 R15: 0000000000000002 lock_is_held include/linux/lockdep.h:249 [inline] kernfs_active fs/kernfs/dir.c:41 [inline] kernfs_activate_one+0xd9/0x370 fs/kernfs/dir.c:1396 kernfs_activate fs/kernfs/dir.c:1427 [inline] kernfs_add_one+0x3d6/0x520 fs/kernfs/dir.c:834 __kernfs_create_file+0x22b/0x2e0 fs/kernfs/file.c:1067 sysfs_add_file_mode_ns+0x238/0x300 fs/sysfs/file.c:319 create_files fs/sysfs/group.c:76 [inline] internal_create_group+0x66d/0x1110 fs/sysfs/group.c:183 internal_create_groups fs/sysfs/group.c:223 [inline] sysfs_create_groups+0x59/0x120 fs/sysfs/group.c:249 netdev_queue_add_kobject net/core/net-sysfs.c:1982 [inline] netdev_queue_update_kobjects+0x2a6/0x6c0 net/core/net-sysfs.c:2035 register_queue_kobjects net/core/net-sysfs.c:2098 [inline] netdev_register_kobject+0x236/0x2f0 net/core/net-sysfs.c:2340 register_netdevice+0x126c/0x1af0 net/core/dev.c:10997 register_netdev+0x40/0x60 net/core/dev.c:11114 vti6_init_net+0x238/0x370 net/ipv6/ip6_vti.c:1158 ops_init+0x359/0x5c0 net/core/net_namespace.c:138 setup_net+0x238/0x830 net/core/net_namespace.c:364 copy_net_ns+0x32e/0x590 net/core/net_namespace.c:518 create_new_namespaces+0x3d3/0x700 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x11c/0x170 kernel/nsproxy.c:228 ksys_unshare+0x4c8/0x8c0 kernel/fork.c:3375 __do_sys_unshare kernel/fork.c:3446 [inline] __se_sys_unshare kernel/fork.c:3444 [inline] __x64_sys_unshare+0x38/0x50 kernel/fork.c:3444 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd2c4f90167 Code: 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 10 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fffb4f68018 EFLAGS: 00000206 ORIG_RAX: 0000000000000110 RAX: ffffffffffffffda RBX: 00007fd2c51b5f40 RCX: 00007fd2c4f90167 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000040000000 RBP: 00007fd2c51b6738 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000008 R13: 0000000000000003 R14: 0000000000000009 R15: 0000000000000000 Allocated by task 14082: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __kmalloc_cache_noprof+0x230/0x3d0 mm/slub.c:4372 kmalloc_noprof include/linux/slab.h:905 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] mca_alloc net/ipv6/mcast.c:884 [inline] __ipv6_dev_mc_inc+0x420/0xaf0 net/ipv6/mcast.c:975 ipv6_add_dev+0xe54/0x1370 net/ipv6/addrconf.c:470 addrconf_notify+0x794/0x1010 net/ipv6/addrconf.c:3654 notifier_call_chain+0x1b3/0x3e0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2214 [inline] call_netdevice_notifiers net/core/dev.c:2228 [inline] register_netdevice+0x1608/0x1af0 net/core/dev.c:11035 register_vlan_dev+0x3cb/0x800 net/8021q/vlan.c:180 vlan_newlink+0x4b2/0x610 net/8021q/vlan_netlink.c:194 rtnl_newlink_create+0x305/0xaf0 net/core/rtnetlink.c:3833 __rtnl_newlink net/core/rtnetlink.c:3950 [inline] rtnl_newlink+0x16d6/0x1c70 net/core/rtnetlink.c:4065 rtnetlink_rcv_msg+0x7cc/0xb70 net/core/rtnetlink.c:6955 netlink_rcv_skb+0x219/0x490 net/netlink/af_netlink.c:2534 netlink_unicast_kernel net/netlink/af_netlink.c:1313 [inline] netlink_unicast+0x758/0x8d0 net/netlink/af_netlink.c:1339 netlink_sendmsg+0x805/0xb30 net/netlink/af_netlink.c:1883 sock_sendmsg_nosec net/socket.c:712 [inline] __sock_sendmsg+0x219/0x270 net/socket.c:727 __sys_sendto+0x3bd/0x520 net/socket.c:2180 __do_sys_sendto net/socket.c:2187 [inline] __se_sys_sendto net/socket.c:2183 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2183 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 6681: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x62/0x70 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2398 [inline] slab_free_freelist_hook mm/slub.c:2427 [inline] slab_free_bulk mm/slub.c:4680 [inline] kmem_cache_free_bulk+0x2d1/0x520 mm/slub.c:5257 kfree_bulk include/linux/slab.h:794 [inline] kvfree_rcu_bulk+0xe5/0x1e0 mm/slab_common.c:1516 kvfree_rcu_drain_ready mm/slab_common.c:1699 [inline] kfree_rcu_monitor+0x211/0x2a0 mm/slab_common.c:1772 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xadb/0x17a0 kernel/workqueue.c:3319 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400 kthread+0x70e/0x8a0 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:47 kasan_record_aux_stack+0xbc/0xd0 mm/kasan/generic.c:548 kvfree_call_rcu+0xbb/0x410 mm/slab_common.c:1962 ipv6_mc_destroy_dev+0x3c5/0x5a0 net/ipv6/mcast.c:2862 addrconf_ifdown+0x139e/0x1880 net/ipv6/addrconf.c:4000 addrconf_notify+0x1bc/0x1010 net/ipv6/addrconf.c:-1 notifier_call_chain+0x1b3/0x3e0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2214 [inline] call_netdevice_notifiers net/core/dev.c:2228 [inline] unregister_netdevice_many_notify+0x15d8/0x2330 net/core/dev.c:11970 unregister_netdevice_many net/core/dev.c:12034 [inline] default_device_exit_batch+0x819/0x890 net/core/dev.c:12528 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x7a9/0xbd0 net/core/net_namespace.c:654 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xadb/0x17a0 kernel/workqueue.c:3319 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400 kthread+0x70e/0x8a0 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff888027344c00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 42 bytes inside of freed 512-byte region [ffff888027344c00, ffff888027344e00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x27344 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801a041c80 ffffea00018bb100 dead000000000002 raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801a041c80 ffffea00018bb100 dead000000000002 head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000002 ffffea00009cd101 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0x252800(GFP_NOWAIT|__GFP_NORETRY|__GFP_COMP|__GFP_THISNODE), pid 5827, tgid 5827 (syz-executor), ts 87618609357, free_ts 87240901142 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1d8/0x230 mm/page_alloc.c:1718 prep_new_page mm/page_alloc.c:1726 [inline] get_page_from_freelist+0x21ce/0x22b0 mm/page_alloc.c:3688 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4970 alloc_slab_page mm/slub.c:2470 [inline] allocate_slab+0x65/0x3b0 mm/slub.c:2632 new_slab mm/slub.c:2686 [inline] ___slab_alloc+0xbfc/0x1480 mm/slub.c:3872 __slab_alloc mm/slub.c:3962 [inline] __slab_alloc_node mm/slub.c:4037 [inline] slab_alloc_node mm/slub.c:4198 [inline] __do_kmalloc_node mm/slub.c:4340 [inline] __kmalloc_node_noprof+0x2fd/0x4e0 mm/slub.c:4347 kmalloc_array_node_noprof include/linux/slab.h:1020 [inline] alloc_slab_obj_exts+0x39/0xa0 mm/slub.c:1992 __memcg_slab_post_alloc_hook+0x332/0x820 mm/memcontrol.c:3074 memcg_slab_post_alloc_hook mm/slub.c:2197 [inline] slab_post_alloc_hook mm/slub.c:4171 [inline] slab_alloc_node mm/slub.c:4210 [inline] kmem_cache_alloc_noprof+0x2bf/0x3c0 mm/slub.c:4217 anon_vma_chain_alloc mm/rmap.c:142 [inline] anon_vma_clone+0xb8/0x4f0 mm/rmap.c:288 anon_vma_fork+0x79/0x500 mm/rmap.c:351 dup_mmap kernel/fork.c:689 [inline] dup_mm kernel/fork.c:1734 [inline] copy_mm+0xcbc/0x2100 kernel/fork.c:1786 copy_process+0x16d3/0x3b80 kernel/fork.c:2429 kernel_clone+0x21e/0x870 kernel/fork.c:2844 __do_sys_clone kernel/fork.c:2987 [inline] __se_sys_clone kernel/fork.c:2971 [inline] __x64_sys_clone+0x18b/0x1e0 kernel/fork.c:2971 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 page last free pid 5916 tgid 5915 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1262 [inline] __free_frozen_pages+0xb0e/0xcd0 mm/page_alloc.c:2725 stack_depot_save_flags+0x447/0x910 lib/stackdepot.c:678 kasan_save_stack mm/kasan/common.c:48 [inline] kasan_save_track+0x4f/0x80 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:319 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:345 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4161 [inline] slab_alloc_node mm/slub.c:4210 [inline] kmem_cache_alloc_noprof+0x1c1/0x3c0 mm/slub.c:4217 skb_clone+0x212/0x3a0 net/core/skbuff.c:2056 dev_queue_xmit_nit+0x416/0xcc0 net/core/dev.c:2501 xmit_one net/core/dev.c:3772 [inline] dev_hard_start_xmit+0x1d5/0x880 net/core/dev.c:3792 __dev_queue_xmit+0x1adf/0x3a70 net/core/dev.c:4629 dev_queue_xmit include/linux/netdevice.h:3350 [inline] __netlink_deliver_tap_skb net/netlink/af_netlink.c:307 [inline] __netlink_deliver_tap+0x5ad/0x850 net/netlink/af_netlink.c:325 netlink_deliver_tap+0x19c/0x1b0 net/netlink/af_netlink.c:338 __netlink_sendskb net/netlink/af_netlink.c:1256 [inline] netlink_sendskb+0x68/0x140 net/netlink/af_netlink.c:1265 nlmsg_unicast include/net/netlink.h:1162 [inline] genlmsg_unicast include/net/genetlink.h:553 [inline] genlmsg_reply include/net/genetlink.h:563 [inline] ctrl_getfamily+0x499/0x590 net/netlink/genetlink.c:1473 genl_family_rcv_msg_doit+0x212/0x300 net/netlink/genetlink.c:1115 genl_family_rcv_msg net/netlink/genetlink.c:1195 [inline] genl_rcv_msg+0x60e/0x790 net/netlink/genetlink.c:1210 netlink_rcv_skb+0x219/0x490 net/netlink/af_netlink.c:2534 Memory state around the buggy address: ffff888027344b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888027344b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888027344c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888027344c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888027344d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ---------------- Code disassembly (best guess): 0: 01 75 44 add %esi,0x44(%rbp) 3: 48 c7 04 24 00 00 00 movq $0x0,(%rsp) a: 00 b: 9c pushf c: 8f 04 24 pop (%rsp) f: f7 04 24 00 02 00 00 testl $0x200,(%rsp) 16: 75 4c jne 0x64 18: 41 f7 c4 00 02 00 00 test $0x200,%r12d 1f: 74 01 je 0x22 21: fb sti 22: 65 48 8b 05 89 44 1f mov %gs:0x71f4489(%rip),%rax # 0x71f44b3 29: 07 * 2a: 48 3b 44 24 08 cmp 0x8(%rsp),%rax <-- trapping instruction 2f: 75 43 jne 0x74 31: 89 d8 mov %ebx,%eax 33: 48 83 c4 10 add $0x10,%rsp 37: 5b pop %rbx 38: 41 5c pop %r12 3a: 41 5d pop %r13 3c: 41 5e pop %r14 3e: 41 5f pop %r15