linux_dsm_epyc7002/drivers/crypto/qat/qat_common
Giovanni Cabiddu 7924b9dcdc crypto: qat - use proper type for vf_mask
[ Upstream commit 462354d986b6a89c6449b85f17aaacf44e455216 ]

Replace vf_mask type with unsigned long to avoid a stack-out-of-bound.

This is to fix the following warning reported by KASAN the first time
adf_msix_isr_ae() gets called.

    [  692.091987] BUG: KASAN: stack-out-of-bounds in find_first_bit+0x28/0x50
    [  692.092017] Read of size 8 at addr ffff88afdf789e60 by task swapper/32/0
    [  692.092076] Call Trace:
    [  692.092089]  <IRQ>
    [  692.092101]  dump_stack+0x9c/0xcf
    [  692.092132]  print_address_description.constprop.0+0x18/0x130
    [  692.092164]  ? find_first_bit+0x28/0x50
    [  692.092185]  kasan_report.cold+0x7f/0x111
    [  692.092213]  ? static_obj+0x10/0x80
    [  692.092234]  ? find_first_bit+0x28/0x50
    [  692.092262]  find_first_bit+0x28/0x50
    [  692.092288]  adf_msix_isr_ae+0x16e/0x230 [intel_qat]

Fixes: ed8ccaef52 ("crypto: qat - Add support for SRIOV")
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Marco Chiappero <marco.chiappero@intel.com>
Reviewed-by: Fiona Trahe <fiona.trahe@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-07-05 19:10:20 +02:00
..
adf_accel_devices.h crypto: qat - replace device ids defines 2020-09-18 17:20:10 +10:00
adf_accel_engine.c crypto: qat - replace user types with kernel u types 2020-06-18 17:26:41 +10:00
adf_admin.c crypto: qat - add delay before polling mailbox 2020-08-21 14:43:50 +10:00
adf_aer.c crypto: qat - drop input parameter from adf_enable_aer() 2020-10-08 16:38:06 +11:00
adf_cfg_common.h crypto: qat - replace user types with kernel ABI __u types 2020-06-18 17:26:42 +10:00
adf_cfg_strings.h crypto: qat - convert to SPDX License Identifiers 2020-06-18 17:19:44 +10:00
adf_cfg_user.h crypto: qat - replace user types with kernel ABI __u types 2020-06-18 17:26:42 +10:00
adf_cfg.c crypto: qat - convert to use DEFINE_SEQ_ATTRIBUTE macro 2020-09-25 17:48:13 +10:00
adf_cfg.h crypto: qat - convert to SPDX License Identifiers 2020-06-18 17:19:44 +10:00
adf_common_drv.h crypto: qat - fix naming for init/shutdown VF to PF notifications 2024-07-05 19:09:43 +02:00
adf_ctl_drv.c crypto: qat - remove unnecessary mutex_init() 2020-09-25 17:48:14 +10:00
adf_dev_mgr.c crypto: qat - fix function parameters descriptions 2020-10-08 16:38:06 +11:00
adf_hw_arbiter.c crypto: qat - convert to SPDX License Identifiers 2020-06-18 17:19:44 +10:00
adf_init.c crypto: qat - do not ignore errors from enable_vf2pf_comms() 2024-07-05 19:09:43 +02:00
adf_isr.c crypto: qat - use proper type for vf_mask 2024-07-05 19:10:20 +02:00
adf_pf2vf_msg.c crypto: qat - do not export adf_iov_putmsg() 2024-07-05 19:09:44 +02: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 - fix function parameters descriptions 2020-10-08 16:38:06 +11:00
adf_transport_access_macros.h crypto: qat - replace user types with kernel u types 2020-06-18 17:26:41 +10:00
adf_transport_debug.c crypto: qat - convert to use DEFINE_SEQ_ATTRIBUTE macro 2020-09-25 17:48:13 +10:00
adf_transport_internal.h crypto: qat - remove packed attribute in etr structs 2020-06-18 17:26:42 +10:00
adf_transport.c crypto: qat - Fix a double free in adf_create_ring 2021-05-14 09:50:17 +02:00
adf_transport.h crypto: qat - replace user types with kernel u types 2020-06-18 17:26:41 +10:00
adf_vf2pf_msg.c crypto: qat - fix naming for init/shutdown VF to PF notifications 2024-07-05 19:09:43 +02:00
adf_vf_isr.c crypto: qat - handle both source of interrupt in VF ISR 2024-07-05 19:09:43 +02:00
icp_qat_fw_init_admin.h crypto: qat - update fw init admin msg 2020-06-18 17:26:43 +10:00
icp_qat_fw_la.h crypto: qat - replace user types with kernel ABI __u types 2020-06-18 17:26:42 +10:00
icp_qat_fw_loader_handle.h crypto: qat - convert to SPDX License Identifiers 2020-06-18 17:19:44 +10: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_fw.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 - convert to SPDX License Identifiers 2020-06-18 17:19:44 +10:00
icp_qat_hw.h crypto: qat - replace user types with kernel ABI __u types 2020-06-18 17:26:42 +10:00
icp_qat_uclo.h crypto: qat - replace user types with kernel u types 2020-06-18 17:26:41 +10:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qat_algs.c crypto: qat - fix unmap invalid dma address 2021-05-11 14:47:16 +02:00
qat_asym_algs.c crypto: qat - replace user types with kernel u types 2020-06-18 17:26:41 +10:00
qat_crypto.c crypto: qat - convert to SPDX License Identifiers 2020-06-18 17:19:44 +10:00
qat_crypto.h crypto: qat - convert to SPDX License Identifiers 2020-06-18 17:19:44 +10:00
qat_hal.c crypto: qat - check return code of qat_hal_rd_rel_reg() 2021-07-14 16:55:51 +02:00
qat_uclo.c crypto: qat - remove unused macro in FW loader 2021-07-14 16:55:51 +02:00