]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
CTL: Add length validation for incoming HA messages.
authorAlexander Motin <mav@FreeBSD.org>
Thu, 24 Feb 2022 21:17:34 +0000 (16:17 -0500)
committerAlexander Motin <mav@FreeBSD.org>
Thu, 24 Feb 2022 21:24:43 +0000 (16:24 -0500)
commit530d274c15e5b3f69088b4b53f8dc5b2b849a916
tree1394bb88f21730f2f130c32348e0edd19dac01f6
parente8553be9bcfc2c0d78e9f379bd166dc0a9cae719
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.
sys/cam/ctl/ctl.c