------------[ cut here ]------------ refcount_t: decrement hit 0; leaking memory. WARNING: CPU: 1 PID: 26718 at lib/refcount.c:31 refcount_warn_saturate+0xbf/0x1e0 lib/refcount.c:31 Modules linked in: CPU: 1 PID: 26718 Comm: kworker/u4:13 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: ffff8880788dd700 RSI: ffffffff815f39c8 RDI: fffff520001b81b0 RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff815ed79e R11: 0000000000000000 R12: 0000000000000001 R13: ffff8880709865b0 R14: 0000000000000007 R15: ffff88807c1981e8 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000556eb4bce160 CR3: 000000004c97e000 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:__local_bh_enable_ip+0xa8/0x120 kernel/softirq.c:390 Code: 1d 8d 90 bb 7e 65 8b 05 86 90 bb 7e a9 00 ff ff 00 74 45 bf 01 00 00 00 e8 b5 3b 09 00 e8 90 2a 37 00 fb 65 8b 05 68 90 bb 7e <85> c0 74 58 5b 5d c3 65 8b 05 b6 97 bb 7e 85 c0 75 a2 0f 0b eb 9e RSP: 0018:ffffc9000a80fc08 EFLAGS: 00000206 RAX: 0000000000000000 RBX: 00000000fffffe00 RCX: 1ffffffff1fb59b6 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffffff88d6e6d5 R08: 0000000000000001 R09: ffffffff8fd5bad7 R10: 0000000000000001 R11: 0000000000000000 R12: ffff88802bd4d7a8 R13: ffff88802bd4cc80 R14: dffffc0000000000 R15: ffffffff88d6e930 spin_unlock_bh include/linux/spinlock.h:394 [inline] batadv_nc_purge_paths+0x2a5/0x3a0 net/batman-adv/network-coding.c:475 batadv_nc_worker+0x930/0xfa0 net/batman-adv/network-coding.c:726 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): 0: 1d 8d 90 bb 7e sbb $0x7ebb908d,%eax 5: 65 8b 05 86 90 bb 7e mov %gs:0x7ebb9086(%rip),%eax # 0x7ebb9092 c: a9 00 ff ff 00 test $0xffff00,%eax 11: 74 45 je 0x58 13: bf 01 00 00 00 mov $0x1,%edi 18: e8 b5 3b 09 00 callq 0x93bd2 1d: e8 90 2a 37 00 callq 0x372ab2 22: fb sti 23: 65 8b 05 68 90 bb 7e mov %gs:0x7ebb9068(%rip),%eax # 0x7ebb9092 * 2a: 85 c0 test %eax,%eax <-- trapping instruction 2c: 74 58 je 0x86 2e: 5b pop %rbx 2f: 5d pop %rbp 30: c3 retq 31: 65 8b 05 b6 97 bb 7e mov %gs:0x7ebb97b6(%rip),%eax # 0x7ebb97ee 38: 85 c0 test %eax,%eax 3a: 75 a2 jne 0xffffffde 3c: 0f 0b ud2 3e: eb 9e jmp 0xffffffde