------------[ cut here ]------------ kernfs: can not remove 'nr_tags', no directory WARNING: CPU: 1 PID: 4507 at fs/kernfs/dir.c:1545 kernfs_remove_by_name_ns+0xd0/0x158 Modules linked in: CPU: 1 PID: 4507 Comm: syz-executor.0 Not tainted 5.15.126-syzkaller-00130-g24c4de4069cb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : kernfs_remove_by_name_ns+0xd0/0x158 lr : kernfs_remove_by_name_ns+0xcc/0x158 fs/kernfs/dir.c:1544 sp : ffff800018ec7760 x29: ffff800018ec7760 x28: ffff0000cc0c0000 x27: ffff0000cc08b000 x26: 0000000000000000 x25: ffff800015087608 x24: 1ffff000023e9594 x23: dfff800000000000 x22: ffff800015087640 x21: 0000000000000000 x20: 0000000000000000 x19: 00000000fffffffe x18: 1fffe00036902f8e x17: 1fffe00036902f8e x16: ffff80001195e134 x15: ffff80001499f180 x14: 1ffff0000292006a x13: ffffffffffffffff x12: 0000000000000000 x11: ff8080000832c998 x10: 0000000000000000 x9 : 14d71a18a06f1300 x8 : 14d71a18a06f1300 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000854c6bc x2 : 0000000000000001 x1 : 0000000100000000 x0 : 000000000000002e Call trace: kernfs_remove_by_name_ns+0xd0/0x158 kernfs_remove_by_name include/linux/kernfs.h:598 [inline] remove_files fs/sysfs/group.c:28 [inline] sysfs_remove_group+0xf8/0x288 fs/sysfs/group.c:289 sysfs_remove_groups+0x5c/0xb4 fs/sysfs/group.c:313 __kobject_del+0x90/0x2d4 lib/kobject.c:619 kobject_del+0x48/0x68 lib/kobject.c:651 blk_mq_unregister_hctx block/blk-mq-sysfs.c:183 [inline] blk_mq_sysfs_unregister+0x1a0/0x274 block/blk-mq-sysfs.c:309 __blk_mq_update_nr_hw_queues block/blk-mq.c:3764 [inline] blk_mq_update_nr_hw_queues+0x504/0xc58 block/blk-mq.c:3804 nbd_start_device+0x158/0xb34 drivers/block/nbd.c:1301 nbd_start_device_ioctl drivers/block/nbd.c:1351 [inline] __nbd_ioctl drivers/block/nbd.c:1427 [inline] nbd_ioctl+0x420/0xc2c drivers/block/nbd.c:1467 blkdev_ioctl+0x3d8/0xbd0 block/ioctl.c:601 block_ioctl+0xa8/0x114 block/fops.c:493 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:860 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 1996 hardirqs last enabled at (1995): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1338 [inline] hardirqs last enabled at (1995): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:4780 hardirqs last disabled at (1996): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387 softirqs last enabled at (358): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (356): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18 ---[ end trace 0cf7456335f273f2 ]--- ------------[ cut here ]------------ kernfs: can not remove 'nr_reserved_tags', no directory WARNING: CPU: 1 PID: 4507 at fs/kernfs/dir.c:1545 kernfs_remove_by_name_ns+0xd0/0x158 Modules linked in: CPU: 1 PID: 4507 Comm: syz-executor.0 Tainted: G W 5.15.126-syzkaller-00130-g24c4de4069cb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : kernfs_remove_by_name_ns+0xd0/0x158 lr : kernfs_remove_by_name_ns+0xcc/0x158 fs/kernfs/dir.c:1544 sp : ffff800018ec7760 x29: ffff800018ec7760 x28: ffff0000cc0c0000 x27: ffff0000cc08b000 x26: 0000000000000000 x25: ffff800015087610 x24: 1ffff000023e9594 x23: dfff800000000000 x22: ffff8000150876a0 x21: 0000000000000000 x20: 0000000000000000 x19: 00000000fffffffe x18: 1fffe00036902f8e x17: 1fffe00036902f8e x16: ffff80001195e134 x15: ffff80001499f180 x14: 1ffff0000292006a x13: ffffffffffffffff x12: 0000000000000000 x11: ff8080000832c998 x10: 0000000000000000 x9 : 14d71a18a06f1300 x8 : 14d71a18a06f1300 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000854c6bc x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000037 Call trace: kernfs_remove_by_name_ns+0xd0/0x158 kernfs_remove_by_name include/linux/kernfs.h:598 [inline] remove_files fs/sysfs/group.c:28 [inline] sysfs_remove_group+0xf8/0x288 fs/sysfs/group.c:289 sysfs_remove_groups+0x5c/0xb4 fs/sysfs/group.c:313 __kobject_del+0x90/0x2d4 lib/kobject.c:619 kobject_del+0x48/0x68 lib/kobject.c:651 blk_mq_unregister_hctx block/blk-mq-sysfs.c:183 [inline] blk_mq_sysfs_unregister+0x1a0/0x274 block/blk-mq-sysfs.c:309 __blk_mq_update_nr_hw_queues block/blk-mq.c:3764 [inline] blk_mq_update_nr_hw_queues+0x504/0xc58 block/blk-mq.c:3804 nbd_start_device+0x158/0xb34 drivers/block/nbd.c:1301 nbd_start_device_ioctl drivers/block/nbd.c:1351 [inline] __nbd_ioctl drivers/block/nbd.c:1427 [inline] nbd_ioctl+0x420/0xc2c drivers/block/nbd.c:1467 blkdev_ioctl+0x3d8/0xbd0 block/ioctl.c:601 block_ioctl+0xa8/0x114 block/fops.c:493 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:860 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 2148 hardirqs last enabled at (2147): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1338 [inline] hardirqs last enabled at (2147): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:4780 hardirqs last disabled at (2148): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387 softirqs last enabled at (2118): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (2118): [] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587 softirqs last disabled at (1999): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (1999): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (1999): [] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:636 ---[ end trace 0cf7456335f273f3 ]--- ------------[ cut here ]------------ kernfs: can not remove 'cpu_list', no directory WARNING: CPU: 1 PID: 4507 at fs/kernfs/dir.c:1545 kernfs_remove_by_name_ns+0xd0/0x158 Modules linked in: CPU: 1 PID: 4507 Comm: syz-executor.0 Tainted: G W 5.15.126-syzkaller-00130-g24c4de4069cb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : kernfs_remove_by_name_ns+0xd0/0x158 lr : kernfs_remove_by_name_ns+0xcc/0x158 fs/kernfs/dir.c:1544 sp : ffff800018ec7760 x29: ffff800018ec7760 x28: ffff0000cc0c0000 x27: ffff0000cc08b000 x26: 0000000000000000 x25: ffff800015087618 x24: 1ffff000023e9594 x23: dfff800000000000 x22: ffff800015087700 x21: 0000000000000000 x20: 0000000000000000 x19: 00000000fffffffe x18: 1fffe00036902f8e x17: 1fffe00036902f8e x16: ffff80001195e134 x15: ffff80001499f180 x14: 1ffff0000292006a x13: ffffffffffffffff x12: 0000000000000000 x11: ff8080000832c998 x10: 0000000000000000 x9 : 14d71a18a06f1300 x8 : 14d71a18a06f1300 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000a954620 x2 : ffff0001b4817d10 x1 : 0000000100000000 x0 : 000000000000002f Call trace: kernfs_remove_by_name_ns+0xd0/0x158 kernfs_remove_by_name include/linux/kernfs.h:598 [inline] remove_files fs/sysfs/group.c:28 [inline] sysfs_remove_group+0xf8/0x288 fs/sysfs/group.c:289 sysfs_remove_groups+0x5c/0xb4 fs/sysfs/group.c:313 __kobject_del+0x90/0x2d4 lib/kobject.c:619 kobject_del+0x48/0x68 lib/kobject.c:651 blk_mq_unregister_hctx block/blk-mq-sysfs.c:183 [inline] blk_mq_sysfs_unregister+0x1a0/0x274 block/blk-mq-sysfs.c:309 __blk_mq_update_nr_hw_queues block/blk-mq.c:3764 [inline] blk_mq_update_nr_hw_queues+0x504/0xc58 block/blk-mq.c:3804 nbd_start_device+0x158/0xb34 drivers/block/nbd.c:1301 nbd_start_device_ioctl drivers/block/nbd.c:1351 [inline] __nbd_ioctl drivers/block/nbd.c:1427 [inline] nbd_ioctl+0x420/0xc2c drivers/block/nbd.c:1467 blkdev_ioctl+0x3d8/0xbd0 block/ioctl.c:601 block_ioctl+0xa8/0x114 block/fops.c:493 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:860 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 2300 hardirqs last enabled at (2299): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1338 [inline] hardirqs last enabled at (2299): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:4780 hardirqs last disabled at (2300): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387 softirqs last enabled at (2284): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (2284): [] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587 softirqs last disabled at (2253): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (2253): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (2253): [] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:636 ---[ end trace 0cf7456335f273f4 ]--- FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 1 PID: 4507 Comm: syz-executor.0 Tainted: G W 5.15.126-syzkaller-00130-g24c4de4069cb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 fail_dump lib/fault-inject.c:52 [inline] should_fail+0x400/0x5cc lib/fault-inject.c:146 __should_failslab+0xbc/0x110 mm/failslab.c:33 should_failslab+0x10/0x28 mm/slab_common.c:1337 slab_pre_alloc_hook+0x64/0xe8 mm/slab.h:494 slab_alloc_node mm/slub.c:3134 [inline] __kmalloc_node+0xbc/0x5b8 mm/slub.c:4451 kmalloc_array_node include/linux/slab.h:684 [inline] kcalloc_node include/linux/slab.h:689 [inline] blk_mq_realloc_hw_ctxs+0xc4/0x12ec block/blk-mq.c:3208 __blk_mq_update_nr_hw_queues block/blk-mq.c:3776 [inline] blk_mq_update_nr_hw_queues+0x68c/0xc58 block/blk-mq.c:3804 nbd_start_device+0x158/0xb34 drivers/block/nbd.c:1301 nbd_start_device_ioctl drivers/block/nbd.c:1351 [inline] __nbd_ioctl drivers/block/nbd.c:1427 [inline] nbd_ioctl+0x420/0xc2c drivers/block/nbd.c:1467 blkdev_ioctl+0x3d8/0xbd0 block/ioctl.c:601 block_ioctl+0xa8/0x114 block/fops.c:493 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:860 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Increasing nr_hw_queues to 2 fails, fallback to 1