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
Unknown Object (File)
Sat, Nov 16, 12:49 PM
Unknown Object (File)
Sat, Nov 16, 11:02 AM
Unknown Object (File)
Fri, Nov 8, 1:42 AM
Unknown Object (File)
Nov 1 2024, 2:36 PM
Unknown Object (File)
Nov 1 2024, 1:17 PM
Unknown Object (File)
Sep 24 2024, 7:35 AM
Unknown Object (File)
Sep 18 2024, 3:56 PM
Unknown Object (File)
Sep 18 2024, 3:17 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