fs: dlm: check on minimum msglen size
authorAlexander Aring <aahringo@redhat.com>
Mon, 1 Mar 2021 22:05:17 +0000 (17:05 -0500)
committerDavid Teigland <teigland@redhat.com>
Tue, 9 Mar 2021 14:56:42 +0000 (08:56 -0600)
commit710176e8363f269c6ecd73d203973b31ace119d3
tree986e3d5ea931cd881c7c3c9c50f4c1788b87d01d
parentf0747ebf48f362ebfc93bc383d6be2b8c8f05b5a
fs: dlm: check on minimum msglen size

This patch adds an additional check for minimum dlm header size which is
an invalid dlm message and signals a broken stream. A msglen field cannot
be less than the dlm header size because the field is inclusive header
lengths.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/midcomms.c