ceph: fix possible NULL pointer dereference for req->r_session
stable inclusion from stable-v5.10.157 commit 69263bf781bef3841f22815b834a5243474aa6d4 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I7MU59 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=69263bf781bef3841f22815b834a5243474aa6d4 -------------------------------- [ Upstream commit 7acae618 ] The request will be inserted into the ci->i_unsafe_dirops before assigning the req->r_session, so it's possible that we will hit NULL pointer dereference bug here. Cc: stable@vger.kernel.org URL: https://tracker.ceph.com/issues/55327 Signed-off-by:Xiubo Li <xiubli@redhat.com> Reviewed-by:
Jeff Layton <jlayton@kernel.org> Tested-by:
Aaron Tomlin <atomlin@redhat.com> Signed-off-by:
Ilya Dryomov <idryomov@gmail.com> Stable-dep-of: 5bd76b8d ("ceph: fix NULL pointer dereference for req->r_session") Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment