Skip to content
Snippets Groups Projects
Commit 8aaff151 authored by Ilya Dryomov's avatar Ilya Dryomov
Browse files

ceph: avoid a use-after-free in ceph_destroy_options()


syzbot reported a use-after-free in ceph_destroy_options(), called from
ceph_mount().  The problem was that create_fs_client() consumed the opt
pointer on some errors, but not on all of them.  Make sure it always
consumes both libceph and ceph options.

Reported-by: default avatar <syzbot+8ab6f1042021b4eed062@syzkaller.appspotmail.com>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
Reviewed-by: default avatar"Yan, Zheng" <zyan@redhat.com>
parent 57361846
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment