diff options
| author | Arnd Bergmann <[email protected]> | 2025-07-11 07:24:53 +0000 |
|---|---|---|
| committer | Danilo Krummrich <[email protected]> | 2025-07-11 18:04:32 +0000 |
| commit | e5478166dffb51fa64e76cdbb5c24421f22f2d43 (patch) | |
| tree | d87e798f2ca83e775e4e08b4e35d09536a7e3992 /drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | |
| parent | drm/gem: Fix race in drm_gem_handle_create_tail() (diff) | |
| download | kernel-e5478166dffb51fa64e76cdbb5c24421f22f2d43.tar.gz kernel-e5478166dffb51fa64e76cdbb5c24421f22f2d43.zip | |
drm/nouveau: check ioctl command codes better
nouveau_drm_ioctl() only checks the _IOC_NR() bits in the
DRM_NOUVEAU_NVIF command, but ignores the type and direction bits, so any
command with '7' in the low eight bits gets passed into
nouveau_abi16_ioctl() instead of drm_ioctl().
Check for all the bits except the size that is handled inside of the
handler.
Fixes: 27111a23d01c ("drm/nouveau: expose the full object/event interfaces to userspace")
Signed-off-by: Arnd Bergmann <[email protected]>
[ Fix up two checkpatch warnings and a typo. - Danilo ]
Signed-off-by: Danilo Krummrich <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c')
0 files changed, 0 insertions, 0 deletions
