------------[ cut here ]------------
refcount_t: addition on 0; use-after-free.
WARNING: CPU: 1 PID: 6346 at lib/refcount.c:25 refcount_warn_saturate+0xff/0x1a0 lib/refcount.c:25
Modules linked in:
CPU: 1 PID: 6346 Comm: kworker/u4:20 Not tainted 6.1.141-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Workqueue: bat_events batadv_nc_worker
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: 0000:ffffc900001e0748 EFLAGS: 00010246
RAX: f72b7b5026bc6200 RBX: 0000000000000002 RCX: ffff88804f923b80
RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffc900001e08a8 R08: dffffc0000000000 R09: fffff5200003c079
R10: fffff5200003c079 R11: 1ffff9200003c078 R12: ffff88807f1dd4c0
R13: dffffc0000000000 R14: 0000000000000002 R15: ffff888055ea4048
FS: 0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0c710d370d CR3: 00000000323e6000 CR4: 00000000003506e0
DR0: 0000000000000007 DR1: 000000000000000b DR2: 0000000000000004
DR3: 0000000000000002 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_crypto_clone_msg+0x91/0x160 net/tipc/crypto.c:1656
tipc_crypto_xmit+0x1928/0x2300 net/tipc/crypto.c:1717
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+0x13b/0x200 kernel/softirq.c:497
__local_bh_enable_ip+0x174/0x1b0 kernel/softirq.c:421
spin_unlock_bh include/linux/spinlock.h:396 [inline]
batadv_nc_purge_paths+0x316/0x3b0 net/batman-adv/network-coding.c:471
batadv_nc_worker+0x365/0x600 net/batman-adv/network-coding.c:722
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