diff options
author | Philip Yang <[email protected]> | 2021-07-29 17:19:54 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2021-08-31 14:20:40 -0400 |
commit | d7eff46c214c036606dd3cd305bd5a128aecfe8c (patch) | |
tree | 2c95a0dd113848f31f803f3b5073ba4c2ddd5a01 /drivers/gpu/drm/amd/pm/amdgpu_pm.c | |
parent | 703677d9345d87d7288ed8a2483ca424af7d4b3b (diff) |
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 <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions