Page MenuHomeFreeBSD

mips pmap: pmap_emulate_modified race fix
ClosedPublic

Authored by freebsdphab-AX9_cmx.ietfng.org on Apr 21 2020, 6:35 PM.
Tags
Referenced Files
F82143396: D24523.diff
Thu, Apr 25, 9:57 PM
Unknown Object (File)
Mar 18 2024, 7:10 PM
Unknown Object (File)
Mar 18 2024, 5:13 PM
Unknown Object (File)
Feb 18 2024, 1:20 AM
Unknown Object (File)
Jan 15 2024, 3:05 PM
Unknown Object (File)
Dec 22 2023, 5:52 AM
Unknown Object (File)
Dec 20 2023, 5:50 AM
Unknown Object (File)
Dec 11 2023, 2:39 AM
Subscribers

Details

Summary

pmap_emulate_modify was assuming that no changes to the pmap could take
place between the TLB signaling the fault and pmap_emulate_modify's
acquisition of the pmap lock, but that's clearly not even true in the
uniprocessor case, nevermind the SMP case.

Address each possibility in turn.

Thanks to Konstantin Belousov and Mark Johnston for confirming the bug.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 30653
Build 28389: arc lint + arc unit