Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys



Module Name:    src
Committed By:   bouyer
Date:           Mon May 19 15:34:35 UTC 2025

Modified Files:
        src/sys/sys: spl.h
        src/sys/uvm: uvm_pdpolicy_clock.c

Log Message:
uvmpdpol_pagerealize(): ucpu->pdqhead is used by a single CPU; but
kpreempt_disable() isn't enough to guard against concurent access;
interrupts also need to be disabled.
If my analysis is correct, the only place using ucpu->pdqhead which
can be called from interrupt context it uvmpdpol_pagerealize(), and only
from softbio().
So:
- introduce splsoftbio() in sys/spl.h
- protect all accesses to ucpu->pdqhead with splsoftbio()

fixes pr kern/59412: uvmpdpol_pagerealize() queue index out of bound


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/sys/spl.h
cvs rdiff -u -r1.40 -r1.41 src/sys/uvm/uvm_pdpolicy_clock.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index