Page MenuHomeFreeBSD

linuxkpi: Move LINUXKPI_PROT_VALID higher
Needs ReviewPublic

Authored by andrew on Jul 1 2026, 10:10 AM.
Referenced Files
Unknown Object (File)
Fri, Sep 11, 3:20 PM
Unknown Object (File)
Fri, Sep 11, 1:53 PM
Unknown Object (File)
Thu, Sep 10, 11:25 PM
Unknown Object (File)
Thu, Sep 10, 9:14 PM
Unknown Object (File)
Wed, Sep 9, 4:28 PM
Unknown Object (File)
Tue, Sep 8, 12:08 PM
Unknown Object (File)
Tue, Sep 8, 1:11 AM
Unknown Object (File)
Sun, Sep 6, 11:57 AM

Details

Reviewers
None
Group Reviewers
arm64
linuxkpi
Summary

Move LINUXKPI_PROT_VALID and LINUXKPI_CACHE_MODE_SHIFT out of the
bottom 8 bits. This allows the entire vm_prot_t to be stored in the
LinuxKPI pgprot_t.

This will be needed when we add more flags to vm_prot_t, e.g. for MTE
on arm64.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 74453
Build 71336: arc lint + arc unit

Event Timeline

Is anyone who knows about LinuxKPI able to check this? I don't have anything that uses it, but need to move the value for MTE.

This came from 1ea4c85781e94 and was revised in ebf854802d83a.

@ashafer has an open review ( https://reviews.freebsd.org/D59436 ) and I was trying to understand some of this recently.
If you can give me a few days I'll try to fully wrap my head around this.

I assume @ashafer and @dumbbell can test this for nvidia and i915/amdgpu.