syzbot


WARNING: refcount bug in netdevice_event_work_handler

Status: auto-closed as invalid on 2022/02/22 20:19
Subsystems: rdma
[Documentation on labels]
Reported-by: syzbot+d1d775635b425153c408@syzkaller.appspotmail.com
First crash: 884d, last: 876d

Sample crash report:
------------[ cut here ]------------
refcount_t: decrement hit 0; leaking memory.
WARNING: CPU: 1 PID: 19985 at lib/refcount.c:31 refcount_warn_saturate+0xbf/0x1e0 lib/refcount.c:31
Modules linked in:
CPU: 1 PID: 19985 Comm: kworker/u4:6 Not tainted 5.16.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: gid-cache-wq netdevice_event_work_handler
RIP: 0010:refcount_warn_saturate+0xbf/0x1e0 lib/refcount.c:31
Code: 1d 5a fa a1 09 31 ff 89 de e8 5d f6 9c fd 84 db 75 e0 e8 74 f2 9c fd 48 c7 c7 a0 d1 04 8a c6 05 3a fa a1 09 01 e8 1b fb 32 05 <0f> 0b eb c4 e8 58 f2 9c fd 0f b6 1d 29 fa a1 09 31 ff 89 de e8 28
RSP: 0018:ffffc9000473fcc0 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff88809fd59d00 RSI: ffffffff815f5aa8 RDI: fffff520008e7f8a
RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff815ef87e R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880265bc000 R14: ffff88804a8e3800 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc3de7f7000 CR3: 000000001d142000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 __refcount_dec include/linux/refcount.h:344 [inline]
 refcount_dec include/linux/refcount.h:359 [inline]
 dev_put include/linux/netdevice.h:4166 [inline]
 netdevice_event_work_handler+0x1ab/0x230 drivers/infiniband/core/roce_gid_mgmt.c:631
 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
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/11/16 10:24 upstream 8ab774587903 600426bd .config console log report info ci-upstream-kasan-gce-root WARNING: refcount bug in netdevice_event_work_handler
2021/11/24 20:19 net-next-old 91eddd309c67 545ab074 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in netdevice_event_work_handler
* Struck through repros no longer work on HEAD.