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: 327d, last: 5d15h

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 498d 494d 0/24 auto-closed as invalid on 2021/09/14 07:04
upstream WARNING in kernfs_remove_by_name_ns 4 1117d 1192d 0/24 auto-closed as invalid on 2020/01/04 08:56
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: 1 PID: 3630 at fs/kernfs/dir.c:1580 kernfs_remove_by_name_ns+0xb0/0xe0 fs/kernfs/dir.c:1579
Modules linked in:
CPU: 1 PID: 3630 Comm: syz-executor173 Not tainted 6.0.0-rc4-syzkaller-00302-gb96fbd602d35 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
RIP: 0010:kernfs_remove_by_name_ns+0xb0/0xe0 fs/kernfs/dir.c:1579
Code: 48 89 c3 e8 22 a9 74 ff 48 89 df e8 aa e5 ff ff 31 db eb 29 e8 11 a9 74 ff 48 c7 c7 c0 12 c0 8a 4c 89 fe 31 c0 e8 40 81 3c ff <0f> 0b bb fe ff ff ff eb 12 e8 f2 a8 74 ff bb fe ff ff ff 4c 89 e7
RSP: 0018:ffffc900038df9a8 EFLAGS: 00010246
RAX: 206ee7f3862b3300 RBX: ffffffff8d346b20 RCX: ffff888027301d80
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: dffffc0000000000 R08: ffffffff816d5c8d R09: ffffed1017364f14
R10: ffffed1017364f14 R11: 1ffff11017364f13 R12: ffffffff8d346ae8
R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff8b084ae0
FS:  00007fea237ba700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fea2384e4c0 CR3: 0000000071fce000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kernfs_remove_by_name include/linux/kernfs.h:615 [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:302
 __blk_mq_update_nr_hw_queues block/blk-mq.c:4548 [inline]
 blk_mq_update_nr_hw_queues+0x647/0x12d0 block/blk-mq.c:4594
 nbd_start_device+0x15d/0xb70 drivers/block/nbd.c:1357
 nbd_start_device_ioctl drivers/block/nbd.c:1407 [inline]
 __nbd_ioctl drivers/block/nbd.c:1481 [inline]
 nbd_ioctl+0x3b3/0xa40 drivers/block/nbd.c:1521
 blkdev_ioctl+0x3a6/0x760 block/ioctl.c:614
 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:0x7fea2380d319
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:00007fea237ba2e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fea238914e0 RCX: 00007fea2380d319
RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000007
RBP: 00007fea2385e194 R08: 0000000000000002 R09: 0000000000003932
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fea238914ec
R13: 00007fea237ba2f0 R14: 00007fea238914e8 R15: 0000000000000002
 </TASK>

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2022/04/01 17:43 upstream e8b767f5e040 6cc879d4 .config log report syz C
* Struck through repros no longer work on HEAD.
Crashes (42):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2022/09/11 04:21 upstream b96fbd602d35 356d8217 .config log report syz C WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-selinux-root 2022/07/28 19:08 upstream 6e7765cb477a fb95c74d .config 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 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 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 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 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 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 log report syz C WARNING in kernfs_remove_by_name_ns
ci-upstream-linux-next-kasan-gce-root 2022/09/12 14:30 linux-next e47eb90a0a9a 356d8217 .config 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 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 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 log report syz C WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-smack-root 2022/09/07 03:09 upstream d2ec799d1c1b 5fc30c37 .config log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2022/09/01 10:30 upstream c5e4d5e99162 b01ec571 .config log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2022/08/31 07:39 upstream dcf8e5633e2e 4a380809 .config 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 log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2022/08/28 16:30 upstream 10d4879f9ef0 07177916 .config 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 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 log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2022/07/02 10:38 upstream 089866061428 1434eec0 .config 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 log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2022/06/18 02:10 upstream f0ec9c65a8d6 cb58b3b2 .config 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 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 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 log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2022/02/27 06:21 upstream 2293be58d6a1 45a13a73 .config 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 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 log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2022/01/02 09:30 upstream 278218f6778b e1768e9c .config 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 log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2021/11/04 11:22 upstream ce840177930f 4c1be0be .config log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-linux-next-kasan-gce-root 2022/08/28 16:26 linux-next 8d0c42c9e807 07177916 .config 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 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 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 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 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 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 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 log report info 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 log report info 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 log report info 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 log report info WARNING in kernfs_remove_by_name_ns
* Struck through repros no longer work on HEAD.