]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ceph: fix NULL pointer dereference for req->r_session
authorXiubo Li <xiubli@redhat.com>
Thu, 10 Nov 2022 13:01:59 +0000 (21:01 +0800)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Dec 2022 12:59:33 +0000 (13:59 +0100)
commit125c2ec90b8015666849914dbe2bcced40cf7dc1
tree139efc0ad0a29100e5457f9504e773ebfdb278d2
parent1971a3401f5ece4332e7a01231188b1f3d57ec04
ceph: fix NULL pointer dereference for req->r_session

[ Upstream commit 5bd76b8de5b74fa941a6eafee87728a0fe072267 ]

The request's r_session maybe changed when it was forwarded or
resent. Both the forwarding and resending cases the requests will
be protected by the mdsc->mutex.

Cc: stable@vger.kernel.org
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2137955
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 855485d31e2ac011c2ce7031674c8b5c73321cc4)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
fs/ceph/caps.c