fs: dlm: invalid buffer access in lookup error
authorAlexander Aring <aahringo@redhat.com>
Fri, 11 Jun 2021 16:55:41 +0000 (12:55 -0400)
committerDavid Teigland <teigland@redhat.com>
Fri, 11 Jun 2021 17:44:47 +0000 (12:44 -0500)
commit957adb68b3f7df8421a05f1647d3027f2acad310
treeeca165f6304528362edeaac846e4b01511ad3f24
parentf5fe8d5107ad68279528f39ceae64ab0d68deb3c
fs: dlm: invalid buffer access in lookup error

This patch will evaluate the message length if a dlm opts header can fit
in before accessing it if a node lookup fails. The invalid sequence
error means that the version detection failed and an unexpected message
arrived. For debugging such situation the type of arrived message is
important to know.

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