Philip Yang d7eff46c21 drm/amdgpu: fix fdinfo race with process exit
Get process vm root BO ref in case process is exiting and root BO is
freed, to avoid NULL pointer dereference backtrace:

BUG: unable to handle kernel NULL pointer dereference at
0000000000000000
Call Trace:
amdgpu_show_fdinfo+0xfe/0x2a0 [amdgpu]
seq_show+0x12c/0x180
seq_read+0x153/0x410
vfs_read+0x91/0x140[ 3427.206183]  ksys_read+0x4f/0xb0
do_syscall_64+0x5b/0x1a0
entry_SYSCALL_64_after_hwframe+0x65/0xca

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-08-31 14:20:40 -04:00
..
2020-10-15 10:46:16 -07:00
2020-10-15 10:46:16 -07:00
2021-07-21 11:58:28 +10:00
2021-06-10 11:28:09 +10:00
2021-04-09 16:46:32 -04:00
2021-07-03 11:13:22 -07:00
2021-05-19 23:50:27 -04:00
2021-06-30 00:18:23 -04:00
2021-05-19 23:50:27 -04:00
2020-07-02 12:02:50 -04:00
2020-08-14 16:22:39 -04:00
2020-07-01 01:59:24 -04:00
2021-07-23 10:07:59 -04:00
2021-07-23 10:07:59 -04:00
2021-07-23 10:07:59 -04:00
2020-07-02 12:02:50 -04:00