Arvind M f8f9637506 nvdla: kmd: check fence limit in emu submit
[1] With no bound check on prefences and postfences, there is a
    possibility of copying more data from the user than intended.
    This results in buffer overflow and leads to security threats.
[2] This commit adds the fence check during emu submission and
    prevents the cause of buffer overflow.

Bug 3613311

Change-Id: Ifdba184b34e54be0146f080e5383b8430a0b1bcd
Signed-off-by: Arvind M <am@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2723823
Reviewed-by: Martin Radev <mradev@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com>
Reviewed-by: Gunjan Mehta <gmehta@nvidia.com>
Reviewed-by: Praveen K <kpraveen@nvidia.com>
Tested-by: Martin Radev <mradev@nvidia.com>
GVS: Gerrit_Virtual_Submit
2023-04-14 11:47:58 +00:00
2022-09-10 23:43:40 -07:00
2022-12-07 23:57:14 -08:00
2023-04-07 00:12:26 -07:00
Description
No description provided
34 MiB