]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4e2044f4e0e35ef9928434c0119ec78f64bf3b77
treeeca165f6304528362edeaac846e4b01511ad3f24
parentbf6cb3eb3149d97c02a4550be3e2f8f2004f1d5a
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