syzbot


WARNING in kernfs_remove_by_name_ns (3)

Status: upstream: reported C repro on 2021/11/08 11:24
Reported-by: syzbot+93cbdd0ab421adc5275d@syzkaller.appspotmail.com
First crash: 455d, last: 1d13h

Cause bisection: failed (bisect log)
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in kernfs_remove_by_name_ns (2) 1 626d 622d 0/24 auto-closed as invalid on 2021/09/14 07:04
upstream WARNING in kernfs_remove_by_name_ns 4 1245d 1320d 0/24 auto-closed as invalid on 2020/01/04 08:56
Last patch testing requests:
Created Duration User Patch Repo Result
2022/03/03 02:47 10m phind.uet@gmail.com linux-next report log

Sample crash report:
------------[ cut here ]------------
kernfs: can not remove 'nr_tags', no directory
WARNING: CPU: 0 PID: 5089 at fs/kernfs/dir.c:1652 kernfs_remove_by_name_ns+0xf5/0x150 fs/kernfs/dir.c:1651
Modules linked in:
CPU: 0 PID: 5089 Comm: syz-executor180 Not tainted 6.2.0-rc6-syzkaller-00003-g22b8077d0fce #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
RIP: 0010:kernfs_remove_by_name_ns+0xf5/0x150 fs/kernfs/dir.c:1651
Code: 48 89 df e8 5d ec ff ff 48 89 df e8 a5 97 ff ff 31 db eb 29 e8 7c 00 70 ff 48 c7 c7 00 bb 20 8b 4c 89 e6 31 c0 e8 6b 51 36 ff <0f> 0b bb fe ff ff ff eb 12 e8 5d 00 70 ff bb fe ff ff ff 4c 89 f7
RSP: 0018:ffffc90003c1f960 EFLAGS: 00010246
RAX: 784baa382bb4b800 RBX: ffffffff8db377e0 RCX: ffff88802a9457c0
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: dffffc0000000000 R08: ffffffff8170be4d R09: fffff52000783ee5
R10: fffff52000783ee5 R11: 1ffff92000783ee4 R12: ffffffff8b676080
R13: 0000000000000000 R14: ffffffff8b676020 R15: 0000000000000000
FS:  00007fed1af2d700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fed1afc14b0 CR3: 000000001d2a2000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kernfs_remove_by_name include/linux/kernfs.h:618 [inline]
 remove_files fs/sysfs/group.c:28 [inline]
 sysfs_remove_group+0x102/0x2b0 fs/sysfs/group.c:288
 sysfs_remove_groups+0x5b/0xb0 fs/sysfs/group.c:312
 __kobject_del+0x84/0x300 lib/kobject.c:579
 kobject_del+0x41/0x60 lib/kobject.c:611
 blk_mq_unregister_hctx block/blk-mq-sysfs.c:181 [inline]
 blk_mq_sysfs_unregister_hctxs+0x235/0x320 block/blk-mq-sysfs.c:309
 __blk_mq_update_nr_hw_queues block/blk-mq.c:4720 [inline]
 blk_mq_update_nr_hw_queues+0x647/0x13a0 block/blk-mq.c:4764
 nbd_start_device+0x15d/0xb70 drivers/block/nbd.c:1356
 nbd_start_device_ioctl+0xa7/0x5c0 drivers/block/nbd.c:1406
 __nbd_ioctl drivers/block/nbd.c:1482 [inline]
 nbd_ioctl+0x28c/0x5b0 drivers/block/nbd.c:1522
 blkdev_ioctl+0x3c9/0x7c0 block/ioctl.c:616
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fed1af80309
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fed1af2d2e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fed1b0044c0 RCX: 00007fed1af80309
RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000003
RBP: 00007fed1afd1194 R08: 0000000000000002 R09: 0000000000003831
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fed1b0044cc
R13: 00007fed1af2d2f0 R14: 00007fed1b0044c8 R15: 0000000000000002
 </TASK>

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-smack-root 2022/04/01 17:43 upstream e8b767f5e040 6cc879d4 .config console log report syz C
* Struck through repros no longer work on HEAD.
Crashes (75):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-smack-root 2023/01/31 11:31 upstream 22b8077d0fce 9dfcf09c .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci2-upstream-fs 2023/01/07 05:17 upstream 1f5abbd77e2c 1dac8c7a .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-smack-root 2022/12/27 02:37 upstream 1b929c02afd3 9da18ae8 .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-smack-root 2022/12/25 11:50 upstream 72a85e2b0a1e 9da18ae8 .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-smack-root 2022/09/11 04:21 upstream b96fbd602d35 356d8217 .config strace log report syz C [disk image] [vmlinux] WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-selinux-root 2022/07/28 19:08 upstream 6e7765cb477a fb95c74d .config console log report syz C WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2022/07/16 13:29 upstream 9b59ec8d50a1 95cb00d1 .config strace log report syz C WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-smack-root 2022/06/27 10:04 upstream 03c765b0e3b4 a371c43c .config strace log report syz C WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-smack-root 2022/06/02 17:12 upstream d1dc87763f40 5783034f .config strace log report syz C WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2022/05/14 23:06 upstream ec7f49619d8e 744a39e2 .config console log report syz C WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2022/04/18 16:56 upstream b2d229d4ddb1 8bcc32a6 .config console log report syz C WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-smack-root 2021/12/29 19:50 upstream e7c124bd0463 6cc879d4 .config console log report syz C WARNING in kernfs_remove_by_name_ns
ci-upstream-linux-next-kasan-gce-root 2022/12/16 21:32 linux-next ca39c4daa6f7 79e1d513 .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci-upstream-linux-next-kasan-gce-root 2022/09/12 14:30 linux-next e47eb90a0a9a 356d8217 .config strace log report syz C WARNING in kernfs_remove_by_name_ns
ci-upstream-linux-next-kasan-gce-root 2022/08/26 19:59 linux-next 8d0c42c9e807 e5a303f1 .config strace log report syz C WARNING in kernfs_remove_by_name_ns
ci-upstream-linux-next-kasan-gce-root 2022/05/28 03:23 linux-next d3fde8ff50ab a46af346 .config strace log report syz C WARNING in kernfs_remove_by_name_ns
ci-upstream-linux-next-kasan-gce-root 2022/03/01 19:39 linux-next e6ada6df471f 45a13a73 .config console log report syz C WARNING in kernfs_remove_by_name_ns
ci-upstream-gce-arm64 2023/01/07 06:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ae87308093bc 1dac8c7a .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] WARNING in kernfs_remove_by_name_ns
ci-upstream-gce-arm64 2022/11/04 10:09 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config console log report syz C [disk image] [vmlinux] WARNING in kernfs_remove_by_name_ns
ci-upstream-gce-arm64 2022/10/08 21:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 aea5da89 .config console log report syz C [disk image] [vmlinux] WARNING in kernfs_remove_by_name_ns
ci2-upstream-fs 2023/02/01 02:00 upstream 22b8077d0fce b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci2-upstream-fs 2023/01/31 07:33 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2023/01/29 00:51 upstream 5af6ce704936 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2023/01/13 20:40 upstream d9fc1511728c 529798b0 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2023/01/11 23:54 upstream 7dd4b804e080 96166539 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-selinux-root 2023/01/07 19:44 upstream a689b938df39 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-selinux-root 2022/12/27 03:54 upstream 72a85e2b0a1e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-smack-root 2022/12/25 15:08 upstream 72a85e2b0a1e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci2-upstream-fs 2022/12/09 08:17 upstream f3e8416619ce 1034e5fa .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2022/10/26 17:19 upstream 4dc12f37a8e9 2159e4d2 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-smack-root 2022/09/07 03:09 upstream d2ec799d1c1b 5fc30c37 .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2022/09/01 10:30 upstream c5e4d5e99162 b01ec571 .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2022/08/31 07:39 upstream dcf8e5633e2e 4a380809 .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-selinux-root 2022/08/30 03:51 upstream b90cb1053190 5b44472d .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2022/08/28 16:30 upstream 10d4879f9ef0 07177916 .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-selinux-root 2022/08/28 16:13 upstream 10d4879f9ef0 07177916 .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-selinux-root 2022/08/10 03:50 upstream 200e340f2196 c2a623d6 .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2022/07/02 10:38 upstream 089866061428 1434eec0 .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-selinux-root 2022/06/28 03:47 upstream 941e3e791269 ef82eb2c .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2022/06/18 02:10 upstream f0ec9c65a8d6 cb58b3b2 .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-smack-root 2022/06/17 09:24 upstream 0639b599f6f3 1719ee24 .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-smack-root 2022/04/24 14:10 upstream 22da5264abf4 131df97d .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-smack-root 2022/04/15 02:53 upstream b9b4c79e5830 b17b2923 .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2022/02/27 06:21 upstream 2293be58d6a1 45a13a73 .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-selinux-root 2022/02/09 03:11 upstream e6251ab4551f 0b33604d .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-smack-root 2022/01/24 17:43 upstream dd81e1c7d5fb 214351e1 .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2022/01/02 09:30 upstream 278218f6778b e1768e9c .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-smack-root 2021/12/29 18:20 upstream e7c124bd0463 6cc879d4 .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2021/11/04 11:22 upstream ce840177930f 4c1be0be .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-linux-next-kasan-gce-root 2022/10/08 06:55 linux-next aaa11ce2ffc8 0de35f24 .config console log report info [disk image] [vmlinux] WARNING in kernfs_remove_by_name_ns
ci-upstream-linux-next-kasan-gce-root 2022/08/28 16:26 linux-next 8d0c42c9e807 07177916 .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-linux-next-kasan-gce-root 2022/07/26 12:20 linux-next cb71b93c2dc3 34795c51 .config console log report info WARNING in kernfs_remove_by_name_ns
ci2-upstream-usb 2022/05/10 21:12 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing a2673d570bd6 8b277b8e .config console log report info WARNING in kernfs_remove_by_name_ns
ci2-upstream-usb 2022/05/10 06:17 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing a2673d570bd6 8b277b8e .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-linux-next-kasan-gce-root 2022/03/02 17:21 linux-next e6ada6df471f 45a13a73 .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-linux-next-kasan-gce-root 2022/02/09 03:05 linux-next ef6b35306dd8 0b33604d .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-linux-next-kasan-gce-root 2022/01/19 18:10 linux-next 6f59bc242877 0620189b .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-linux-next-kasan-gce-root 2022/01/17 08:01 linux-next 68e0667e38d9 723cfaf0 .config console log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-gce-arm64 2023/01/08 04:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ae87308093bc 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci-upstream-gce-arm64 2023/01/01 22:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci-upstream-gce-arm64 2022/12/28 13:12 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci-upstream-gce-arm64 2022/12/22 17:24 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 c692fab1 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci-upstream-gce-arm64 2022/12/19 23:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 c52b2efb .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci-upstream-gce-arm64 2022/12/19 09:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 05494336 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci-upstream-gce-arm64 2022/12/16 19:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 79e1d513 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci-upstream-gce-arm64 2022/12/15 19:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 6f9c033e .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci-upstream-gce-arm64 2022/12/08 06:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 d88f3abb .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci-upstream-gce-arm64 2022/11/30 15:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci cdb931b58ff5 4c2a66e8 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci-upstream-gce-arm64 2022/11/29 22:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6d464646530f 05dc7993 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci-upstream-gce-arm64 2022/11/20 06:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9500fc6e9e60 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_remove_by_name_ns
ci-upstream-gce-arm64 2022/10/31 18:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config console log report info [disk image] [vmlinux] WARNING in kernfs_remove_by_name_ns
ci-upstream-gce-arm64 2022/09/22 04:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci aa49f95768a9 60af5050 .config console log report info [disk image] [vmlinux] WARNING in kernfs_remove_by_name_ns
ci-upstream-gce-arm64 2022/09/10 22:12 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 356d8217 .config console log report info [disk image] [vmlinux] WARNING in kernfs_remove_by_name_ns
ci-upstream-gce-arm64 2022/09/01 10:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a41a877bc12d b01ec571 .config console log report info WARNING in kernfs_remove_by_name_ns
* Struck through repros no longer work on HEAD.