syzbot


BUG: sleeping function called from invalid context in hook_sb_delete

Status: upstream: reported C repro on 2025/09/23 22:59
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+12479ae15958fc3f54ec@syzkaller.appspotmail.com
First crash: 15h46m, last: 1h24m
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [fs?] BUG: sleeping function called from invalid context in hook_sb_delete 2 (4) 2025/09/24 09:44
Last patch testing requests (2)
Created Duration User Patch Repo Result
2025/09/24 00:29 25m hdanton@sina.com patch linux-next OK log
2025/09/24 09:44 eadavis@qq.com patch linux-next pending

Sample crash report:
BUG: sleeping function called from invalid context at fs/inode.c:1928
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6047, name: syz.0.17
preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
2 locks held by syz.0.17/6047:
 #0: ffff88807c1a00e0 (&type->s_umount_key#50){+.+.}-{4:4}, at: __super_lock fs/super.c:57 [inline]
 #0: ffff88807c1a00e0 (&type->s_umount_key#50){+.+.}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline]
 #0: ffff88807c1a00e0 (&type->s_umount_key#50){+.+.}-{4:4}, at: deactivate_super+0xa9/0xe0 fs/super.c:505
 #1: ffff88807c1a0998 (&s->s_inode_list_lock){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline]
 #1: ffff88807c1a0998 (&s->s_inode_list_lock){+.+.}-{3:3}, at: hook_sb_delete+0xae/0xbd0 security/landlock/fs.c:1405
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 1 UID: 0 PID: 6047 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
 __might_resched+0x495/0x610 kernel/sched/core.c:8960
 iput+0x2b/0xc50 fs/inode.c:1928
 hook_sb_delete+0x6b5/0xbd0 security/landlock/fs.c:1468
 security_sb_delete+0x80/0x150 security/security.c:1467
 generic_shutdown_super+0xaa/0x2c0 fs/super.c:634
 kill_anon_super fs/super.c:1281 [inline]
 kill_litter_super+0x76/0xb0 fs/super.c:1291
 deactivate_locked_super+0xbc/0x130 fs/super.c:473
 cleanup_mnt+0x425/0x4c0 fs/namespace.c:1327
 task_work_run+0x1d4/0x260 kernel/task_work.c:227
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop+0xe9/0x130 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_syscall_64+0x2bd/0xfa0 arch/x86/entry/syscall_64.c:100
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f513b18eec9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffec7c3358 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f513b3e5fa0 RCX: 00007f513b18eec9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00002000000002c0
RBP: 00007f513b211f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f513b3e5fa0 R14: 00007f513b3e5fa0 R15: 0000000000000002
 </TASK>

Crashes (61):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/23 23:43 linux-next ce7f1a983b07 0abd0691 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 22:58 linux-next ce7f1a983b07 0abd0691 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 22:23 linux-next ce7f1a983b07 0abd0691 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/24 08:50 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/24 08:45 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/24 06:00 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/24 01:23 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 23:33 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 23:33 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 23:27 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 23:27 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 23:17 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 23:11 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 23:11 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 23:01 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 22:57 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 21:34 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 21:31 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 21:25 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 21:21 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 21:21 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 21:08 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 21:03 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 21:02 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 20:57 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 20:57 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 20:52 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 19:57 linux-next ce7f1a983b07 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 19:56 linux-next ce7f1a983b07 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 19:56 linux-next ce7f1a983b07 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 19:56 linux-next ce7f1a983b07 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 19:54 linux-next ce7f1a983b07 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 19:54 linux-next ce7f1a983b07 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 19:53 linux-next ce7f1a983b07 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 19:53 linux-next ce7f1a983b07 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 19:02 linux-next ce7f1a983b07 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 19:02 linux-next ce7f1a983b07 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 18:48 linux-next ce7f1a983b07 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 18:48 linux-next ce7f1a983b07 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 18:43 linux-next ce7f1a983b07 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 18:42 linux-next ce7f1a983b07 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 18:37 linux-next ce7f1a983b07 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 18:37 linux-next ce7f1a983b07 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 18:34 linux-next ce7f1a983b07 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 18:29 linux-next ce7f1a983b07 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
2025/09/23 18:29 linux-next ce7f1a983b07 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in hook_sb_delete
* Struck through repros no longer work on HEAD.