Spdk/module
Krzysztof Karas e64728f092 bdev/crypto: make sure that vbdev_crypto_destruct() returns 1
Make vbdev_crypto_destruct() return 1 to signal that program
execution should wait for spdk_bdev_destruct_done() function,
which is added inside _device_unregister_cb().

This change is related to _vdev_dev_get() not being able
to find the devices, when called from _cryptodev_sym_session_free(),
as it uses device driver name, which might already be freed.
This occurs only during bdev module finish, when crypto bdevs
are being unregistered and vbdev_crypto_finish() proceeds to
call bdev name deletion without waiting for the unregister
callbacks to complete, which ultimately results in reading
freed pointers.

This only happens when code execution takes path for DPDK 22.11+.

Change-Id: Id9a43d07c90aef7a82867383fd77354ac521a3e7
Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16290
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2023-01-19 10:28:52 +00:00
..
accel accel/dpdk_cryptodev: Fix io_dev unregister 2023-01-19 08:25:48 +00:00
bdev bdev/crypto: make sure that vbdev_crypto_destruct() returns 1 2023-01-19 10:28:52 +00:00
blob blob: Use bdev copy command in CoW flow if supported 2022-12-08 12:54:54 +00:00
blobfs build: compile API functions with missing deps 2022-11-18 08:40:05 +00:00
env_dpdk update Intel copyright notices 2022-11-10 08:28:53 +00:00
event accel: add iobuf channel to accel channel 2023-01-09 12:37:37 +00:00
scheduler update Intel copyright notices 2022-11-10 08:28:53 +00:00
sock sock/ssl: call SSL_shutdown() prior to closing fd 2022-12-15 08:37:49 +00:00
vfu_device module/vfu_virtio: add IO path debug flag 2023-01-16 08:22:08 +00:00
Makefile update Intel copyright notices 2022-11-10 08:28:53 +00:00