mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-25 02:32:08 +03:00
c7726fd7d34d352dbe69a18f3ae6306fc335d625
1. In Linux, MAX_NVDLA_*FENCES_PER_TASK is not same as that of MAX_NVDLA_EMU_*FENCES_PER_TASK. So there is an issue of buffer overflow during copy_from_user. 2. This commit fixes the issue by making use of EMU limits as the upper bound. Bug 3613311 Change-Id: Ibfcc7e871aea0b44576a690c60491777a4752003 Signed-off-by: Arvind M <am@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2758528 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Gunjan Mehta <gmehta@nvidia.com> Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com> Reviewed-by: Praveen K <kpraveen@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Description
No description provided