]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix possible NULL pointer dereference for req->r_session
authorXiubo Li <xiubli@redhat.com>
Thu, 14 Apr 2022 01:07:21 +0000 (09:07 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 25 Apr 2022 08:45:50 +0000 (10:45 +0200)
commit33e1cea26d0a22c4385f40d6d7de339db21d2499
tree41bd700e9a1187773a5c10d2377b46fb4aca824c
parentfc9982fb4b1b4507400806792049da3ffd244fcd
ceph: fix possible NULL pointer dereference for req->r_session

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>
fs/ceph/caps.c