HomeFreeBSD

Impose a limit on the number of GEOM_CTL arguments.

Description

Impose a limit on the number of GEOM_CTL arguments.

Otherwise a privileged user can trigger a memory allocation of
unbounded size, or an integer overflow in the subsequent
geom_alloc_copyin() call, leading to out-of-bounds accesses.

Hard-code a large limit to circumvent this problem.

admbug: 854
Reported by: Anonymous of the Shellphish Grill Team
Reviewed by: ae
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D19251

Details

Provenance
markjAuthored on
Reviewer
ae
Differential Revision
D19251: Impose a limit on GEOM_CTL argument lists.
Parents
rS344304: Remove drm from LINT kernels
Branches
Unknown
Tags
Unknown