HomeFreeBSD

CTL: Add length validation for incoming HA messages.

Description

CTL: Add length validation for incoming HA messages.

This should fix uninitialized memory reads when working with broken
HA peer, like one fixed in 1a8d8a3a909. Instead print error message
and kill the HA link.

MFC after: 3 days
Sponsored by: iXsystems, Inc.

Details

Provenance
mavAuthored on Feb 24 2022, 9:17 PM
Parents
rGe8553be9bcfc: fusefs: fix a cached attributes bug during directory rename
Branches
Unknown
Tags
Unknown