BUG: sleeping function called from invalid context at fs/inode.c:1928 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 4037, name: syz.0.33 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 2 locks held by syz.0.33/4037: #0: ffffaf801dd520e0 (&type->s_umount_key#49){+.+.}-{4:4}, at: __super_lock fs/super.c:57 [inline] #0: ffffaf801dd520e0 (&type->s_umount_key#49){+.+.}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline] #0: ffffaf801dd520e0 (&type->s_umount_key#49){+.+.}-{4:4}, at: deactivate_super fs/super.c:505 [inline] #0: ffffaf801dd520e0 (&type->s_umount_key#49){+.+.}-{4:4}, at: deactivate_super+0x7e/0x98 fs/super.c:502 #1: ffffaf801dd52998 (&s->s_inode_list_lock){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline] #1: ffffaf801dd52998 (&s->s_inode_list_lock){+.+.}-{3:3}, at: hook_sb_delete security/landlock/fs.c:1279 [inline] #1: ffffaf801dd52998 (&s->s_inode_list_lock){+.+.}-{3:3}, at: hook_sb_delete+0x12e/0xbde security/landlock/fs.c:1272 Preemption disabled at: [] spin_lock include/linux/spinlock.h:351 [inline] [] hook_sb_delete security/landlock/fs.c:1279 [inline] [] hook_sb_delete+0x12e/0xbde security/landlock/fs.c:1272 CPU: 0 UID: 0 PID: 4037 Comm: syz.0.33 Not tainted syzkaller #0 PREEMPT Hardware name: riscv-virtio,qemu (DT) Call Trace: [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:132 [] show_stack+0x30/0x3c arch/riscv/kernel/stacktrace.c:138 [] __dump_stack lib/dump_stack.c:94 [inline] [] dump_stack_lvl+0x12a/0x1a2 lib/dump_stack.c:120 [] dump_stack+0x1c/0x24 lib/dump_stack.c:129 [] __might_resched+0x59c/0x5f8 kernel/sched/core.c:8925 [] __might_sleep+0x86/0xca kernel/sched/core.c:8854 [] iput+0x3c/0xb22 fs/inode.c:1928 [] hook_sb_delete security/landlock/fs.c:1342 [inline] [] hook_sb_delete+0x86e/0xbde security/landlock/fs.c:1272 [] security_sb_delete+0xac/0x184 security/security.c:1467 [] generic_shutdown_super+0xba/0x37c fs/super.c:634 [] kill_anon_super fs/super.c:1281 [inline] [] kill_litter_super+0x74/0xb0 fs/super.c:1291 [] deactivate_locked_super+0xd8/0x19c fs/super.c:473 [] deactivate_super fs/super.c:506 [inline] [] deactivate_super+0x84/0x98 fs/super.c:502 [] cleanup_mnt+0x1dc/0x3e6 fs/namespace.c:1327 [] __cleanup_mnt+0x1c/0x26 fs/namespace.c:1334 [] task_work_run+0x16a/0x25e kernel/task_work.c:227 [] resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] [] exit_to_user_mode_loop+0x110/0x142 kernel/entry/common.c:43 [] exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] [] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] [] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] [] do_trap_ecall_u+0x3f8/0x53a arch/riscv/kernel/traps.c:357 [] handle_exception+0x146/0x152 arch/riscv/kernel/entry.S:198