HomeFreeBSD

netgraph/ng_tag: permit variable length data

Description

netgraph/ng_tag: permit variable length data

ng_tag(4) operate on arbitrary data of mbuf_tags(9). Those structures
are padded to the next multiple of the alignment by the compiler.
Hence a valid argument has be at most as long as the data received.

PR: 241462
Reviewed by: kp
Approved by: philip (mentor)
Differential Revision: https://reviews.freebsd.org/D22140

(cherry picked from commit 7c7c231c14246a709270bf3f3a4593208e84d01a)

Details

Provenance
donnerAuthored on Jan 2 2021, 1:58 PM
Reviewer
kp
Differential Revision
D22140: netgraph/ng_tag: Variable length data can not be set for all length
Parents
rG918b98a06129: MFC 064009e79462:
Branches
Unknown
Tags
Unknown