diff options
| author | Logan <Logan@cattn.dev> | 2026-11-23 12:37:42 -0500 |
|---|---|---|
| committer | Logan <Logan@cattn.dev> | 2026-11-23 12:37:42 -0500 |
| commit | 75c2b87a751ca1825caee3fae323cce43c1eb78a (patch) | |
| tree | 193e1fd5d044086c9eb65c4fd20fcaae7f81aeb6 /runtime/src | |
| parent | abd85df49f26245dbd8be81d750b6425c9f6e379 (diff) | |
xmem: take the fault lock before reading or changing a mapped page's record
unmap_page moved the record out of g_mapped before taking the exclusive
lock, so a first-touch fault on that page could read a moved-from
section, and map_page made the view live before recording it, so a
fault in between was not recognised. unmap_page now holds the exclusive
lock from the lookup to the erase, and map_page holds it across mapping
the view and recording it. xmem_test adds four threads writing into a
window while 256 slices of pages are mapped and unmapped under them.
Reported by tupacfan04 in the review of #7556.
Diffstat (limited to 'runtime/src')
0 files changed, 0 insertions, 0 deletions