------------[ cut here ]------------
refcount_t: addition on 0; use-after-free.
WARNING: CPU: 0 PID: 4312 at lib/refcount.c:25 refcount_warn_saturate+0xff/0x1a0 lib/refcount.c:25
Modules linked in:
CPU: 0 PID: 4312 Comm: kworker/u4:6 Not tainted 6.1.141-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Workqueue: netns cleanup_net
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: 100ff22b89595800 RBX: 0000000000000002 RCX: ffff888024fa0000
RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffc90000007990 R08: dffffc0000000000 R09: ffffed10171c4f34
R10: ffffed10171c4f34 R11: 1ffff110171c4f33 R12: ffff888077513880
R13: dffffc0000000000 R14: 0000000000000002 R15: ffff88807d500448
FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1f8f781178 CR3: 000000006134f000 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:ffffc900047a7400 EFLAGS: 00000293
RAX: ffffffff81666a0a RBX: 1ffff920008f4e90 RCX: ffff888024fa0000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900047a7640 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
_printk+0xcc/0x110 kernel/printk/printk.c:2328
batadv_hardif_deactivate_interface net/batman-adv/hard-interface.c:695 [inline]
batadv_hardif_disable_interface+0x183/0xf60 net/batman-adv/hard-interface.c:822
batadv_softif_destroy_netlink+0x8a/0x270 net/batman-adv/soft-interface.c:1092
default_device_exit_batch+0x911/0xa50 net/core/dev.c:11486
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
----------------
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