summaryrefslogtreecommitdiff
path: root/lib/libz
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2020-09-14 12:51:29 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2020-09-14 12:51:29 +0000
commit9b41c91126f2ecc369463aae629bef1a45dac699 (patch)
tree1790838640e8d513e93a056b46203d8ab70b3a34 /lib/libz
parent3498316847c9ce67c52bfef67d95779d23a8d763 (diff)
The uvm_map_inentry() check may sleep to grab the lock of the map.
The fault address is read from cr2 in pageflttrap() which gets called after this check and if the check sleeps, cr2 is likely to be clobbered by a page fault in another process. Fix this by reading cr2 early and pass it to pageflttrap(). ok mpi@, semarie@, deraadt@
Diffstat (limited to 'lib/libz')
0 files changed, 0 insertions, 0 deletions