syzbot


BUG: sleeping function called from invalid context in dput

Status: auto-obsoleted due to no activity on 2023/08/23 09:10
Reported-by: syzbot+883c31c34275183fefd7@syzkaller.appspotmail.com
First crash: 524d, last: 524d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: sleeping function called from invalid context in dput nfs 1 56d 52d 0/28 upstream: reported on 2024/08/27 00:10

Sample crash report:
erofs: (device loop3): mounted with root inode @ nid 36.
erofs: (device loop3): z_erofs_readpage: failed to read, err [-95]
BUG: sleeping function called from invalid context at fs/dcache.c:872
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 31567, name: syz-executor.3
1 lock held by syz-executor.3/31567:
 #0: ffff888098048180 (&type->i_mutex_dir_key#22){.+.+}-{3:3}, at: inode_lock_shared include/linux/fs.h:797 [inline]
 #0: ffff888098048180 (&type->i_mutex_dir_key#22){.+.+}-{3:3}, at: lookup_slow+0x45/0x70 fs/namei.c:1675
Preemption disabled at:
[<ffffffff83b7a1f0>] kmap_atomic include/linux/highmem-internal.h:196 [inline]
[<ffffffff83b7a1f0>] z_erofs_reload_indexes+0x350/0x590 fs/erofs/zmap.c:146
CPU: 1 PID: 31567 Comm: syz-executor.3 Not tainted 5.15.111-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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:9625
 dput+0x3e/0x420 fs/dcache.c:872
 __lookup_slow+0x350/0x3d0 fs/namei.c:1662
 lookup_slow+0x53/0x70 fs/namei.c:1676
 walk_component+0x48c/0x610 fs/namei.c:1972
 lookup_last fs/namei.c:2427 [inline]
 path_lookupat+0x16f/0x450 fs/namei.c:2451
 filename_lookup+0x230/0x5c0 fs/namei.c:2480
 user_path_at_empty+0x40/0x180 fs/namei.c:2853
 user_path_at include/linux/namei.h:57 [inline]
 path_getxattr+0xac/0x240 fs/xattr.c:727
 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:0x7f9736132169
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f97346a4168 EFLAGS: 00000246 ORIG_RAX: 00000000000000bf
RAX: ffffffffffffffda RBX: 00007f9736251f80 RCX: 00007f9736132169
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000100
RBP: 00007f973618dca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffe41e9cef R14: 00007f97346a4300 R15: 0000000000022000
 </TASK>
BUG: scheduling while atomic: syz-executor.3/31567/0x00000002
no locks held by syz-executor.3/31567.
Modules linked in:
Preemption disabled at:
[<ffffffff83b7a1f0>] kmap_atomic include/linux/highmem-internal.h:196 [inline]
[<ffffffff83b7a1f0>] z_erofs_reload_indexes+0x350/0x590 fs/erofs/zmap.c:146

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/12 09:13 linux-5.15.y b0ece631f84a adb9a3cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: sleeping function called from invalid context in dput
* Struck through repros no longer work on HEAD.