------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 0 PID: 11267 at lib/refcount.c:25 refcount_warn_saturate+0xff/0x1a0 lib/refcount.c:25 Modules linked in: CPU: 0 PID: 11267 Comm: kworker/0:5 Not tainted 6.1.141-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: usb_hub_wq hub_event 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:ffffc90000007828 EFLAGS: 00010246 RAX: b6a54ec9388acb00 RBX: 0000000000000002 RCX: ffff888030509dc0 RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000002 RBP: ffffc90000007990 R08: dffffc0000000000 R09: ffffed10171c4f34 R10: ffffed10171c4f34 R11: 1ffff110171c4f33 R12: ffff88805a693880 R13: dffffc0000000000 R14: 0000000000000002 R15: ffff8880558efc48 FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc92908f368 CR3: 00000000264e5000 CR4: 00000000003506f0 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:console_emit_next_record+0xab0/0xc90 kernel/printk/printk.c:2786 Code: 86 6c 1a 00 4d 85 ff 75 16 e8 7c 6c 1a 00 eb 15 e8 75 6c 1a 00 e8 20 27 a9 08 4d 85 ff 74 ea e8 66 6c 1a 00 fb 48 8b 5c 24 48 <48> c7 84 24 80 00 00 00 0e 36 e0 45 4a c7 04 2b 00 00 00 00 4a c7 RSP: 0018:ffffc900051dee60 EFLAGS: 00000283 RAX: ffffffff81666a0a RBX: 1ffff92000a3bddc RCX: 0000000000100000 RDX: ffffc9001a74a000 RSI: 00000000000041d8 RDI: 00000000000041d9 RBP: ffffc900051df0a0 R08: dffffc0000000000 R09: fffffbfff2117049 R10: fffffbfff2117049 R11: 1ffffffff2117048 R12: ffffffff8166678d R13: dffffc0000000000 R14: 0000000000000001 R15: 0000000000000200 console_flush_all kernel/printk/printk.c:-1 [inline] console_unlock+0x223/0x630 kernel/printk/printk.c:2906 vprintk_emit+0x489/0x680 kernel/printk/printk.c:2303 dev_vprintk_emit+0x32d/0x3d3 drivers/base/core.c:4933 dev_printk_emit+0xdd/0x11d drivers/base/core.c:4944 _dev_err+0x107/0x14e drivers/base/core.c:4999 usb_get_configuration+0x49cf/0x4cb0 drivers/usb/core/config.c:889 usb_enumerate_device drivers/usb/core/hub.c:2463 [inline] usb_new_device+0x146/0x1620 drivers/usb/core/hub.c:2601 hub_port_connect drivers/usb/core/hub.c:5489 [inline] hub_port_connect_change drivers/usb/core/hub.c:5629 [inline] port_event drivers/usb/core/hub.c:5785 [inline] hub_event+0x2b02/0x5210 drivers/usb/core/hub.c:5867 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 ---------------- Code disassembly (best guess): 0: 86 6c 1a 00 xchg %ch,0x0(%rdx,%rbx,1) 4: 4d 85 ff test %r15,%r15 7: 75 16 jne 0x1f 9: e8 7c 6c 1a 00 call 0x1a6c8a e: eb 15 jmp 0x25 10: e8 75 6c 1a 00 call 0x1a6c8a 15: e8 20 27 a9 08 call 0x8a9273a 1a: 4d 85 ff test %r15,%r15 1d: 74 ea je 0x9 1f: e8 66 6c 1a 00 call 0x1a6c8a 24: fb sti 25: 48 8b 5c 24 48 mov 0x48(%rsp),%rbx * 2a: 48 c7 84 24 80 00 00 movq $0x45e0360e,0x80(%rsp) <-- trapping instruction 31: 00 0e 36 e0 45 36: 4a c7 04 2b 00 00 00 movq $0x0,(%rbx,%r13,1) 3d: 00 3e: 4a rex.WX 3f: c7 .byte 0xc7