fs: dlm: use packet in dlm_mhandle
authorAlexander Aring <aahringo@redhat.com>
Thu, 27 Oct 2022 20:45:14 +0000 (16:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 07:50:18 +0000 (08:50 +0100)
commit8885e12aa107f1aa825e570cdcf8e53f9882d488
treef0426065e82c22e2d5c2f39966f3a68125156554
parentcb2849caad029fde6142de956db6743644c5b660
fs: dlm: use packet in dlm_mhandle

[ Upstream commit 5b787667e87a373a2f8f70e6be2b5d99c408462f ]

To allow more than just dereferencing the inner header we directly point
to the inner dlm packet which allows us to dereference the header, rcom
or message structure.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Stable-dep-of: 724b6bab0d75 ("fs: dlm: fix use after free in midcomms commit")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/dlm/midcomms.c