diff options
author | Alan Cox <alc@FreeBSD.org> | 2024-06-07 05:23:59 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2024-06-08 07:26:55 +0000 |
commit | 5ee5c40402c92a498ed8d6eeb6cf0b5c1680817b (patch) | |
tree | 8653718e6b99549334915de632e91df4672c9b94 /contrib/libarchive/libarchive/archive_write_disk_posix.c | |
parent | 23f4131ad685debef98566351cb9f0e0a5903903 (diff) | |
download | src-main.tar.gz src-main.zip |
Defer the bti lookup until after page table page allocation is complete.
We sometimes release the pmap lock and sleep during page table page
allocation. Consequently, the result of a bti lookup from before
page table page allocation could be stale when we finally create the
mapping based on it.
Modify pmap_bti_same() to update the prototype PTE at the same time as
checking the address range. This eliminates the need for calling
pmap_pte_bti() in addition to pmap_bti_same(). pmap_bti_same() was
already doing most of the work of pmap_pte_bti().
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D45502
Diffstat (limited to 'contrib/libarchive/libarchive/archive_write_disk_posix.c')
0 files changed, 0 insertions, 0 deletions