[Virtio-fs] [PATCH 1/2] fuse: virtiofs: Fix nullptr dereference
Stefan Hajnoczi
stefanha at redhat.com
Mon Apr 27 14:38:50 UTC 2020
On Fri, Apr 24, 2020 at 03:25:39PM +0900, Chirantan Ekbote wrote:
> virtiofs device implementations are allowed to provide more than one
> request queue. In this case `fsvq->fud` would not be initialized,
> leading to a nullptr dereference later during driver initialization.
>
> Make sure that `fsvq->fud` is initialized for all request queues even if
> the driver doesn't use them.
>
> Signed-off-by: Chirantan Ekbote <chirantan at chromium.org>
> ---
> fs/fuse/virtio_fs.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefanha at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virtio-fs/attachments/20200427/63dafe10/attachment.sig>
More information about the Virtio-fs
mailing list