------------[ cut here ]------------
refcount_t: decrement hit 0; leaking memory.
WARNING: CPU: 0 PID: 21220 at lib/refcount.c:31 refcount_warn_saturate+0xbf/0x1e0 lib/refcount.c:31
Modules linked in:
CPU: 0 PID: 21220 Comm: kworker/u4:3 Not tainted 5.16.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events_unbound ib_unregister_work
RIP: 0010:refcount_warn_saturate+0xbf/0x1e0 lib/refcount.c:31
Code: 1d 3e 64 a2 09 31 ff 89 de e8 0d ed 9c fd 84 db 75 e0 e8 24 e9 9c fd 48 c7 c7 20 de 04 8a c6 05 1e 64 a2 09 01 e8 9b e1 33 05 <0f> 0b eb c4 e8 08 e9 9c fd 0f b6 1d 0d 64 a2 09 31 ff 89 de e8 d8
RSP: 0018:ffffc90000007df0 EFLAGS: 00010282
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff8880285c3a00 RSI: ffffffff815f0ad8 RDI: fffff52000000fb0
RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff815ea87e R11: 0000000000000000 R12: 0000000000000001
R13: ffff888042b1c5b0 R14: 0000000000000003 R15: ffff88801e6831e8
FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557571886b60 CR3: 000000000b88e000 CR4: 00000000003506f0
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:3821 [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:__sanitizer_cov_trace_cmp8+0xc/0x70 kernel/kcov.c:266
Code: 4c 38 f0 48 c7 44 38 e0 04 00 00 00 48 89 74 38 e8 4e 89 54 c8 20 48 89 10 c3 0f 1f 40 00 49 89 f8 bf 03 00 00 00 4c 8b 14 24 <48> 89 f1 65 48 8b 34 25 40 70 02 00 e8 c3 f7 ff ff 84 c0 74 48 48
RSP: 0018:ffffc90002b4f8e8 EFLAGS: 00000203
RAX: 0000000000000000 RBX: ffff888039497910 RCX: 0000000000000000
RDX: ffff8880285c3a00 RSI: 0000000039497910 RDI: 0000000000000003
RBP: ffff8880b9497910 R08: ffff8880b9497910 R09: ffffffff8bd5b123
R10: ffffffff8134de0e R11: 0000000000000000 R12: 0000000039497910
R13: ffffffff81f3a084 R14: ffffea0000000000 R15: 0000000080000001
__phys_addr+0x4e/0x140 arch/x86/mm/physaddr.c:28
virt_to_head_page include/linux/mm.h:861 [inline]
kmem_cache_free+0x4c/0x5e0 mm/slub.c:3529
kernfs_put.part.0+0x2c4/0x540 fs/kernfs/dir.c:539
kernfs_put+0x42/0x50 fs/kernfs/dir.c:513
__kernfs_remove+0x725/0xab0 fs/kernfs/dir.c:1372
kernfs_remove_by_name_ns+0x4f/0xa0 fs/kernfs/dir.c:1544
kernfs_remove_by_name include/linux/kernfs.h:570 [inline]
remove_files+0x96/0x1c0 fs/sysfs/group.c:28
sysfs_remove_group+0x87/0x170 fs/sysfs/group.c:288
sysfs_remove_groups fs/sysfs/group.c:312 [inline]
sysfs_remove_groups+0x5c/0xa0 fs/sysfs/group.c:304
destroy_gid_attrs drivers/infiniband/core/sysfs.c:1188 [inline]
ib_free_port_attrs+0x1dd/0x460 drivers/infiniband/core/sysfs.c:1408
remove_one_compat_dev drivers/infiniband/core/device.c:1001 [inline]
remove_compat_devs drivers/infiniband/core/device.c:1013 [inline]
disable_device+0x1e1/0x270 drivers/infiniband/core/device.c:1295
__ib_unregister_device+0x98/0x1a0 drivers/infiniband/core/device.c:1474
ib_unregister_work+0x15/0x30 drivers/infiniband/core/device.c:1585
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: 4c 38 f0 rex.WR cmp %r14b,%al
3: 48 c7 44 38 e0 04 00 movq $0x4,-0x20(%rax,%rdi,1)
a: 00 00
c: 48 89 74 38 e8 mov %rsi,-0x18(%rax,%rdi,1)
11: 4e 89 54 c8 20 mov %r10,0x20(%rax,%r9,8)
16: 48 89 10 mov %rdx,(%rax)
19: c3 retq
1a: 0f 1f 40 00 nopl 0x0(%rax)
1e: 49 89 f8 mov %rdi,%r8
21: bf 03 00 00 00 mov $0x3,%edi
26: 4c 8b 14 24 mov (%rsp),%r10
* 2a: 48 89 f1 mov %rsi,%rcx <-- trapping instruction
2d: 65 48 8b 34 25 40 70 mov %gs:0x27040,%rsi
34: 02 00
36: e8 c3 f7 ff ff callq 0xfffff7fe
3b: 84 c0 test %al,%al
3d: 74 48 je 0x87
3f: 48 rex.W