[PATCH] drm/nouveau: check ioctl command codes better
Danilo Krummrich
dakr at kernel.org
Fri Jul 11 18:06:14 UTC 2025
On Fri Jul 11, 2025 at 9:24 AM CEST, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd at arndb.de>
>
> 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 <arnd at arndb.de>
Applied to drm-misc-fixes, thanks!
[ Fix up two checkpatch warnings and a typo. - Danilo ]
More information about the Nouveau
mailing list