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
F83614985: D24523.diff
Sun, May 12, 5:43 PM
Unknown Object (File)
Tue, May 7, 12:53 PM
Unknown Object (File)
Tue, May 7, 11:36 AM
Unknown Object (File)
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
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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable