]> Git Repo - linux.git/commit - fs/ceph/caps.c
ceph: fix possible NULL pointer dereference for req->r_session
authorXiubo Li <[email protected]>
Thu, 14 Apr 2022 01:07:21 +0000 (09:07 +0800)
committerIlya Dryomov <[email protected]>
Mon, 25 Apr 2022 08:45:50 +0000 (10:45 +0200)
commit7acae6183cf37c48b8da48bbbdb78820fb3913f3
tree41bd700e9a1187773a5c10d2377b46fb4aca824c
parent396ea1681892211dd3fbc1a58bfc2c2c971433e3
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: [email protected]
URL: https://tracker.ceph.com/issues/55327
Signed-off-by: Xiubo Li <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Tested-by: Aaron Tomlin <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
fs/ceph/caps.c
This page took 0.060173 seconds and 4 git commands to generate.