]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: block a bunch of classes from userspace
authorBen Skeggs <bskeggs@redhat.com>
Thu, 4 Mar 2021 09:16:18 +0000 (19:16 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 18 Aug 2021 09:00:13 +0000 (19:00 +1000)
commit148a8653789c01f159764ffcc3f370008966b42f
treed8bb4d7a2e1b00c4982db439f8489485fb7010a1
parent50c4a644910fbe6b965683b3c99f823b59bde1b9
drm/nouveau: block a bunch of classes from userspace

Long ago, there had been plans for making use of a bunch of these APIs
from userspace and there's various checks in place to stop misbehaving.

Countless other projects have occurred in the meantime, and the pieces
didn't finish falling into place for that to happen.

They will (hopefully) in the not-too-distant future, but it won't look
quite as insane.  The super checks are causing problems right now, and
are going to be removed.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
drivers/gpu/drm/nouveau/include/nvif/cl0080.h
drivers/gpu/drm/nouveau/nouveau_drm.c
drivers/gpu/drm/nouveau/nouveau_usif.c
drivers/gpu/drm/nouveau/nvkm/engine/device/user.c