WARNING in kernfs_remove_by_name_ns (2)

Status: upstream: reported on 2026/10/10 09:02
Reported-by: syzbot+12efcddc554342e82ec4@syzkaller.appspotmail.com
First crash: 4d11h, last: 4d11h
▶ ▼ Similar bugs (5)
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 19 520d 1306d 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 384d 1160d 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 1976d 1972d 0/29 auto-closed as invalid on 2021/09/14 07:04
upstream WARNING in kernfs_remove_by_name_ns (3) kernfs -1 syz, C error 679 6d11h 1801d 0/29 upstream: reported C repro on 2021/11/08 11:24
upstream WARNING in kernfs_remove_by_name_ns kernfs -1 4 2595d 2670d 0/29 auto-closed as invalid on 2020/01/04 08:56

Sample crash report:
------------[ cut here ]------------
kernfs: can not remove 'uevent', no directory
WARNING: CPU: 0 PID: 5560 at fs/kernfs/dir.c:1557 kernfs_remove_by_name_ns+0xb1/0x100 fs/kernfs/dir.c:1556
Modules linked in:
CPU: 0 PID: 5560 Comm: syz.2.388 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026
RIP: 0010:kernfs_remove_by_name_ns+0xb1/0x100 fs/kernfs/dir.c:1556
Code: ff 03 48 89 df e8 3f eb ff ff 48 89 df e8 37 a8 ff ff 31 db eb 27 e8 6e 9a 8b ff 48 c7 c7 40 a0 39 8a 48 89 de e8 cf a0 c9 07 <0f> 0b bb fe ff ff ff eb 16 e8 51 9a 8b ff bb fe ff ff ff 48 c7 c7
RSP: 0018:ffffc90003307578 EFLAGS: 00010246
RAX: 9f733a9c5a12f000 RBX: ffffffff8a9c57c0 RCX: 0000000000080000
RDX: ffffc9000f16e000 RSI: 0000000000068bd8 RDI: 0000000000068bd9
RBP: ffffc90003307690 R08: ffffc900033070a7 R09: 1ffff92000660e14
R10: dffffc0000000000 R11: fffff52000660e15 R12: ffffffff8d70f270
R13: ffff88805e5a8040 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f8d33c206c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f978d995990 CR3: 000000002b786000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 sysfs_remove_file include/linux/sysfs.h:613 [inline]
 device_remove_file drivers/base/core.c:2796 [inline]
 device_del+0x62f/0xa80 drivers/base/core.c:3613
 del_gendisk+0x6c0/0x780 block/genhd.c:642
 del_mtd_blktrans_dev+0x117/0x320 drivers/mtd/mtd_blkdevs.c:416
 blktrans_notify_remove+0xe0/0x150 drivers/mtd/mtd_blkdevs.c:453
 del_mtd_device+0x95/0x270 drivers/mtd/mtdcore.c:738
 __mtd_del_partition+0x95/0x1d0 drivers/mtd/mtdpart.c:312
 mtd_del_partition+0xe4/0x100 drivers/mtd/mtdpart.c:374
 mtdchar_blkpg_ioctl+0x207/0x2b0 drivers/mtd/mtdchar.c:569
 mtdchar_ioctl+0x14cb/0x1d70 drivers/mtd/mtdchar.c:1010
 mtdchar_unlocked_ioctl+0xad/0xd0 drivers/mtd/mtdchar.c:1033
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f8d359e91d9
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:00007f8d33c20028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f8d35c71090 RCX: 00007f8d359e91d9
RDX: 0000200000000740 RSI: 0000000000001269 RDI: 0000000000000008
RBP: 00007f8d35a80888 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f8d35c71128 R14: 00007f8d35c71090 R15: 00007ffcdbcf0cc8
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/10 09:01 linux-5.15.y a051a4bf909f 4f92358f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in kernfs_remove_by_name_ns
* Struck through repros no longer work on HEAD.