WARNING in remove_one_compat_dev
From: syzbot
Date: Mon Jul 06 2020 - 06:47:29 EST
Hello,
syzbot found the following crash on:
HEAD commit: bdc48fa1 checkpatch/coding-style: deprecate 80-column warn..
git tree: net
console output: https://syzkaller.appspot.com/x/log.txt?x=12b3ffe2100000
kernel config: https://syzkaller.appspot.com/x/.config?x=129ea1e5950835e5
dashboard link: https://syzkaller.appspot.com/bug?extid=4e28a66bf14b987f9dee
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
Unfortunately, I don't have any reproducer for this crash yet.
IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+4e28a66bf14b987f9dee@xxxxxxxxxxxxxxxxxxxxxxxxx
infiniband syz1: Port 1 not found
infiniband syz1: Couldn't close port 1 for agents
infiniband syz1: Port 1 not found
infiniband syz1: Couldn't close port 1
------------[ cut here ]------------
sysfs group 'power' not found for kobject 'syz1'
WARNING: CPU: 1 PID: 3384 at fs/sysfs/group.c:279 sysfs_remove_group fs/sysfs/group.c:279 [inline]
WARNING: CPU: 1 PID: 3384 at fs/sysfs/group.c:279 sysfs_remove_group+0x155/0x1b0 fs/sysfs/group.c:270
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 3384 Comm: kworker/u4:2 Not tainted 5.7.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events_unbound ib_unregister_work
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x188/0x20d lib/dump_stack.c:118
panic+0x2e3/0x75c kernel/panic.c:221
__warn.cold+0x2f/0x35 kernel/panic.c:582
report_bug+0x27b/0x2f0 lib/bug.c:195
fixup_bug arch/x86/kernel/traps.c:175 [inline]
fixup_bug arch/x86/kernel/traps.c:170 [inline]
do_error_trap+0x12b/0x220 arch/x86/kernel/traps.c:267
do_invalid_op+0x32/0x40 arch/x86/kernel/traps.c:286
invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027
RIP: 0010:sysfs_remove_group fs/sysfs/group.c:279 [inline]
RIP: 0010:sysfs_remove_group+0x155/0x1b0 fs/sysfs/group.c:270
Code: 48 89 d9 49 8b 14 24 48 b8 00 00 00 00 00 fc ff df 48 c1 e9 03 80 3c 01 00 75 41 48 8b 33 48 c7 c7 20 f2 39 88 e8 03 bb 5e ff <0f> 0b eb 95 e8 32 50 cb ff e9 d2 fe ff ff 48 89 df e8 25 50 cb ff
RSP: 0018:ffffc90005447b40 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffffffff88931b20 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff815cf161 RDI: fffff52000a88f5a
RBP: 0000000000000000 R08: ffff888066c68280 R09: ffffed1015ce45f1
R10: ffff8880ae722f83 R11: ffffed1015ce45f0 R12: ffff88808995c000
R13: ffffffff889320c0 R14: ffff88808eae8700 R15: ffff8880aa034800
dpm_sysfs_remove+0x97/0xb0 drivers/base/power/sysfs.c:794
device_del+0x18b/0xd30 drivers/base/core.c:2711
remove_one_compat_dev+0x52/0x70 drivers/infiniband/core/device.c:940
remove_compat_devs drivers/infiniband/core/device.c:951 [inline]
disable_device+0x1ab/0x230 drivers/infiniband/core/device.c:1282
__ib_unregister_device+0x91/0x180 drivers/infiniband/core/device.c:1437
ib_unregister_work+0x15/0x30 drivers/infiniband/core/device.c:1547
process_one_work+0x965/0x16a0 kernel/workqueue.c:2268
worker_thread+0x96/0xe20 kernel/workqueue.c:2414
kthread+0x388/0x470 kernel/kthread.c:268
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:351
Kernel Offset: disabled
Rebooting in 86400 seconds..
---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@xxxxxxxxxxxxxxxxx
syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.