mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
For some code that is tested using public APIs it's not safe for the parent thread to continue while the child thread is running. Fault injection per thread pointer points to the same container for both parent thread as well as the created one. So, there is chance of a race in fault injection functionality. Serialize the run so that race can be mitigated. Caller of nvgpu_thread_create() API should ensure that the created thread is stopped using some fault injection or otherwise. Bug 200580790 Change-Id: I334c07c4bac6e43d67de9bfc581dad021e421acd Signed-off-by: shashank singh <shashsingh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2268133 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Rajesh Devaraj <rdevaraj@nvidia.com> Tested-by: Rajesh Devaraj <rdevaraj@nvidia.com> Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8.5 KiB
8.5 KiB