Re: [PATCH -next 10/18] drm/ttm: Make the object handles idr-generated

2018-09-26 Thread Christian König
Am 26.09.2018 um 18:46 schrieb Thomas Hellstrom: On 09/26/2018 06:36 PM, Christian König wrote: Am 26.09.2018 um 18:18 schrieb Thomas Hellstrom: Instead of generating user-space object handles based on a, possibly processed, hash of the kernel address of the object, use idr to generate and lo

Re: [PATCH -next 10/18] drm/ttm: Make the object handles idr-generated

2018-09-26 Thread Thomas Hellstrom
On 09/26/2018 06:36 PM, Christian König wrote: Am 26.09.2018 um 18:18 schrieb Thomas Hellstrom: Instead of generating user-space object handles based on a, possibly processed, hash of the kernel address of the object, use idr to generate and lookup those handles. This might improve somewhat on s

Re: [PATCH -next 10/18] drm/ttm: Make the object handles idr-generated

2018-09-26 Thread Christian König
Am 26.09.2018 um 18:18 schrieb Thomas Hellstrom: Instead of generating user-space object handles based on a, possibly processed, hash of the kernel address of the object, use idr to generate and lookup those handles. This might improve somewhat on security since we loose all connections to the ob

[PATCH -next 10/18] drm/ttm: Make the object handles idr-generated

2018-09-26 Thread Thomas Hellstrom
Instead of generating user-space object handles based on a, possibly processed, hash of the kernel address of the object, use idr to generate and lookup those handles. This might improve somewhat on security since we loose all connections to the object's kernel address. Also idr is designed to do j