Kishan Palankar
8a0a534570
gpu: nvgpu: Guard profiler_objects list operations with a lock
...
Both profiler and debugger device nodes access and update the list,
g->profiler_objects. List operations were currently not guarded by
lock thus leading to synchronisation issues. Stress-ng test attempts
to trigger repeated random open close sessions on all the device nodes
exposed by gpu. This results in kernel panic at random stages of test.
Failure signature - Profiler node receives a release call and as part
of it, nvgpu_profiler_free attempts to delete the prof_obj_entry and
free the prof memory. Simulataneously debugger node also receives a
release call and as part of gk20a_dbg_gpu_dev_release, nvgpu attempts
to access g->profiler_objects to check for any profiling sessions
associated with debugger node. There is a race to access the list which
results in kernel panic for address 0x8 because nvgpu tries to access
prof_obj->session_id which is at offset 0x8.
As part of this change, g->profiler_objects list access/update is
guarded with a mutex lock.
Bug 4858627
Change-Id: I1e2cf8d27d195bbc9c012cf511029de9eaadb038
Signed-off-by: Kishan Palankar <kpalankar@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/3239897
(cherry picked from commit 2eabcdb8a4 )
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/3262771
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Amulya Yarlagadda <ayarlagadda@nvidia.com >
Tested-by: Brad Griffis <bgriffis@nvidia.com >
Reviewed-by: Brad Griffis <bgriffis@nvidia.com >
2024-12-17 15:54:04 -08:00
..
2022-08-17 19:22:17 -07:00
2023-12-15 14:09:44 -08:00
2020-12-15 14:10:29 -06:00
2020-12-15 14:10:29 -06:00
2020-12-15 14:10:29 -06:00
2020-12-15 14:10:29 -06:00
2020-12-15 14:10:29 -06:00
2023-04-13 12:21:46 -07:00
2020-12-15 14:13:28 -06:00
2023-04-06 10:12:48 -07:00
2023-12-15 14:09:44 -08:00
2021-11-25 08:16:31 -08:00
2021-11-25 08:16:31 -08:00
2018-06-15 17:47:31 -07:00
2023-06-13 00:19:33 -07:00
2019-01-31 12:04:10 -08:00
2022-02-09 20:50:21 -08:00
2022-02-09 20:50:21 -08:00
2022-02-09 20:50:21 -08:00
2022-02-09 20:50:21 -08:00
2022-02-09 20:50:21 -08:00
2022-02-09 20:50:21 -08:00
2022-02-09 20:50:21 -08:00
2022-02-09 20:50:21 -08:00
2023-12-15 14:09:44 -08:00
2018-09-05 04:51:40 -07:00
2023-12-15 14:09:44 -08:00
2019-07-26 04:07:01 -07:00
2023-12-15 14:09:44 -08:00
2019-06-11 09:46:24 -07:00
2022-02-09 20:50:21 -08:00
2022-02-09 20:50:21 -08:00
2024-07-10 07:24:02 -07:00
2022-02-09 20:50:21 -08:00
2023-12-18 09:11:58 -08:00
2021-09-10 16:02:43 -07:00
2022-02-11 18:27:39 -08:00
2022-02-09 20:50:21 -08:00
2022-02-09 20:50:21 -08:00
2022-02-09 20:50:21 -08:00
2023-12-18 09:11:58 -08:00
2022-02-09 20:50:21 -08:00
2023-12-15 14:09:44 -08:00
2023-12-15 14:09:44 -08:00
2022-02-09 20:50:21 -08:00
2022-02-09 20:50:21 -08:00
2023-12-15 14:09:44 -08:00
2019-02-11 20:55:07 -08:00
2022-02-09 20:50:21 -08:00
2022-02-09 20:50:21 -08:00
2023-12-15 14:09:44 -08:00
2019-06-13 23:05:43 -07:00
2023-12-15 14:09:44 -08:00
2019-02-01 09:45:57 -08:00
2022-02-09 20:50:21 -08:00
2022-02-09 20:50:21 -08:00
2023-12-18 09:11:58 -08:00
2024-07-10 07:24:02 -07:00
2022-07-29 00:04:51 -07:00
2023-09-20 09:40:18 -07:00
2023-02-21 03:36:00 -08:00
2022-06-04 14:07:18 -07:00
2020-12-15 14:13:28 -06:00
2024-12-17 15:54:04 -08:00
2023-10-23 05:09:38 -07:00
2018-06-15 17:47:31 -07:00
2021-08-11 01:55:08 -07:00
2024-05-23 04:11:28 -07:00
2020-12-15 14:13:28 -06:00
2023-07-19 06:43:27 -07:00
2023-03-17 04:00:00 -07:00
2021-05-10 02:53:39 -07:00
2023-12-15 14:09:44 -08:00
2023-04-13 12:21:46 -07:00
2022-11-01 00:05:18 -07:00
2023-06-10 19:36:06 -07:00
2020-12-15 14:13:28 -06:00
2022-05-03 20:33:58 -07:00
2024-07-10 07:24:02 -07:00
2023-03-21 09:46:05 -07:00
2024-12-17 15:54:04 -08:00
2020-12-15 14:13:28 -06:00
2023-12-15 14:09:44 -08:00
2022-07-15 07:08:32 -07:00
2024-12-17 15:54:04 -08:00
2021-06-27 05:02:58 -07:00
2023-03-31 13:25:53 -07:00
2022-11-10 11:49:59 -08:00
2023-12-15 14:09:44 -08:00
2022-03-01 00:08:43 -08:00
2021-05-10 10:08:13 -07:00
2022-02-11 18:27:39 -08:00
2023-12-15 14:09:44 -08:00
2024-05-23 04:11:28 -07:00
2021-11-12 07:31:15 -08:00
2022-06-06 05:55:26 -07:00
2023-12-15 14:09:44 -08:00
2018-06-15 17:47:31 -07:00
2024-08-01 15:09:16 -07:00
2023-04-05 05:53:03 -07:00
2022-12-16 03:34:42 -08:00
2023-04-21 11:31:53 -07:00
2024-01-25 13:54:50 -08:00
2023-12-18 09:12:03 -08:00
2020-12-15 14:13:48 -06:00
2022-12-17 11:42:08 -08:00
2022-04-14 10:23:36 -07:00
2023-12-15 14:09:44 -08:00
2018-07-26 00:06:07 -07:00
2022-04-07 12:35:22 -07:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:13:28 -06:00
2023-12-15 14:09:44 -08:00
2022-03-01 00:08:31 -08:00
2023-12-15 14:09:44 -08:00
2018-08-29 20:34:34 -07:00
2023-12-15 14:09:44 -08:00
2018-08-29 20:34:34 -07:00
2023-12-15 14:09:44 -08:00
2018-09-09 17:22:24 -07:00
2023-12-15 14:09:44 -08:00
2018-09-05 04:51:36 -07:00
2023-12-15 14:09:44 -08:00
2018-11-08 19:35:09 -08:00
2023-12-15 14:09:44 -08:00
2018-08-29 20:34:34 -07:00
2023-04-06 10:12:48 -07:00
2024-01-25 13:54:56 -08:00
2018-10-12 17:35:10 +05:30
2023-12-15 14:09:44 -08:00
2020-12-15 14:13:28 -06:00
2022-05-02 23:16:44 -07:00
2023-12-15 14:09:44 -08:00
2023-12-15 14:09:44 -08:00
2018-06-15 17:47:31 -07:00
2023-04-10 20:45:50 -07:00
2022-07-08 06:08:20 -07:00
2022-05-06 05:21:55 -07:00
2023-12-15 14:09:44 -08:00
2021-10-07 17:53:30 -07:00
2021-04-21 10:15:20 -07:00
2018-06-15 17:47:31 -07:00
2023-10-23 05:09:38 -07:00
2022-12-12 15:09:56 -08:00
2021-05-25 14:30:30 -07:00
2020-12-15 14:13:28 -06:00
2021-04-28 19:15:31 -07:00
2023-04-10 20:45:50 -07:00
2022-12-16 03:34:42 -08:00
2023-12-15 14:09:44 -08:00
2020-12-15 14:13:28 -06:00
2019-05-06 02:56:53 -07:00
2020-12-15 14:13:28 -06:00
2023-12-15 14:09:44 -08:00
2020-12-15 14:13:28 -06:00
2023-05-05 11:49:28 -07:00
2018-06-15 17:47:31 -07:00
2023-12-15 14:09:44 -08:00
2023-09-06 01:58:06 -07:00
2023-06-13 00:19:33 -07:00
2023-06-13 00:19:33 -07:00
2022-01-05 20:57:32 -08:00