commit | f831c6c95d02d667b450b579bbfa781e96661120 | [log] [tgz] |
---|---|---|
author | Xiubo Li <xiubli@redhat.com> | Thu Jul 23 15:32:25 2020 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Aug 26 10:31:01 2020 +0200 |
tree | b0d2b5d461a8a04cf06fb78cc34d17e35bc24d42 | |
parent | 96de3dbf27ae663e0c276ff8ac2dfed58d87a9ab [diff] |
ceph: fix use-after-free for fsc->mdsc [ Upstream commit a7caa88f8b72c136f9a401f498471b8a8e35370d ] If the ceph_mdsc_init() fails, it will free the mdsc already. Reported-by: syzbot+b57f46d8d6ea51960b8c@syzkaller.appspotmail.com Signed-off-by: Xiubo Li <xiubli@redhat.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Sasha Levin <sashal@kernel.org>