diff options
| author | Dan Carpenter <dan.carpenter@linaro.org> | 2025-03-07 11:41:48 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-03-28 22:04:55 +0100 |
| commit | 57fae0c505f49bb1e3d5660cd2cc49697ed85f7c (patch) | |
| tree | 503ac7de573cc882e1c86bdddcae279e5a6837bf /arch | |
| parent | 21e3fdf3146f9c63888d6bfabbd553434a5fb93f (diff) | |
| download | linux-57fae0c505f49bb1e3d5660cd2cc49697ed85f7c.tar.gz linux-57fae0c505f49bb1e3d5660cd2cc49697ed85f7c.tar.bz2 linux-57fae0c505f49bb1e3d5660cd2cc49697ed85f7c.zip | |
accel/qaic: Fix integer overflow in qaic_validate_req()
commit 67d15c7aa0864dfd82325c7e7e7d8548b5224c7b 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: ff13be830333 ("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>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions
