[Midnightbsd-cvs] [MidnightBSD/src] a09d98: linux: prevalidate pkey_mprotect ranges

Lucas Holt noreply at github.com
Fri Sep 25 13:31:17 EDT 2026


  Branch: refs/heads/linux-pkey-backport
  Home:   https://github.com/MidnightBSD/src
  Commit: a09d98dc245d85944ef4dbe5231e3d33a80a5ab6
      https://github.com/MidnightBSD/src/commit/a09d98dc245d85944ef4dbe5231e3d33a80a5ab6
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-09-25 (Fri, 25 Sep 2026)

  Changed paths:
    M sys/amd64/linux/linux_pkru.c

  Log Message:
  -----------
  linux: prevalidate pkey_mprotect ranges

Check fixed-boundary VM entries before changing ordinary page protections so a predictable PKRU tagging rejection cannot leave a partial update. Keep the validation in amd64_pkru_update to cover concurrent map changes.

AI-Assisted-by: Codex GPT-5
Signed-off-by: Lucas Holt <luke at foolishgames.com>



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications


More information about the Midnightbsd-cvs mailing list