syzbot


BUG: sleeping function called from invalid context in sb_start_write

Status: upstream: reported syz repro on 2024/02/20 06:00
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+3afbc278969bca713e9a@syzkaller.appspotmail.com
First crash: 72d, last: 72d
Bug presence (2)
Date Name Commit Repro Result
2024/02/20 linux-5.15.y (ToT) 6139f2a02fe0 C [report] BUG: sleeping function called from invalid context in dput
2024/02/20 upstream (ToT) b401b621758e C Didn't crash
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2024/02/21 11:30 6h02m fix candidate upstream job log (1)

Sample crash report:
BUG: sleeping function called from invalid context at include/linux/percpu-rwsem.h:49
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3536, name: udevd
no locks held by udevd/3536.
Preemption disabled at:
[<ffffffff8174f806>] is_module_text_address+0x16/0x140 kernel/module.c:4758
CPU: 1 PID: 3536 Comm: udevd Not tainted 5.15.148-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 ___might_sleep+0x547/0x6a0 kernel/sched/core.c:9626
 percpu_down_read include/linux/percpu-rwsem.h:49 [inline]
 __sb_start_write include/linux/fs.h:1785 [inline]
 sb_start_write+0x28/0x1c0 include/linux/fs.h:1855
 mnt_want_write+0x3b/0x80 fs/namespace.c:377
 vfs_utimes+0x1a4/0x760 fs/utimes.c:35
 do_utimes_path fs/utimes.c:98 [inline]
 do_utimes+0x1a4/0x270 fs/utimes.c:144
 __do_sys_utimensat fs/utimes.c:163 [inline]
 __se_sys_utimensat fs/utimes.c:147 [inline]
 __x64_sys_utimensat+0x14b/0x250 fs/utimes.c:147
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f9975310fcc
Code: d8 64 89 02 48 83 c8 ff 89 ef 48 89 44 24 08 e8 99 00 fa ff 48 8b 44 24 08 48 83 c4 30 5d c3 c3 41 89 ca b8 18 01 00 00 0f 05 <48> 3d 00 f0 ff ff 76 10 48 8b 15 2d 6e 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007fffdfa0c798 EFLAGS: 00000202 ORIG_RAX: 0000000000000118
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9975310fcc
RDX: 0000000000000000 RSI: 000055ba9fef3d10 RDI: 00000000ffffff9c
RBP: 0000000000000000 R08: 0000000000000000 R09: 000055ba9fef1b10
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000006180
R13: 0000000000000030 R14: 000055ba9fef3d10 R15: 000055ba9ff01cf0
 </TASK>
BUG: scheduling while atomic: udevd/3536/0x00000002
no locks held by udevd/3536.
Modules linked in:
Preemption disabled at:
[<ffffffff8174f806>] is_module_text_address+0x16/0x140 kernel/module.c:4758

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/20 05:59 linux-5.15.y 6139f2a02fe0 3af7dd65 .config console log report syz [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf BUG: sleeping function called from invalid context in sb_start_write
* Struck through repros no longer work on HEAD.