------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 1 PID: 15110 at lib/refcount.c:25 refcount_warn_saturate+0xff/0x1a0 lib/refcount.c:25 Modules linked in: CPU: 1 PID: 15110 Comm: syz-executor Not tainted 6.1.141-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:refcount_warn_saturate+0xff/0x1a0 lib/refcount.c:25 Code: 09 01 48 c7 c7 a0 d2 be 8a e8 ad 30 45 fd 0f 0b eb e0 e8 f4 1d 79 fd c6 05 fa 72 e2 09 01 48 c7 c7 e0 d1 be 8a e8 91 30 45 fd <0f> 0b eb c4 e8 d8 1d 79 fd c6 05 df 72 e2 09 01 48 c7 c7 40 d2 be RSP: 0018:ffffc900001e0828 EFLAGS: 00010246 RAX: ecd8489a4fe7b800 RBX: 0000000000000002 RCX: ffff88813fe4d940 RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000002 RBP: ffffc900001e0990 R08: dffffc0000000000 R09: fffff5200003c095 R10: fffff5200003c095 R11: 1ffff9200003c094 R12: ffff88805a1a9c40 R13: dffffc0000000000 R14: 0000000000000002 R15: ffff888057077448 FS: 00005555726be500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffda3accf78 CR3: 000000005414c000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __refcount_add include/linux/refcount.h:-1 [inline] __refcount_inc include/linux/refcount.h:250 [inline] refcount_inc include/linux/refcount.h:267 [inline] get_net include/net/net_namespace.h:257 [inline] tipc_aead_encrypt net/tipc/crypto.c:821 [inline] tipc_crypto_xmit+0x17a9/0x2300 net/tipc/crypto.c:1761 tipc_bearer_xmit_skb+0x242/0x3f0 net/tipc/bearer.c:574 tipc_disc_timeout+0x568/0x6b0 net/tipc/discover.c:338 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:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x12f/0x220 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 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:orc_ip arch/x86/kernel/unwind_orc.c:30 [inline] RIP: 0010:__orc_find arch/x86/kernel/unwind_orc.c:52 [inline] RIP: 0010:orc_find arch/x86/kernel/unwind_orc.c:178 [inline] RIP: 0010:unwind_next_frame+0x1345/0x20b0 arch/x86/kernel/unwind_orc.c:448 Code: cc 08 e9 7f 05 00 00 49 89 f7 49 89 f5 4c 89 e0 4c 29 e8 48 89 c1 48 c1 f9 02 48 c1 e8 3f 48 01 c8 48 83 e0 fe 4d 8d 74 45 00 <4c> 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 0f b6 04 08 84 RSP: 0018:ffffc90004b9e6d0 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffffc90004b9e7a8 RCX: 0000000000000000 RDX: ffffffff8e8ca9d0 RSI: ffffffff8e18452c RDI: ffffffff8138551f RBP: ffffffff820525c7 R08: 0000000000000003 R09: 0000000000000005 R10: fffff52000973d01 R11: 1ffff92000973cff R12: ffffffff8e184534 R13: ffffffff8e184534 R14: ffffffff8e184534 R15: ffffffff8e184530 arch_stack_walk+0x10c/0x140 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x98/0xe0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x6b/0x80 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x480 mm/slab.h:737 slab_alloc_node mm/slub.c:3398 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc+0x123/0x2f0 mm/slub.c:3422 kmem_cache_zalloc include/linux/slab.h:689 [inline] __kernfs_new_node+0xd4/0x7d0 fs/kernfs/dir.c:614 kernfs_new_node+0x148/0x250 fs/kernfs/dir.c:690 __kernfs_create_file+0x47/0x2e0 fs/kernfs/file.c:1049 sysfs_add_file_mode_ns+0x234/0x2f0 fs/sysfs/file.c:294 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x487/0xce0 fs/sysfs/group.c:148 internal_create_groups fs/sysfs/group.c:188 [inline] sysfs_create_groups+0x55/0x120 fs/sysfs/group.c:214 device_add_groups drivers/base/core.c:2752 [inline] device_add_attrs+0xdb/0x800 drivers/base/core.c:2900 device_add+0x64b/0xfb0 drivers/base/core.c:3648 netdev_register_kobject+0x176/0x310 net/core/net-sysfs.c:2013 register_netdevice+0x12b9/0x1aa0 net/core/dev.c:10192 team_newlink+0xf4/0x140 drivers/net/team/team.c:2237 rtnl_newlink_create net/core/rtnetlink.c:3422 [inline] __rtnl_newlink net/core/rtnetlink.c:3642 [inline] rtnl_newlink+0x14c4/0x1ff0 net/core/rtnetlink.c:3655 rtnetlink_rcv_msg+0x79b/0xed0 net/core/rtnetlink.c:6153 netlink_rcv_skb+0x1de/0x420 net/netlink/af_netlink.c:2493 netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline] netlink_unicast+0x74c/0x8c0 net/netlink/af_netlink.c:1337 netlink_sendmsg+0x89e/0xbc0 net/netlink/af_netlink.c:1859 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] __sys_sendto+0x44f/0x5c0 net/socket.c:2153 __do_sys_sendto net/socket.c:2165 [inline] __se_sys_sendto net/socket.c:2161 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2161 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 RIP: 0033:0x7f12f97907bc Code: 2a 5f 02 00 44 8b 4c 24 2c 4c 8b 44 24 20 89 c5 44 8b 54 24 28 48 8b 54 24 18 b8 2c 00 00 00 48 8b 74 24 10 8b 7c 24 08 0f 05 <48> 3d 00 f0 ff ff 77 34 89 ef 48 89 44 24 08 e8 70 5f 02 00 48 8b RSP: 002b:00007ffda3acd640 EFLAGS: 00000293 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007f12fa4e4620 RCX: 00007f12f97907bc RDX: 0000000000000038 RSI: 00007f12fa4e4670 RDI: 0000000000000003 RBP: 0000000000000000 R08: 00007ffda3acd694 R09: 000000000000000c R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000003 R13: 0000000000000000 R14: 00007f12fa4e4670 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: cc int3 1: 08 e9 or %ch,%cl 3: 7f 05 jg 0xa 5: 00 00 add %al,(%rax) 7: 49 89 f7 mov %rsi,%r15 a: 49 89 f5 mov %rsi,%r13 d: 4c 89 e0 mov %r12,%rax 10: 4c 29 e8 sub %r13,%rax 13: 48 89 c1 mov %rax,%rcx 16: 48 c1 f9 02 sar $0x2,%rcx 1a: 48 c1 e8 3f shr $0x3f,%rax 1e: 48 01 c8 add %rcx,%rax 21: 48 83 e0 fe and $0xfffffffffffffffe,%rax 25: 4d 8d 74 45 00 lea 0x0(%r13,%rax,2),%r14 * 2a: 4c 89 f0 mov %r14,%rax <-- trapping instruction 2d: 48 c1 e8 03 shr $0x3,%rax 31: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 38: fc ff df 3b: 0f b6 04 08 movzbl (%rax,%rcx,1),%eax 3f: 84 .byte 0x84