------------[ cut here ]------------
refcount_t: decrement hit 0; leaking memory.
WARNING: CPU: 1 PID: 970 at lib/refcount.c:31 refcount_warn_saturate+0xbf/0x1e0 lib/refcount.c:31
Modules linked in:
CPU: 1 PID: 970 Comm: kworker/u4:4 Not tainted 5.15.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: bat_events batadv_nc_worker
RIP: 0010:refcount_warn_saturate+0xbf/0x1e0 lib/refcount.c:31
Code: 1d 9e 9c 81 09 31 ff 89 de e8 6d 11 9d fd 84 db 75 e0 e8 84 0d 9d fd 48 c7 c7 60 cb e4 89 c6 05 7e 9c 81 09 01 e8 78 77 1c 05 <0f> 0b eb c4 e8 68 0d 9d fd 0f b6 1d 6d 9c 81 09 31 ff 89 de e8 38
RSP: 0018:ffffc90000dc0df0 EFLAGS: 00010282
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff88801b459d00 RSI: ffffffff815f39c8 RDI: fffff520001b81b0
RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff815ed79e R11: 0000000000000000 R12: 0000000000000001
R13: ffff8880246d25b0 R14: 0000000000000003 R15: ffff88807d0c29e8
FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4bc84b0018 CR3: 00000000239c2000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__refcount_dec include/linux/refcount.h:344 [inline]
refcount_dec include/linux/refcount.h:359 [inline]
dev_put include/linux/netdevice.h:4166 [inline]
in_dev_finish_destroy+0x160/0x1b0 net/ipv4/devinet.c:246
in_dev_put include/linux/inetdevice.h:276 [inline]
in_dev_rcu_put+0x83/0xb0 net/ipv4/devinet.c:303
rcu_do_batch kernel/rcu/tree.c:2506 [inline]
rcu_core+0x7ab/0x1470 kernel/rcu/tree.c:2741
__do_softirq+0x29b/0x9c2 kernel/softirq.c:558
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x123/0x180 kernel/softirq.c:636
irq_exit_rcu+0x5/0x20 kernel/softirq.c:648
sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1097
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:413 [inline]
RIP: 0010:batadv_nc_worker+0x161/0xfa0 net/batman-adv/network-coding.c:723
Code: c6 e8 53 d2 a0 f8 40 84 ed 58 0f 84 52 0a 00 00 e8 64 ce a0 f8 48 89 d8 48 c1 e8 03 42 80 3c 30 00 0f 85 1e 0e 00 00 4c 8b 2b <4d> 85 ed 0f 84 c2 06 00 00 e8 41 ce a0 f8 49 81 ed c8 01 00 00 0f
RSP: 0018:ffffc900043bfc90 EFLAGS: 00000246
RAX: 1ffff1100ec5fa08 RBX: ffff8880762fd040 RCX: 0000000000000000
RDX: ffff88801b459d00 RSI: ffffffff88d6f80c RDI: 0000000000000003
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000001
R10: ffffffff88d6f7fd R11: 0000000000000000 R12: ffffc900043bfdb0
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000208
process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298
worker_thread+0x658/0x11f0 kernel/workqueue.c:2445
kthread+0x405/0x4f0 kernel/kthread.c:327
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
----------------
Code disassembly (best guess), 1 bytes skipped:
0: e8 53 d2 a0 f8 callq 0xf8a0d258
5: 40 84 ed test %bpl,%bpl
8: 58 pop %rax
9: 0f 84 52 0a 00 00 je 0xa61
f: e8 64 ce a0 f8 callq 0xf8a0ce78
14: 48 89 d8 mov %rbx,%rax
17: 48 c1 e8 03 shr $0x3,%rax
1b: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1)
20: 0f 85 1e 0e 00 00 jne 0xe44
26: 4c 8b 2b mov (%rbx),%r13
* 29: 4d 85 ed test %r13,%r13 <-- trapping instruction
2c: 0f 84 c2 06 00 00 je 0x6f4
32: e8 41 ce a0 f8 callq 0xf8a0ce78
37: 49 81 ed c8 01 00 00 sub $0x1c8,%r13
3e: 0f .byte 0xf