]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit38e0b7f55906a4f8208b0b07f2df22743810240a
treef0426065e82c22e2d5c2f39966f3a68125156554
parent0eafd2e43b110122a47580f6bf8f532344358fad
fs: dlm: use packet in dlm_mhandle

[ Upstream commit 20e8ad8a46be565e7fff262b0ca1988faccdda3d ]

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: caf2799e0b84 ("fs: dlm: fix use after free in midcomms commit")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/dlm/midcomms.c