WARNING in kernfs_remove_by_name_ns

Status: upstream: reported on 2026/12/05 08:07
Reported-by: syzbot+9e92e2a33b9922124346@syzkaller.appspotmail.com
First crash: 3h10m, last: 3h10m
▶ ▼ Similar bugs (6)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in kernfs_remove_by_name_ns origin:upstream -1 syz, C error 21 45d 1357d 0/3 upstream: reported C repro on 2023/03/18 18:13
linux-5.15 WARNING in kernfs_remove_by_name_ns -1 syz, C error 6 436d 1212d 0/3 auto-obsoleted due to no activity on 2026/01/02 20:40
upstream WARNING in kernfs_remove_by_name_ns (2) kernfs -1 1 2028d 2024d 0/30 auto-closed as invalid on 2021/09/14 07:04
upstream WARNING in kernfs_remove_by_name_ns (3) kernfs -1 syz, C error 811 2h14m 1852d 0/30 upstream: reported C repro on 2021/11/08 11:24
upstream WARNING in kernfs_remove_by_name_ns kernfs -1 4 2647d 2721d 0/30 auto-closed as invalid on 2020/01/04 08:56
linux-5.15 WARNING in kernfs_remove_by_name_ns (2) -1 1 56d 56d 0/3 upstream: reported on 2026/10/10 09:02

Sample crash report:
kobject: kobject_add_internal failed for qgroups (error: -12 parent: 395ef67a-297e-477c-816d-cd80a5b93e5d)
------------[ cut here ]------------
kernfs: can not remove 'enabled', no directory
WARNING: CPU: 0 PID: 5925 at fs/kernfs/dir.c:1691 kernfs_remove_by_name_ns+0xfc/0x150 fs/kernfs/dir.c:1690
Modules linked in:
CPU: 0 PID: 5925 Comm: syz.0.8 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:kernfs_remove_by_name_ns+0xfc/0x150 fs/kernfs/dir.c:1690
Code: ff 06 4c 89 f7 e8 14 ef ff ff 4c 89 f7 e8 bc 93 ff ff 31 ed eb 27 e8 b3 58 70 ff 48 c7 c7 80 c1 fa 8a 4c 89 f6 e8 b4 ec 39 ff <0f> 0b bd fe ff ff ff eb 12 e8 96 58 70 ff bd fe ff ff ff 48 89 df
RSP: 0018:ffffc900048e7b48 EFLAGS: 00010246
RAX: 8d3b3a9ccd64fe00 RBX: ffffffff8b2d23e0 RCX: 0000000000080000
RDX: ffffc9000cbf1000 RSI: 0000000000057413 RDI: 0000000000057414
RBP: ffffffff8e6a6f68 R08: ffffc900048e7747 R09: 1ffff9200091cee8
R10: dffffc0000000000 R11: fffff5200091cee9 R12: 0000000000000000
R13: dffffc0000000000 R14: ffffffff8b2d2440 R15: 0000000000000000
FS:  00007f5fcc7976c0(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055d3ad3430d0 CR3: 000000005bc20000 CR4: 00000000003506f0
Call Trace:
 <TASK>
 kernfs_remove_by_name include/linux/kernfs.h:624 [inline]
 remove_files fs/sysfs/group.c:28 [inline]
 sysfs_remove_group+0x101/0x290 fs/sysfs/group.c:292
 sysfs_remove_groups+0x54/0xa0 fs/sysfs/group.c:316
 __kobject_del+0x83/0x2e0 lib/kobject.c:595
 kobject_del+0x45/0x60 lib/kobject.c:627
 btrfs_sysfs_del_qgroups+0x1ac/0x1f0 fs/btrfs/sysfs.c:2286
 btrfs_sysfs_add_qgroups+0x32c/0x390 fs/btrfs/sysfs.c:2325
 btrfs_quota_enable+0x257/0x1b70 fs/btrfs/qgroup.c:1000
 btrfs_ioctl_quota_ctl+0x13d/0x180 fs/btrfs/ioctl.c:3760
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:871 [inline]
 __se_sys_ioctl+0xfd/0x170 fs/ioctl.c:857
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f5fcb9a9c99
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f5fcc797028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f5fcbc35fa0 RCX: 00007f5fcb9a9c99
RDX: 000020000000c4c0 RSI: 00000000c0109428 RDI: 0000000000000007
RBP: 00007f5fcba3b18b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f5fcbc36038 R14: 00007f5fcbc35fa0 R15: 00007ffd75ab44d8
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/12/05 08:07 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.6.y e2bb30811e06 3a4d724d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in kernfs_remove_by_name_ns
* Struck through repros no longer work on HEAD.