[PATCH] drm/ioctl: Add a ioctl to label GEM objects
Thomas Hellström (VMware)
thomas_os at shipmail.org
Tue Sep 17 15:10:24 UTC 2019
On 9/17/19 5:05 PM, Rohan Garg wrote:
> Hi
>
>> We're not closing a device, are we?
>>
> Ah, yes, I'll fix this in v2.
>
>> Do we have a mechanism in place to stop a malicious unprivileged app
>> from allocating all kernel memory to gem labels?
>>
> I'm unsure why this is a concern since a malicious app could also potentially
> allocate lots of GEM buffers and cause the same situation.
Hmm, yes in some drivers. In others not. But if we have a drm_driver
hook for this, I guess drivers that care can do proper checking.
/Thomas
> Cheers
> Rohan Garg
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
More information about the dri-devel
mailing list