Page MenuHomeFreeBSD

arm64 pmap: allocate leaf page table page for wired userspace superpages
ClosedPublic

Authored by bnovkov on Aug 29 2023, 2:24 PM.
Tags
None
Referenced Files
F84225448: D41634.id.diff
Tue, May 21, 1:42 AM
Unknown Object (File)
Sun, May 19, 9:52 AM
Unknown Object (File)
Apr 20 2024, 11:02 PM
Unknown Object (File)
Apr 14 2024, 5:32 PM
Unknown Object (File)
Apr 9 2024, 5:53 PM
Unknown Object (File)
Apr 8 2024, 2:04 PM
Unknown Object (File)
Mar 6 2024, 3:37 PM
Unknown Object (File)
Mar 5 2024, 10:06 AM
Subscribers

Details

Summary

This patch fixes a syzkaller issue regarding wired userspace superpages by allocating a leaf page table page for wired userspace superpages.

The original issue is an edge case that creates an unmapped, wired region in userspace. Subsequent faults on this region can trigger wired superpage creation, leading to a panic upon demotion as the pmap does not create a leaf page table page for the wired superpage. D19670 fixed this by disallowing preemptive creation of wired superpage mappings, but that fix is currently interfering with an ongoing effort of speeding up vm_map_wire for large, contiguous entries.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable