Page MenuHomeFreeBSD

execve: Add guard pages around execve KVA buffers
Needs ReviewPublic

Authored by markj on Wed, Apr 29, 3:07 PM.

Details

Reviewers
brooks
alc
kib
Summary

This helps ensure that overflows will trigger a panic instead of
silently corrupting adjacent buffers, as happened in SA-26:13.exec.

Extend kmap_alloc_wait() to support allocation of guard pages on both
sides of a KVA allocation. Modify the exec_map setup accordingly.

Diff Detail

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