syzbot


WARNING in kernfs_new_node (3)

Status: upstream: reported on 2024/08/19 18:26
Subsystems: kernfs
[Documentation on labels]
Reported-by: syzbot+306212936b13e520679d@syzkaller.appspotmail.com
First crash: 97d, last: 7d01h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernfs?] WARNING in kernfs_new_node (3) 0 (1) 2024/08/19 18:26
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in kernfs_new_node kernfs C done done 2 1710d 1934d 15/28 fixed on 2020/05/10 10:41
upstream WARNING in kernfs_new_node (2) kernfs 1 201d 197d 0/28 auto-obsoleted due to no activity on 2024/08/12 04:32

Sample crash report:
usb 9-1: Direct firmware load for ueagle-atm/eagleII.fw failed with error -2
usb 9-1: Falling back to sysfs fallback for: ueagle-atm/eagleII.fw
------------[ cut here ]------------
WARNING: CPU: 1 PID: 21406 at fs/kernfs/dir.c:526 kernfs_get fs/kernfs/dir.c:526 [inline]
WARNING: CPU: 1 PID: 21406 at fs/kernfs/dir.c:526 kernfs_new_node+0x1d8/0x240 fs/kernfs/dir.c:703
Modules linked in:
CPU: 1 UID: 0 PID: 21406 Comm: kworker/1:7 Not tainted 6.12.0-rc7-syzkaller-00042-gf1b785f4c787 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
Workqueue: events request_firmware_work_func
RIP: 0010:kernfs_get fs/kernfs/dir.c:526 [inline]
RIP: 0010:kernfs_new_node+0x1d8/0x240 fs/kernfs/dir.c:703
Code: 74 08 48 89 ef e8 c8 57 c2 ff 48 89 5d 00 4c 89 f0 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc e8 49 8c 58 ff 90 <0f> 0b 90 eb a0 89 e9 80 e1 07 fe c1 38 c1 0f 8c 62 fe ff ff 48 89
RSP: 0018:ffffc90004c0f578 EFLAGS: 00010293
RAX: ffffffff823c5dc7 RBX: ffff8880310242d0 RCX: ffff88803055bc00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff823c5d64 R09: 1ffff1100620485a
R10: dffffc0000000000 R11: ffffed100620485b R12: 00000000000041ed
R13: 0000000000000000 R14: ffff888024f5df00 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe61d401f98 CR3: 00000000392ce000 CR4: 00000000003526f0
DR0: 0000000000002800 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kernfs_create_dir_ns+0x43/0x120 fs/kernfs/dir.c:1061
 sysfs_create_dir_ns+0x189/0x3a0 fs/sysfs/dir.c:59
 create_dir lib/kobject.c:73 [inline]
 kobject_add_internal+0x435/0x8d0 lib/kobject.c:240
 kobject_add_varg lib/kobject.c:374 [inline]
 kobject_add+0x152/0x220 lib/kobject.c:426
 class_dir_create_and_add drivers/base/core.c:3215 [inline]
 get_device_parent+0x391/0x410 drivers/base/core.c:3266
 device_add+0x325/0xbf0 drivers/base/core.c:3596
 fw_load_sysfs_fallback drivers/base/firmware_loader/fallback.c:86 [inline]
 fw_load_from_user_helper drivers/base/firmware_loader/fallback.c:162 [inline]
 firmware_fallback_sysfs+0x307/0x9e0 drivers/base/firmware_loader/fallback.c:238
 _request_firmware+0xdf7/0x13b0 drivers/base/firmware_loader/main.c:942
 request_firmware_work_func+0x12a/0x280 drivers/base/firmware_loader/main.c:1195
 process_one_work kernel/workqueue.c:3229 [inline]
 process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3310
 worker_thread+0x870/0xd30 kernel/workqueue.c:3391
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/14 05:22 upstream f1b785f4c787 a8c99394 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kernfs_new_node
2024/10/19 01:03 upstream 4d939780b705 cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kernfs_new_node
2024/09/09 11:45 upstream da3ea35007d0 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in kernfs_new_node
2024/08/15 18:17 upstream 1fb918967b56 e4bacdaf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in kernfs_new_node
2024/10/03 12:32 upstream 7ec462100ef9 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 WARNING in kernfs_new_node
2024/09/29 02:17 upstream 3efc57369a0c ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 WARNING in kernfs_new_node
* Struck through repros no longer work on HEAD.