syzbot


WARNING in kernfs_get

Status: upstream: reported on 2025/06/28 04:30
Reported-by: syzbot+9fff6b476ec89fe103eb@syzkaller.appspotmail.com
First crash: 70d, last: 15d
Similar bugs (8)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in kernfs_get (5) usb kernfs -1 syz inconclusive 453 1d14h 485d 0/29 upstream: reported syz repro on 2024/05/08 11:07
linux-4.19 WARNING in kernfs_get -1 C done 14 2185d 2325d 1/1 fixed on 2019/12/05 23:59
upstream WARNING in kernfs_get (2) kernfs -1 2 1805d 1823d 0/29 auto-closed as invalid on 2021/01/25 03:55
linux-4.14 WARNING in kernfs_get -1 C done 17 2209d 2329d 1/1 fixed on 2019/12/07 19:24
upstream WARNING in kernfs_get (4) kernfs -1 syz error 3 941d 944d 0/29 auto-obsoleted due to no activity on 2023/06/07 19:32
upstream WARNING in kernfs_get -1 C done 316 2224d 2553d 13/29 fixed on 2019/11/20 22:01
upstream WARNING in kernfs_get (3) kernfs -1 3 1370d 1374d 0/29 auto-closed as invalid on 2022/02/04 06:25
android-414 WARNING in kernfs_get -1 syz 69 2188d 2340d 0/1 public: reported syz repro on 2019/04/10 15:44

Sample crash report:
usb 3-1: Direct firmware load for ueagle-atm/eagleII.fw failed with error -2
usb 3-1: Falling back to sysfs fallback for: ueagle-atm/eagleII.fw
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8 at fs/kernfs/dir.c:526 kernfs_get+0x6c/0x90 fs/kernfs/dir.c:526
Modules linked in:
CPU: 0 PID: 8 Comm: kworker/0:0 Not tainted 6.6.102-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
Workqueue: events request_firmware_work_func
RIP: 0010:kernfs_get+0x6c/0x90 fs/kernfs/dir.c:526
Code: 73 ff 85 ed 74 1f e8 63 bc 73 ff 48 89 df be 04 00 00 00 e8 66 05 cb ff f0 ff 03 eb 05 e8 4c bc 73 ff 5b 5d c3 e8 44 bc 73 ff <0f> 0b eb dd 89 d9 80 e1 07 80 c1 03 38 c1 7c bd 48 89 df e8 3c 03
RSP: 0018:ffffc900000d7740 EFLAGS: 00010293
RAX: ffffffff8211cedc RBX: ffff88805e4ab2e8 RCX: ffff88801ba4da00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffff88805e4ab2eb R09: 1ffff1100bc9565d
R10: dffffc0000000000 R11: ffffed100bc9565e R12: ffff88805b5a87a8
R13: 1ffff1100b6b50f6 R14: ffff88805b5a87b0 R15: ffff88805b5a8798
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb897b0c072 CR3: 00000000639ab000 CR4: 00000000003506f0
Call Trace:
 <TASK>
 sysfs_get include/linux/sysfs.h:651 [inline]
 create_dir lib/kobject.c:89 [inline]
 kobject_add_internal+0x74b/0xc70 lib/kobject.c:240
 kobject_add_varg lib/kobject.c:374 [inline]
 kobject_add+0x156/0x220 lib/kobject.c:426
 class_dir_create_and_add drivers/base/core.c:3226 [inline]
 get_device_parent+0x316/0x390 drivers/base/core.c:3277
 device_add+0x2e1/0xc20 drivers/base/core.c:3607
 fw_load_sysfs_fallback drivers/base/firmware_loader/fallback.c:82 [inline]
 fw_load_from_user_helper drivers/base/firmware_loader/fallback.c:158 [inline]
 firmware_fallback_sysfs+0x2e9/0x940 drivers/base/firmware_loader/fallback.c:234
 _request_firmware+0xed9/0x1510 drivers/base/firmware_loader/main.c:936
 request_firmware_work_func+0xb0/0x1b0 drivers/base/firmware_loader/main.c:1189
 process_one_work kernel/workqueue.c:2634 [inline]
 process_scheduled_works+0xa45/0x15b0 kernel/workqueue.c:2711
 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/22 05:20 linux-6.6.y bb9c90ab9c5a bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in kernfs_get
2025/07/28 15:23 linux-6.6.y dbcb8d8e4163 6654ea9c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in kernfs_get
2025/07/14 12:10 linux-6.6.y 59a2de10b81a d8fc7335 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in kernfs_get
2025/07/10 10:45 linux-6.6.y a5df3a702b2c 956bd956 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in kernfs_get
2025/07/10 10:43 linux-6.6.y a5df3a702b2c 956bd956 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in kernfs_get
2025/06/28 04:29 linux-6.6.y 3f5b4c104b7d fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in kernfs_get
* Struck through repros no longer work on HEAD.