syzbot


WARNING in kernfs_get (3)

Status: auto-closed as invalid on 2022/02/04 06:25
Subsystems: kernfs
[Documentation on labels]
Reported-by: syzbot+07fe64297eacba9c7550@syzkaller.appspotmail.com
First crash: 873d, last: 865d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] WARNING in kernfs_get (3) 0 (1) 2021/12/02 03:26
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in kernfs_get C done 14 1680d 1820d 1/1 fixed on 2019/12/05 23:59
upstream WARNING in kernfs_get (2) kernfs 2 1300d 1318d 0/26 auto-closed as invalid on 2021/01/25 03:55
linux-4.14 WARNING in kernfs_get C done 17 1704d 1824d 1/1 fixed on 2019/12/07 19:24
upstream WARNING in kernfs_get (4) kernfs syz error 3 436d 439d 0/26 auto-obsoleted due to no activity on 2023/06/07 19:32
upstream WARNING in kernfs_get C done 316 1719d 2048d 13/26 fixed on 2019/11/20 22:01
android-414 WARNING in kernfs_get syz 69 1683d 1835d 0/1 public: reported syz repro on 2019/04/10 15:44

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 10 at fs/kernfs/dir.c:496 kernfs_get.part.0+0x69/0x80 fs/kernfs/dir.c:496
Modules linked in:
CPU: 1 PID: 10 Comm: kworker/u4:1 Not tainted 5.16.0-rc2-next-20211125-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: netns cleanup_net
RIP: 0010:kernfs_get.part.0+0x69/0x80 fs/kernfs/dir.c:496
Code: 31 ff 89 ee e8 c8 a4 7d ff 85 ed 74 18 e8 9f a2 7d ff be 04 00 00 00 48 89 df e8 02 35 c8 ff f0 ff 03 5b 5d c3 e8 87 a2 7d ff <0f> 0b eb df 48 89 df e8 6b 31 c8 ff eb c6 66 0f 1f 84 00 00 00 00
RSP: 0018:ffffc90000cf7918 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888000103d98 RCX: 0000000000000000
RDX: ffff888011921d40 RSI: ffffffff81fa4259 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: ffff888000103d9b
R10: ffffffff81fa4238 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff888000103d98
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f07269d4004 CR3: 000000007a8bf000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 kernfs_get fs/kernfs/dir.c:495 [inline]
 __kernfs_remove+0x2a8/0xab0 fs/kernfs/dir.c:1342
 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]
 rdma_dev_exit_net+0x2b2/0x550 drivers/infiniband/core/device.c:1139
 ops_exit_list+0xb0/0x160 net/core/net_namespace.c:168
 cleanup_net+0x4ea/0xb00 net/core/net_namespace.c:593
 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2299
 worker_thread+0x658/0x11f0 kernel/workqueue.c:2446
 kthread+0x405/0x4f0 kernel/kthread.c:345
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/06 06:24 linux-next f81e94e91878 a617004c .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in kernfs_get
2021/12/03 04:11 linux-next f81e94e91878 61f86278 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in kernfs_get
2021/11/28 03:16 linux-next f81e94e91878 63eeac02 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in kernfs_get
* Struck through repros no longer work on HEAD.