[Intel-gfx] [PATCH 3/5] drm: Possible lock priority escalation.

2015-05-05 Thread Daniel Vetter
On Tue, May 05, 2015 at 06:45:30AM +, Antoine, Peter wrote: > On Mon, 2015-05-04 at 15:56 +0200, Daniel Vetter wrote: > > On Mon, Apr 27, 2015 at 07:52:46PM +0300, Ville Syrjälä wrote: > > > On Thu, Apr 23, 2015 at 03:07:56PM +0100, Peter Antoine wrote: > > > > If an application that has a dr

[Intel-gfx] [PATCH 3/5] drm: Possible lock priority escalation.

2015-05-05 Thread Antoine, Peter
On Mon, 2015-05-04 at 15:56 +0200, Daniel Vetter wrote: > On Mon, Apr 27, 2015 at 07:52:46PM +0300, Ville Syrjälä wrote: > > On Thu, Apr 23, 2015 at 03:07:56PM +0100, Peter Antoine wrote: > > > If an application that has a driver lock created, wants the lock the > > > kernel context, it is not al

[Intel-gfx] [PATCH 3/5] drm: Possible lock priority escalation.

2015-05-04 Thread Daniel Vetter
On Mon, Apr 27, 2015 at 07:52:46PM +0300, Ville Syrjälä wrote: > On Thu, Apr 23, 2015 at 03:07:56PM +0100, Peter Antoine wrote: > > If an application that has a driver lock created, wants the lock the > > kernel context, it is not allowed to. If the call to drm_lock has a > > context of 0, it is

[Intel-gfx] [PATCH 3/5] drm: Possible lock priority escalation.

2015-04-27 Thread Ville Syrjälä
On Thu, Apr 23, 2015 at 03:07:56PM +0100, Peter Antoine wrote: > If an application that has a driver lock created, wants the lock the > kernel context, it is not allowed to. If the call to drm_lock has a > context of 0, it is rejected. If you set the context to _DRM_LOCK_CONT > then call drm lock,

[PATCH 3/5] drm: Possible lock priority escalation.

2015-04-23 Thread Peter Antoine
If an application that has a driver lock created, wants the lock the kernel context, it is not allowed to. If the call to drm_lock has a context of 0, it is rejected. If you set the context to _DRM_LOCK_CONT then call drm lock, it will pass the context == DRM_KERNEL_CONTEXT checks. But as the DRM_L