]> 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)
commita8d7dc7a93aa6585c0b5f0a090824c383096d1fe
treeeca165f6304528362edeaac846e4b01511ad3f24
parent2a5e381dc596cafc90cfac415bad250ea8857c12
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