syzbot


BUG: sleeping function called from invalid context in do_page_fault (2)

Status: auto-closed as invalid on 2021/08/18 11:26
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+66bcf89bc98a2524351b@syzkaller.appspotmail.com
First crash: 1103d, last: 1103d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] BUG: sleeping function called from invalid context in do_page_fault (2) 0 (1) 2021/04/30 20:48
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: sleeping function called from invalid context in do_page_fault kernel C done error 7 1447d 1514d 0/26 closed as dup on 2020/08/16 04:02
upstream BUG: sleeping function called from invalid context in do_page_fault (3) gfs2 C 16 464d 733d 0/26 auto-obsoleted due to no activity on 2024/02/04 00:56

Sample crash report:
BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1352
in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 6832, name: syz-executor.1
Unable to handle kernel paging request at virtual address ffffffe024768000
Oops [#1]
Modules linked in:
CPU: 1 PID: 6832 Comm: syz-executor.1 Not tainted 5.12.0-rc6-syzkaller-00183-g7ae11635ec90 #0
Hardware name: riscv-virtio,qemu (DT)
epc : ___might_sleep+0x21c/0x2c0 kernel/sched/core.c:8317
 ra : ___might_sleep+0x21c/0x2c0 kernel/sched/core.c:8317
epc : ffffffe00008456c ra : ffffffe00008456c sp : ffffffe07fdffd90
 gp : ffffffe004588ad0 tp : ffffffe008680000 t0 : ffffffe004ffdbb7
 t1 : ffffffc40ffbff52 t2 : 0000000000000000 s0 : ffffffe07fdffdd0
 s1 : ffffffe024768000 a0 : ffffffe024768000 a1 : 0000000000000007
 a2 : 1ffffffc048ed000 a3 : ffffffe00008456c a4 : 0000000000000000
 a5 : ffffffe024768000 a6 : 0000000000f00000 a7 : ffffffe07fdffa97
 s2 : 0000000000000000 s3 : 0000000000000100 s4 : ffffffe008680000
 s5 : ffffffe0000274ec s6 : 0000000000000000 s7 : ffffffe07fdfffe0
 s8 : 0000000000000214 s9 : ffffffe0071e4ed8 s10: 0000000000001000
 s11: ffffffe003000c68 t3 : dd4b702f2cefd800 t4 : ffffffc40ffbff51
 t5 : ffffffc40ffbff53 t6 : ffffffe07fdffa98
status: 0000000000000100 badaddr: ffffffe024768000 cause: 000000000000000d
Call Trace:
[<ffffffe00008456c>] ___might_sleep+0x21c/0x2c0 kernel/sched/core.c:8317
[<ffffffe00008466a>] __might_sleep+0x5a/0x8a kernel/sched/core.c:8282
[<ffffffe002a996ec>] down_read+0x2e/0x1a4 kernel/locking/rwsem.c:1352
[<ffffffe00000fef8>] mmap_read_lock include/linux/mmap_lock.h:117 [inline]
[<ffffffe00000fef8>] do_page_fault+0x1e6/0x95e arch/riscv/mm/fault.c:263
[<ffffffe000005586>] ret_from_exception+0x0/0x14

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/20 11:26 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 7ae11635ec90 c0ced557 .config console log report info ci-qemu2-riscv64 BUG: sleeping function called from invalid context in do_page_fault
* Struck through repros no longer work on HEAD.