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: 451d, last: 17h37m

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 622d 618d 0/24 auto-closed as invalid on 2021/09/14 07:04
upstream WARNING in kernfs_remove_by_name_ns 4 1241d 1316d 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:
 </TASK>
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: 5068 at fs/kernfs/dir.c:1652 kernfs_remove_by_name_ns+0xf5/0x150 fs/kernfs/dir.c:1651
Modules linked in:
CPU: 0 PID: 5068 Comm: syz-executor298 Not tainted 6.2.0-rc2-syzkaller-00203-g1f5abbd77e2c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:kernfs_remove_by_name_ns+0xf5/0x150 fs/kernfs/dir.c:1651
Code: 48 89 df e8 7d ec ff ff 48 89 df e8 e5 98 ff ff 31 db eb 29 e8 fc fe 71 ff 48 c7 c7 00 11 01 8b 4c 89 e6 31 c0 e8 bb ee 38 ff <0f> 0b bb fe ff ff ff eb 12 e8 dd fe 71 ff bb fe ff ff ff 4c 89 f7
RSP: 0018:ffffc90003e0fb00 EFLAGS: 00010246
RAX: 16aeb9e2e8226f00 RBX: ffffffff8d8562e0 RCX: ffff888024991d40
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: dffffc0000000000 R08: ffffffff816f2c9d R09: fffff520007c1f19
R10: fffff520007c1f19 R11: 1ffff920007c1f18 R12: ffffffff8b3a0260
R13: 0000000000000000 R14: ffffffff8b3a0200 R15: 0000000000000000
FS:  000055555628d3c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0ec66b7300 CR3: 000000007885d000 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: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
 btrfs_sysfs_del_qgroups+0x1d8/0x230 fs/btrfs/sysfs.c:2216
 btrfs_sysfs_add_qgroups+0x3a8/0x3d0 fs/btrfs/sysfs.c:2255
 btrfs_quota_enable+0x216/0x1cf0 fs/btrfs/qgroup.c:991
 btrfs_ioctl_quota_ctl+0x141/0x180 fs/btrfs/ioctl.c:3681
 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+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd8159a7f49
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 31 18 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff6eb37f88 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000031 RCX: 00007fd8159a7f49
RDX: 0000000020000000 RSI: 00000000c0109428 RDI: 0000000000000004
RBP: 0000000000000001 R08: 0000000000000001 R09: 00007fff6eb30037
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff6eb37f90
R13: 00007fff6eb37ffa R14: 00007fd815a1c720 R15: 00007fff6eb38010
 </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 (72):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
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
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.