Received: by 10.223.176.5 with SMTP id f5csp1052337wra; Wed, 31 Jan 2018 00:15:38 -0800 (PST) X-Google-Smtp-Source: AH8x224A3BqD80SDeONSK6HgIw6S+L6twO9jAyhChzHpks3ZeRZZs5jvyR0aG9qiSUkYFjGAWbC5 X-Received: by 10.101.101.68 with SMTP id a4mr25678046pgw.368.1517386538793; Wed, 31 Jan 2018 00:15:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517386538; cv=none; d=google.com; s=arc-20160816; b=MO9z5Cc9feukR8lRgIYM5D+dGmVH3Kcis7s8a2y41Xvw0h2KrtujvpkLhMXgVyVtoH lrCf+EQFuLfLLIRftC4uNvwd3O1L/AuGzmNLrxf3x/KW57QuJUsb4u5PEPCOo5WQsk+q V8DF4KqSnRIiQaZiRkWH9HBQksPE1OeT0C3ZN+7Kek2fs6+J+RJkpBNfVTXdv1re6Uqq rl4EaFxkORmcd31YGSD6gY+r2aTA+c+dcpSZUSyZw/ozC7dN+dygojkYB2SEL/8f46RG Sy+mQvpRDFC2OKLSOtC50mf17Gb5v5AJs/T8Ut0QtIOJI2xFp4EKlZANNMK33AKF6YFA YQxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=neMu4ecW/EWFsLZ+nMON3GLShsYrHnHirt81ntxXtwQ=; b=WcRWJzbJGwcRdLEnJ02GoSeD0nOn+Fcfm4w8x4RSdyqdym640k4qbpAtIPQ1PzWhGW oY9pF+hc0n8+ZmCWqpedFQ9It7FcFaabSK/WCP1Q8tQOmT78NPMAS48GKVBCU4gzjmrS oSO5AkzrBZeF02eeYicc0CFOBjVkXR4QoPytE8Ek9afkXO9oOoBvX3bsb0bAJtds5Gll gjzTGghR7WkeQN77YddwGH4qVOqnASewV1wuEP/FKa0G5Bng1nBtMVX4QX9wtseQ2d9M VsR3fKf/R7Ty25bZchdprK1S80QjOX3S7Myqk3GNSIvumzpd5GduVrS+1rpmSBKYhFdT jU+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=SrLMYo7n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a80si16165518pfg.372.2018.01.31.00.15.24; Wed, 31 Jan 2018 00:15:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=SrLMYo7n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753379AbeAaINt (ORCPT + 99 others); Wed, 31 Jan 2018 03:13:49 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:38525 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752558AbeAaINr (ORCPT ); Wed, 31 Jan 2018 03:13:47 -0500 Received: by mail-wm0-f41.google.com with SMTP id 141so6048496wme.3 for ; Wed, 31 Jan 2018 00:13:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=neMu4ecW/EWFsLZ+nMON3GLShsYrHnHirt81ntxXtwQ=; b=SrLMYo7n5BL3dW4rqvZt6E0hjMWhFxrOzKm3uyMMaxgooyF+nFS7EaGC6ix8dzydpU 2uVx5toZh2J2+xNgtWsmE35FAeY3P6Y2S41QuJkh6QHzM1Q7AiiSh5VnmOwXAwCYSQfz Y0LI1ATsd+HrIITZUY4BtnKnxsFNzjVM7Fx0o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=neMu4ecW/EWFsLZ+nMON3GLShsYrHnHirt81ntxXtwQ=; b=rVTmZpG0RJH23NkG1ecYweusqO2KWXC1XmqpHhUTLfZlKE+AuqIjjp9OHIIwV5BgDU vp1C19ZZBnVaV7bGxzc2Ds/oIVNLMWW3ZRK2hx7R+D0ECD/zpbI1TyfhkX8h8KJR8SxV kq/U44EjdjVxoloCPXvvik8HF+rhJb8h6wb+ZLE6sSumkHZSg+wM9K2FNmdw0Cf1mNmZ MMEAtIsUrb7x2Pao06yXAI4YkpqQ96dCUeQgdyQBkVOoWC8jmabkkI+Upw+jNcoO3Yuk e+y3iRYhiKE43F5lK+6y7n1ZBYImEqh0RnlZw6H7jMORSsiTjmrSuJMZY/Se8QJPJJBV PLYw== X-Gm-Message-State: AKwxytcyanmzlpmvixzoSEzMAuGJhvs+l894+7IRyMl8D/jv8E48H+WK i2D+K0HA2LfqJneYLmdFoS+D9Q== X-Received: by 10.80.240.2 with SMTP id r2mr55564227edl.91.1517386426103; Wed, 31 Jan 2018 00:13:46 -0800 (PST) Received: from phenom.ffwll.local (212-51-149-109.fiber7.init7.net. [212.51.149.109]) by smtp.gmail.com with ESMTPSA id e12sm1616516edi.29.2018.01.31.00.13.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jan 2018 00:13:45 -0800 (PST) Date: Wed, 31 Jan 2018 09:13:43 +0100 From: Daniel Vetter To: Keith Packard Cc: Daniel Vetter , linux-kernel@vger.kernel.org, Dave Airlie , dri-devel@lists.freedesktop.org Subject: Re: [PATCH] drm: Check for lessee in DROP_MASTER ioctl Message-ID: <20180131081343.GY25930@phenom.ffwll.local> Mail-Followup-To: Keith Packard , linux-kernel@vger.kernel.org, Dave Airlie , dri-devel@lists.freedesktop.org References: <20180119015159.1606-1-keithp@keithp.com> <20180130093447.GG25930@phenom.ffwll.local> <87k1vz3ywa.fsf@keithp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87k1vz3ywa.fsf@keithp.com> X-Operating-System: Linux phenom 4.14.0-1-amd64 User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 30, 2018 at 11:55:01AM -0800, Keith Packard wrote: > Daniel Vetter writes: > > > On Thu, Jan 18, 2018 at 05:51:59PM -0800, Keith Packard wrote: > >> Don't let a lessee control what the current DRM master is set to; > >> that's the job of the "real" master. Otherwise, the lessee would > >> disable all access to master operations for the owner and all lessees > >> under it. > >> > >> This matches the same check made in the SET_MASTER ioctl. > >> > >> Signed-off-by: Keith Packard > > > > Similar check for setmaster already exists, so looks all good. Do we have > > an igt for all this? Iirc there was one floating around, but no idea > > what's the status. Might also be good to resubmit them so i915 CI can run > > the tests (now that the code has landed). > > I've got IGT tests for leasing which have been posted to dri-devel but I > don't think they've been reviewed. Looks like they could use some more > test cases; I didn't catch this one until I was playing with my 'xlease' > hack, which runs the X server on a leased FD. Can you pls resubmit (preferrably with the new nasty tests added) to igt-dev@lists.freedesktop.org (we have a new m-l for igt stuff)? > > On the patch itself, minus lack of testcases: > > > > Reviewed-by: Daniel Vetter > > Thanks! Realized I should better apply this, and done :-) -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch