]> git.baikalelectronics.ru Git - kernel.git/commit
char/agp: Disable frontend without CONFIG_DRM_LEGACY
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 17 Nov 2020 21:40:29 +0000 (22:40 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Nov 2020 21:47:45 +0000 (22:47 +0100)
commit2a574d393fad226a6abe422e8b08652a8b1eff14
treeffdca977a8b38e5f57b6f537c05e42dfa424228c
parent5c19ccd83549caef5c3d19b4305b0e33c85580ac
char/agp: Disable frontend without CONFIG_DRM_LEGACY

It's probably full of bugs ready for exploiting by userspace. And
there's not going to be any userspace for this without any of the drm
legacy drivers enabled too. So just couple it together.

Note that the frontend is only the /dev/agp ioctl interface, which per
Adam is only used by the i810 userspace drivers. All other drivers go
through the drm bufmap agp handling abstraction apparently.

v2: Augment commit message a bit from m-l feedback.

Acked-by: Adam Jackson <ajax@redhat.com>
Acked-by: Christian König <christian.koenig@amd.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Adam Jackson <ajax@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201117214029.591896-1-daniel.vetter@ffwll.ch
drivers/char/agp/Makefile
drivers/char/agp/agp.h