HomeFreeBSD

Fix bug introduced by r194784: Under XEN, the page(s) allocated to dpcpu
rS216041Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Fix bug introduced by r194784: Under XEN, the page(s) allocated to dpcpu
for CPU #0 weren't being properly reserved. Under VM pressure this would
cause problems when the dpcpu structures were overwritten by arbitrary
data; the most common symptom was a panic when netisr attempted to lock a
mutex.

For some reason the XEN code keeps track of the start of available memory
in the variables 'first', 'physfree', and 'init_first'; as far as I can
tell, we always have first == physfree == init_first * PAGE_SIZE. The
earlier commit adjusted 'first' (which, on !XEN, is the only variable
which tracks this value) but not the other two variables.

Exercise for reader: Eliminate two of these three variables.

Details

Provenance
cpercivaAuthored on
Parents
rS216040: Make German formal clause to be consistent with the keymap counterpart.
Branches
Unknown
Tags
Unknown

Event Timeline