[PATCH v2 3/4] drm/exynos: added userptr feature.

Dave Airlie airlied at gmail.com
Wed Apr 25 03:15:27 PDT 2012


On Tue, Apr 24, 2012 at 6:17 AM, Inki Dae <inki.dae at samsung.com> wrote:
> this feature could be used to use memory region allocated by malloc() in user
> mode and mmaped memory region allocated by other memory allocators. userptr
> interface can identify memory type through vm_flags value and would get
> pages or page frame numbers to user space appropriately.

Is there anything to stop the unpriviledged userspace driver locking
all the RAM in the machine inside userptr?

seems like a very bad plan, I know TTM has code to address this sort
of things with limits.

Dave.


More information about the dri-devel mailing list