Commit f831c6c
ceph: fix use-after-free for fsc->mdsc
[ Upstream commit a7caa88 ]
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>1 parent 96de3db commit f831c6c
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3682 | 3682 | | |
3683 | 3683 | | |
3684 | 3684 | | |
3685 | | - | |
3686 | 3685 | | |
3687 | 3686 | | |
3688 | 3687 | | |
| |||
3723 | 3722 | | |
3724 | 3723 | | |
3725 | 3724 | | |
| 3725 | + | |
| 3726 | + | |
3726 | 3727 | | |
3727 | 3728 | | |
3728 | 3729 | | |
| |||
0 commit comments