syzbot


BUG: sleeping function called from invalid context in do_page_fault (3)
Status: upstream: reported on 2022/04/25 16:04
Reported-by: syzbot+2845b2dfa28dec36e215@syzkaller.appspotmail.com
First crash: 36d, last: 20d
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 (2) 1 402d 391d 0/22 auto-closed as invalid on 2021/08/18 11:26
upstream BUG: sleeping function called from invalid context in do_page_fault C done error 7 746d 813d 0/22 closed as dup on 2020/08/16 04:02

Sample crash report:
BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1460
in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 2049, name: syz-fuzzer
preempt_count: 0, expected: 0
RCU nest depth: 0, expected: 0
no locks held by syz-fuzzer/2049.
irq event stamp: 73272
hardirqs last  enabled at (73271): [<ffffffff800bdb3a>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1330 [inline]
hardirqs last  enabled at (73271): [<ffffffff800bdb3a>] finish_lock_switch kernel/sched/core.c:4746 [inline]
hardirqs last  enabled at (73271): [<ffffffff800bdb3a>] finish_task_switch.isra.0+0x152/0x420 kernel/sched/core.c:4864
hardirqs last disabled at (73272): [<ffffffff8000e866>] __trace_hardirqs_off+0x18/0x20 arch/riscv/kernel/trace_irq.c:25
softirqs last  enabled at (73168): [<ffffffff826e668a>] spin_unlock_bh include/linux/spinlock.h:394 [inline]
softirqs last  enabled at (73168): [<ffffffff826e668a>] release_sock+0xf6/0x122 net/core/sock.c:3322
softirqs last disabled at (73166): [<ffffffff826e651c>] spin_lock_bh include/linux/spinlock.h:354 [inline]
softirqs last disabled at (73166): [<ffffffff826e651c>] __release_sock+0x1ea/0x262 net/core/sock.c:2786
CPU: 0 PID: 2049 Comm: syz-fuzzer Not tainted 5.17.0-rc1-syzkaller-00002-g0966d385830d #0
Hardware name: riscv-virtio,qemu (DT)
Call Trace:
[<ffffffff8000a228>] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:113
[<ffffffff831668cc>] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:119
[<ffffffff831756ba>] __dump_stack lib/dump_stack.c:88 [inline]
[<ffffffff831756ba>] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:106
[<ffffffff83175742>] dump_stack+0x1c/0x24 lib/dump_stack.c:113
[<ffffffff800baf2a>] __might_resched+0x30a/0x342 kernel/sched/core.c:9583
[<ffffffff800bafc0>] __might_sleep+0x5e/0x8e kernel/sched/core.c:9512
[<ffffffff831ab63e>] down_read+0x24/0x54 kernel/locking/rwsem.c:1460
[<ffffffff800117d4>] mmap_read_lock include/linux/mmap_lock.h:117 [inline]
[<ffffffff800117d4>] do_page_fault+0x24e/0xa3c arch/riscv/mm/fault.c:285
[<ffffffff80005724>] ret_from_exception+0x0/0x10

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-qemu2-riscv64 2022/05/07 12:02 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d e60b1103 .config log report info BUG: sleeping function called from invalid context in do_page_fault
ci-qemu2-riscv64 2022/04/28 13:52 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 8a1f1f07 .config log report info BUG: sleeping function called from invalid context in do_page_fault
ci-qemu2-riscv64 2022/04/21 15:56 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 2738b391 .config log report info BUG: sleeping function called from invalid context in do_page_fault