HomeFreeBSD

kern: Introduce RLIMIT_VMM

Description

kern: Introduce RLIMIT_VMM

This change introduces a new per-UID limit for controlling the
number of vmm instances, in anticipation of unprivileged bhyve.
This allows ut to limit the amount of kernel memory allocated
by the vmm driver and prevent potential memory exhaustion attacks.

Differential Revision: https://reviews.freebsd.org/D53728
Reviewed by: markj, olce, corvink
MFC after: 3 months
Sponsored by: The FreeBSD Foundation
Sponsored by: Klara, Inc.

Details

Provenance
bnovkovAuthored on Nov 7 2025, 1:11 PM
Reviewer
markj
Differential Revision
D53728: kern: Introduce RLIMIT_VMM
Parents
rG2812c917e040: Cirrus-CI: Bump to FreeBSD 15.0-RELEASE
Branches
Unknown
Tags
Unknown