qemu/backends
zhenwei pi 15b11a1da6 cryptodev: Handle unexpected request to avoid crash
Generally guest side should discover which services the device is
able to offer, then do requests on device.

However it's also possible to break this rule in a guest. Handle
unexpected request here to avoid NULL pointer dereference.

Fixes: e7a775fd ('cryptodev: Account statistics')
Cc: Gonglei <arei.gonglei@huawei.com>
Cc: Mauro Matteo Cascella <mcascell@redhat.com>
Cc: Xiao Lei <nop.leixiao@gmail.com>
Cc: Yongkang Jia <kangel@zju.edu.cn>
Reported-by: Yiming Tao <taoym@zju.edu.cn>
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Message-Id: <20230803024314.29962-3-pizhenwei@bytedance.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2023-08-03 16:16:17 -04:00
..
tpm meson: Replace softmmu_ss -> system_ss 2023-06-20 10:01:30 +02:00
confidential-guest-support.c
cryptodev-builtin.c
cryptodev-hmp-cmds.c
cryptodev-lkcf.c
cryptodev-vhost-user.c cryptodev-vhost-user: add asymmetric crypto support 2023-06-23 02:54:44 -04:00
cryptodev-vhost.c
cryptodev.c cryptodev: Handle unexpected request to avoid crash 2023-08-03 16:16:17 -04:00
dbus-vmstate.c
dbus-vmstate1.xml
hostmem-epc.c
hostmem-file.c exec/memory: Introduce RAM_NAMED_FILE flag 2023-06-13 11:28:58 +02:00
hostmem-memfd.c
hostmem-ram.c
hostmem.c
Kconfig
meson.build meson: Replace softmmu_ss -> system_ss 2023-06-20 10:01:30 +02:00
rng-builtin.c
rng-egd.c
rng-random.c
rng.c
trace-events
trace.h
vhost-user.c