Page MenuHomeFreeBSD

linuxkpi: Update `struct vm_area_struct` when an existing mapping is extended
Needs ReviewPublic

Authored by dumbbell on Jul 12 2026, 4:35 PM.
Referenced Files
Unknown Object (File)
Thu, Aug 13, 12:25 AM
Unknown Object (File)
Tue, Aug 11, 11:38 PM
Unknown Object (File)
Mon, Aug 10, 4:05 AM
Unknown Object (File)
Sun, Aug 9, 6:52 PM
Unknown Object (File)
Sun, Aug 9, 3:50 AM
Unknown Object (File)
Sat, Aug 8, 11:01 PM
Unknown Object (File)
Sat, Aug 8, 4:39 PM
Unknown Object (File)
Sat, Aug 8, 11:20 AM
Subscribers

Details

Reviewers
None
Group Reviewers
linuxkpi
Summary

With Mesa 26 and DRM drivers in Linux 6.13, userspace will try to extend an existing mmap, at last push the end address further.

Before this change, the mapping was not updated, but userspace would try to access a page after the initial end address, leading to a panic triggered by the following assertion in vm_fault_populate():

MPASS(fs->first_pindex <= pager_last);

Sponsored by: The FreeBSD Foundation

Test Plan

Without this patch, I get a panic when I start sway with the Vulkan renderer (WLR_RENDERER=vulkan).

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped