FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 1, space 0, times 988 CPU: 0 UID: 0 PID: 5352 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 fail_dump lib/fault-inject.c:73 [inline] should_fail_ex+0x40c/0x560 lib/fault-inject.c:174 should_failslab+0xa8/0x100 mm/failslab.c:46 slab_pre_alloc_hook mm/slub.c:4539 [inline] slab_alloc_node mm/slub.c:4897 [inline] kmem_cache_alloc_noprof+0xa6/0x5f0 mm/slub.c:4931 __kernfs_new_node+0xe6/0x980 fs/kernfs/dir.c:665 kernfs_new_node+0xea/0x140 fs/kernfs/dir.c:751 __kernfs_create_file+0x4b/0x2e0 fs/kernfs/file.c:1050 sysfs_add_file_mode_ns+0x237/0x300 fs/sysfs/file.c:316 create_files fs/sysfs/group.c:82 [inline] internal_create_group+0x679/0x1180 fs/sysfs/group.c:189 internal_create_groups fs/sysfs/group.c:229 [inline] sysfs_create_groups+0x59/0x120 fs/sysfs/group.c:255 create_dir lib/kobject.c:78 [inline] kobject_add_internal+0x669/0xcd0 lib/kobject.c:240 kobject_add_varg lib/kobject.c:374 [inline] kobject_init_and_add+0x12b/0x1a0 lib/kobject.c:457 btrfs_sysfs_add_qgroups+0x118/0x2f0 fs/btrfs/sysfs.c:2604 btrfs_quota_enable+0x274/0x1e20 fs/btrfs/qgroup.c:1032 btrfs_ioctl_quota_ctl+0x186/0x1f0 fs/btrfs/ioctl.c:3568 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f564559de99 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:00007f56463eefe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f5645826180 RCX: 00007f564559de99 RDX: 0000200000000580 RSI: 00000000c0109428 RDI: 0000000000000003 RBP: 00007f5645633eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f5645826218 R14: 00007f5645826180 R15: 00007ffe13ef7678 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: fs/kernfs/dir.c:1786 at kernfs_remove_by_name_ns+0xd8/0x140 fs/kernfs/dir.c:1785, CPU#0: syz.0.0/5352 Modules linked in: CPU: 0 UID: 0 PID: 5352 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:kernfs_remove_by_name_ns+0xdb/0x140 fs/kernfs/dir.c:1785 Code: 9a bf ff 3e 41 ff 07 4c 89 ff e8 c0 ee ff ff 4c 89 ff e8 08 89 ff ff 31 ed eb 25 e8 bf 66 50 ff 48 8d 3d e8 a7 e7 0d 4c 89 fe <67> 48 0f b9 3a bd fe ff ff ff eb 1a e8 a4 66 50 ff bd fe ff ff ff RSP: 0018:ffffc9000e52fb10 EFLAGS: 00010287 RAX: ffffffff8276ad91 RBX: ffffffff8c38cca0 RCX: 0000000000100000 RDX: ffffc90020802000 RSI: ffffffff8c38cd00 RDI: ffffffff905e5580 RBP: ffffffff8f1d0c88 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1d3ca24 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff8c38cd00 FS: 00007f56463ef6c0(0000) GS:ffff88808c543000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000000280 CR3: 000000001afd5000 CR4: 0000000000352ef0 Call Trace: kernfs_remove_by_name include/linux/kernfs.h:644 [inline] remove_files fs/sysfs/group.c:28 [inline] sysfs_remove_group+0x101/0x2e0 fs/sysfs/group.c:328 sysfs_remove_groups+0x54/0xb0 fs/sysfs/group.c:352 __kobject_del+0x83/0x310 lib/kobject.c:595 kobject_del+0x45/0x60 lib/kobject.c:627 btrfs_sysfs_del_qgroups+0x114/0x160 fs/btrfs/sysfs.c:2579 btrfs_sysfs_add_qgroups+0x28a/0x2f0 fs/btrfs/sysfs.c:2618 btrfs_quota_enable+0x274/0x1e20 fs/btrfs/qgroup.c:1032 btrfs_ioctl_quota_ctl+0x186/0x1f0 fs/btrfs/ioctl.c:3568 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f564559de99 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:00007f56463eefe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f5645826180 RCX: 00007f564559de99 RDX: 0000200000000580 RSI: 00000000c0109428 RDI: 0000000000000003 RBP: 00007f5645633eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f5645826218 R14: 00007f5645826180 R15: 00007ffe13ef7678 ---------------- Code disassembly (best guess), 3 bytes skipped: 0: 3e 41 ff 07 ds incl (%r15) 4: 4c 89 ff mov %r15,%rdi 7: e8 c0 ee ff ff call 0xffffeecc c: 4c 89 ff mov %r15,%rdi f: e8 08 89 ff ff call 0xffff891c 14: 31 ed xor %ebp,%ebp 16: eb 25 jmp 0x3d 18: e8 bf 66 50 ff call 0xff5066dc 1d: 48 8d 3d e8 a7 e7 0d lea 0xde7a7e8(%rip),%rdi # 0xde7a80c 24: 4c 89 fe mov %r15,%rsi * 27: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2c: bd fe ff ff ff mov $0xfffffffe,%ebp 31: eb 1a jmp 0x4d 33: e8 a4 66 50 ff call 0xff5066dc 38: bd fe ff ff ff mov $0xfffffffe,%ebp