Commit a7caa88
ceph: fix use-after-free for fsc->mdsc
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>1 parent 8e298de commit a7caa88
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4453 | 4453 | | |
4454 | 4454 | | |
4455 | 4455 | | |
4456 | | - | |
4457 | 4456 | | |
4458 | 4457 | | |
4459 | 4458 | | |
| |||
4508 | 4507 | | |
4509 | 4508 | | |
4510 | 4509 | | |
| 4510 | + | |
| 4511 | + | |
4511 | 4512 | | |
4512 | 4513 | | |
4513 | 4514 | | |
| |||
0 commit comments