linux/drivers/accel/qaic
Dan Carpenter b362fc904d accel/qaic: Fix integer overflow in qaic_validate_req()
commit 67d15c7aa0 upstream.

These are u64 variables that come from the user via
qaic_attach_slice_bo_ioctl().  Use check_add_overflow() to ensure that
the math doesn't have an integer wrapping bug.

Cc: stable@vger.kernel.org
Fixes: ff13be8303 ("accel/qaic: Add datapath")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Signed-off-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/176388fa-40fe-4cb4-9aeb-2c91c22130bd@stanley.mountain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-03-28 22:03:29 +01:00
..
Kconfig accel/qaic: Add qaic driver to the build system 2023-04-06 08:23:03 +02:00
Makefile accel/qaic: Add Sahara implementation for firmware loading 2024-04-12 09:49:31 -06:00
mhi_controller.c accel/qaic: Constify aic100_channels 2024-02-23 09:06:50 -07:00
mhi_controller.h accel/qaic: Enable 1 MSI fallback mode 2023-10-27 09:39:39 -06:00
qaic.h accel/qaic: Add fifo queued debugfs 2024-04-05 09:47:56 -06:00
qaic_control.c accel/qaic: Fix the for loop used to walk SG table 2024-10-12 14:55:55 -06:00
qaic_data.c accel/qaic: Fix integer overflow in qaic_validate_req() 2025-03-28 22:03:29 +01:00
qaic_debugfs.c accel/qaic: Add fifo queued debugfs 2024-04-05 09:47:56 -06:00
qaic_debugfs.h accel/qaic: mark debugfs stub functions as static inline 2024-04-12 09:53:28 -06:00
qaic_drv.c accel/qaic: Add AIC080 support 2024-12-14 20:03:46 +01:00
qaic_timesync.c accel/qaic: Support MHI QAIC_TIMESYNC channel 2023-10-27 10:06:34 -06:00
qaic_timesync.h accel/qaic: Add support for periodic timesync 2023-10-27 10:05:42 -06:00
sahara.c accel/qaic: Add Sahara implementation for firmware loading 2024-04-12 09:49:31 -06:00
sahara.h accel/qaic: Add Sahara implementation for firmware loading 2024-04-12 09:49:31 -06:00