BUG: sleeping function called from invalid context at fs/inode.c:1928 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 2179, name: syz.6.14023 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 2 locks held by syz.6.14023/2179: #0: ffff0000171f80e0 (&type->s_umount_key#31){++++}-{4:4}, at: __super_lock fs/super.c:57 [inline] #0: ffff0000171f80e0 (&type->s_umount_key#31){++++}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline] #0: ffff0000171f80e0 (&type->s_umount_key#31){++++}-{4:4}, at: deactivate_super fs/super.c:505 [inline] #0: ffff0000171f80e0 (&type->s_umount_key#31){++++}-{4:4}, at: deactivate_super+0xa8/0xd4 fs/super.c:502 #1: ffff0000171f8998 (&s->s_inode_list_lock){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline] #1: ffff0000171f8998 (&s->s_inode_list_lock){+.+.}-{3:3}, at: hook_sb_delete security/landlock/fs.c:1279 [inline] #1: ffff0000171f8998 (&s->s_inode_list_lock){+.+.}-{3:3}, at: hook_sb_delete+0xf4/0x84c 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+0xf4/0x84c security/landlock/fs.c:1272 CPU: 1 UID: 0 PID: 2179 Comm: syz.6.14023 Not tainted syzkaller #0 PREEMPT Hardware name: linux,dummy-virt (DT) Call trace: show_stack+0x18/0x24 arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xdc/0xf4 lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 __might_resched+0x3d4/0x5bc kernel/sched/core.c:8927 __might_sleep+0x94/0x154 kernel/sched/core.c:8856 iput+0x28/0x44 fs/inode.c:1928 hook_sb_delete security/landlock/fs.c:1342 [inline] hook_sb_delete+0x514/0x84c security/landlock/fs.c:1272 security_sb_delete+0xb0/0x120 security/security.c:1467 generic_shutdown_super+0xb4/0x2e8 fs/super.c:634 kill_anon_super fs/super.c:1281 [inline] kill_litter_super+0x68/0xa4 fs/super.c:1291 deactivate_locked_super+0x98/0x17c fs/super.c:473 deactivate_super fs/super.c:506 [inline] deactivate_super+0xb0/0xd4 fs/super.c:502 cleanup_mnt+0x198/0x428 fs/namespace.c:1327 __cleanup_mnt+0x14/0x20 fs/namespace.c:1334 task_work_run+0x128/0x210 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0x17c/0x1a0 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] arm64_exit_to_user_mode arch/arm64/kernel/entry-common.c:103 [inline] el0_svc_compat+0x204/0x248 arch/arm64/kernel/entry-common.c:898 el0t_32_sync_handler+0x88/0xac arch/arm64/kernel/entry-common.c:915 el0t_32_sync+0x19c/0x1a0 arch/arm64/kernel/entry.S:601