CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2022/08/31 03:07:35
Modified files:
sys/uvm : uvm_vnode.c
Log message:
Lock vmobjlock then check u_flags & UVM_VNODE_VALID in uvn_attach
This is a continuation of this commit:
"Always acquire the `vmobjlock' before incrementing an object's reference."
Unfortuantely this created a race found by syzkaller manifesting as:
panic: kernel diagnostic assertion "uvn->u_obj.uo_refs == 0" failed:
file "sys/uvm/uvm_vnode.c", line 234
ok mpi@
Reported-by: [email protected]