HomeFreeBSD

socket_msg_trunc: allocate a large enough buffer

Description

socket_msg_trunc: allocate a large enough buffer

Allocate 9000 bytes to match the largest requsted size. Add a check to
prevent the list of sizes and buffer size from getting out of sync
again.

Reviewed by: markj
Found with: CheriBSD
Differential Revision: https://reviews.freebsd.org/D43340

Details

Provenance
brooksAuthored on Jan 9 2024, 7:35 PM
Reviewer
markj
Differential Revision
D43340: socket_msg_trunc: allocate a large enough buffer
Parents
rGf221d35be7a5: igb(4): Remove disconnected SYSCTL
Branches
Unknown
Tags
Unknown