]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
libceph: avoid a use-after-free during map check
authorIlya Dryomov <idryomov@gmail.com>
Tue, 22 May 2018 14:26:51 +0000 (16:26 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 4 Jun 2018 18:45:59 +0000 (20:45 +0200)
commit6001567c14eb8e93f8bceb35fc02158a3e1f20f8
treef3eb8665a17131852e844453c281750cffcdc56c
parent29e878201ee635940ba018bce51f4ee0f0e47a5b
libceph: avoid a use-after-free during map check

Sending map check after complete_request() was called is not only
useless, but can lead to a use-after-free as req->r_kref decrement in
__complete_request() races with map check code.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
net/ceph/osd_client.c