diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-09-14 12:51:29 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-09-14 12:51:29 +0000 |
commit | 9b41c91126f2ecc369463aae629bef1a45dac699 (patch) | |
tree | 1790838640e8d513e93a056b46203d8ab70b3a34 /lib/librpcsvc | |
parent | 3498316847c9ce67c52bfef67d95779d23a8d763 (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/librpcsvc')
0 files changed, 0 insertions, 0 deletions