summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-22 12:57:58 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-23 00:02:09 +0200
commita930877f31fb117ce4b38d4782dd288093700d8a (patch)
treebe22fc9f535db876433c71587e0e34602ebd378e /Userland/Applications
parent1b9916439fc93395386d160e25858b300444c4db (diff)
downloadserenity-a930877f31fb117ce4b38d4782dd288093700d8a.zip
Kernel: Mape quickmap functions VERIFY that MM lock is held
The quickmap_page() and unquickmap_page() functions are used to map a single physical page at a kernel virtual address for temporary access. These use the per-CPU quickmap buffer in the page tables, and access to this is guarded by the MM lock. To prevent bugs, quickmap_page() should not *take* the MM lock, but rather verify that it is already held! This exposed two situations where we were using quickmap without holding the MM lock during page fault handling. This patch is forced to fix these issues (which is great!) :^)
Diffstat (limited to 'Userland/Applications')
0 files changed, 0 insertions, 0 deletions