diff options
| author | Martin Krastev <[email protected]> | 2021-06-09 17:23:05 +0000 |
|---|---|---|
| committer | Zack Rusin <[email protected]> | 2021-06-12 04:01:03 +0000 |
| commit | b7d0949f6ce691131323fafabd48bf2f5074ae8d (patch) | |
| tree | 793352bc2fdcc8c897a827d3b5b5fb4cf7b964c5 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | drm/vmwgfx: inline access to the pages from the piter (diff) | |
| download | kernel-b7d0949f6ce691131323fafabd48bf2f5074ae8d.tar.gz kernel-b7d0949f6ce691131323fafabd48bf2f5074ae8d.zip | |
drm/vmwgfx: Refactor vmw_mksstat_remove_ioctl to expect pgid match with vmw_mksstat_add_ioctl to authorise removal.
Original vmw_mksstat_remove_ioctl expected pid to match the corresponding vmw_mksstat_add_ioctl.
That made impossible en-masse removals by one pid, which is a valid use case, so pid match was
discarded. Current change enforces a broader pgid match as a form of protection from arbitrary
processes interrupting an ongoing mks-guest-stats.
Reviewed-by: Zack Rusin <[email protected]>
Signed-off-by: Martin Krastev <[email protected]>
Signed-off-by: Zack Rusin <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions
