]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix superpage promotion on ARM with respect to RO/RW and wired attributes
authorzbb <zbb@FreeBSD.org>
Sat, 15 Feb 2014 13:20:17 +0000 (13:20 +0000)
committerzbb <zbb@FreeBSD.org>
Sat, 15 Feb 2014 13:20:17 +0000 (13:20 +0000)
commite89c3bab1ff261ca2d0e14fc001b84adfce8c194
tree2987833dd133d03e43c8766951ebdb08cd5dbb6c
parentf3152cdd31bda1178fd70d1940400e87fb83a9ae
Fix superpage promotion on ARM with respect to RO/RW and wired attributes

It was possible to create RW superpage mapping even if
the base pages were RO due to wrong setting of the prot
flag passed to pmap_map_section().
Promotion attempt should be canceled in case of attributes
mismatch between any two base pages. Since we still use
pv_flags to maintain permission to write (PVF_WRITE) and
wired status (PVF_WIRED) for a page, it is also necessary
to take those variables into account.
sys/arm/arm/pmap-v6.c