OpenBSD cvs log

created 2024-09-29T03:38:33Z
begin 2024-09-25T00:00:00Z
end 2024-09-26T00:00:00Z
path src/sys
commits 1

date 2024-09-25T18:24:13Z
author bluhm
files src/sys/kern/subr_witness.c log diff annotate
message Do not crash in witness code if interrupt fires early.

It can happen that an interrupt handler is called immediately on a
secondary CPU when it is spun up during boot. At that moment no
process is schduled yet, so curproc is NULL. To prevent a crash
when p->p_sleeplocks is dereferenced, skip witness check in this
case.

OK visa@