WSL2-Linux-Kernel/drivers/crypto/qat/qat_common
Adam Guerin e48767c177 crypto: qat - reduce size of mapped region
Restrict size of field to what is required by the operation.

This issue was detected by smatch:

    drivers/crypto/qat/qat_common/qat_asym_algs.c:328 qat_dh_compute_value() error: dma_map_single_attrs() '&qat_req->in.dh.in.b' too small (8 vs 64)

Signed-off-by: Adam Guerin <adam.guerin@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2021-01-14 17:10:26 +11:00
..
Makefile crypto: qat - add qat_4xxx driver 2020-11-20 14:45:34 +11:00
adf_accel_devices.h crypto: qat - configure arbiter mapping based on engines enabled 2021-01-14 17:10:26 +11:00
adf_accel_engine.c crypto: qat - target fw images to specific AEs 2020-11-20 14:45:34 +11:00
adf_admin.c crypto: qat - remove cast for mailbox CSR 2020-11-13 20:38:43 +11:00
adf_aer.c crypto: qat - drop input parameter from adf_enable_aer() 2020-10-08 16:38:06 +11:00
adf_cfg.c crypto: qat - change return value in adf_cfg_key_val_get() 2020-10-30 17:34:59 +11:00
adf_cfg.h crypto: qat - convert to SPDX License Identifiers 2020-06-18 17:19:44 +10:00
adf_cfg_common.h crypto: qat - add qat_4xxx driver 2020-11-20 14:45:34 +11:00
adf_cfg_strings.h crypto: qat - allow for instances in different banks 2020-10-30 17:35:01 +11:00
adf_cfg_user.h crypto: qat - replace user types with kernel ABI __u types 2020-06-18 17:26:42 +10:00
adf_common_drv.h crypto: qat - allow to target specific AEs 2020-11-13 20:38:54 +11:00
adf_ctl_drv.c crypto: remove cipher routines from public crypto API 2021-01-03 08:41:35 +11:00
adf_dev_mgr.c crypto: qat - fix excluded_middle.cocci warnings 2020-11-27 17:13:41 +11:00
adf_gen2_hw_data.c crypto: qat - abstract writes to arbiter enable 2020-10-30 17:34:56 +11:00
adf_gen2_hw_data.h crypto: qat - abstract writes to arbiter enable 2020-10-30 17:34:56 +11:00
adf_gen4_hw_data.c crypto: qat - add qat_4xxx driver 2020-11-20 14:45:34 +11:00
adf_gen4_hw_data.h crypto: qat - add qat_4xxx driver 2020-11-20 14:45:34 +11:00
adf_hw_arbiter.c crypto: qat - configure arbiter mapping based on engines enabled 2021-01-14 17:10:26 +11:00
adf_init.c crypto: qat - convert to SPDX License Identifiers 2020-06-18 17:19:44 +10:00
adf_isr.c crypto: qat - add hook to initialize vector routing table 2020-11-20 14:45:34 +11:00
adf_pf2vf_msg.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
adf_pf2vf_msg.h crypto: qat - convert to SPDX License Identifiers 2020-06-18 17:19:44 +10:00
adf_sriov.c crypto: qat - replace pci with PCI in comments 2020-11-13 20:38:44 +11:00
adf_transport.c crypto: qat - fix potential spectre issue 2021-01-14 17:10:26 +11:00
adf_transport.h crypto: qat - replace user types with kernel u types 2020-06-18 17:26:41 +10:00
adf_transport_access_macros.h crypto: qat - remove hardcoded bank irq clear flag mask 2020-10-30 17:34:57 +11:00
adf_transport_debug.c crypto: qat - change format string and cast ring size 2021-01-14 17:10:26 +11:00
adf_transport_internal.h crypto: qat - num_rings_per_bank is device dependent 2020-10-30 17:34:46 +11:00
adf_vf2pf_msg.c crypto: qat - convert to SPDX License Identifiers 2020-06-18 17:19:44 +10:00
adf_vf_isr.c crypto: qat - split transport CSR access logic 2020-10-30 17:34:47 +11:00
icp_qat_fw.h crypto: qat - replace user types with kernel ABI __u types 2020-06-18 17:26:42 +10:00
icp_qat_fw_init_admin.h crypto: qat - rename ME in AE 2020-10-30 17:34:49 +11:00
icp_qat_fw_la.h crypto: qat - add AES-CTR support for QAT GEN4 devices 2020-12-11 21:54:15 +11:00
icp_qat_fw_loader_handle.h crypto: qat - add support for broadcasting mode 2020-11-13 20:38:55 +11:00
icp_qat_fw_pke.h crypto: qat - replace user types with kernel ABI __u types 2020-06-18 17:26:42 +10:00
icp_qat_hal.h crypto: qat - add gen4 firmware loader 2020-11-13 20:38:55 +11:00
icp_qat_hw.h crypto: qat - add AES-CTR support for QAT GEN4 devices 2020-12-11 21:54:15 +11:00
icp_qat_uclo.h crypto: qat - add gen4 firmware loader 2020-11-13 20:38:55 +11:00
qat_algs.c crypto: remove cipher routines from public crypto API 2021-01-03 08:41:35 +11:00
qat_asym_algs.c crypto: qat - reduce size of mapped region 2021-01-14 17:10:26 +11:00
qat_crypto.c crypto: qat - allow for instances in different banks 2020-10-30 17:35:01 +11:00
qat_crypto.h crypto: qat - register crypto instances based on capability 2020-10-30 17:34:54 +11:00
qat_hal.c crypto: qat - add gen4 firmware loader 2020-11-13 20:38:55 +11:00
qat_uclo.c crypto: qat - add gen4 firmware loader 2020-11-13 20:38:55 +11:00