Received: by 10.223.176.5 with SMTP id f5csp340116wra; Tue, 30 Jan 2018 12:22:27 -0800 (PST) X-Google-Smtp-Source: AH8x225JE5CfdhEbGUFuyu1m+/BWSyqKRXUAWPQUuliRl1bZC8vYQAl9Q7lcDBaVd3gKoBbePTJT X-Received: by 2002:a17:902:848c:: with SMTP id c12-v6mr27045213plo.329.1517343747238; Tue, 30 Jan 2018 12:22:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517343747; cv=none; d=google.com; s=arc-20160816; b=sUKGmj7jgcEMlea2qXhM7XGHAoinnhWubJ0272yLQd4M9gRrXNeX1Htotx41dRWkdw zEY6dZ9phNJR+O5J1eKNJUpmBv2KbJmBSV7+WZRndNrb4PuIDTS9fHoerVpkrZl2LrWl KMhD75m3tqibjMKkboukeW059fRAZuUOYDECYF2pkf+8CtP43mH4ea8qAf4xMO9AlFB4 5p6STVAhweVvPsaQjGzyTZmJ5k3/n/pLWFN/nz8ycHkXeH8my0q7yI0grt1foBzgS3iu T8mb/9/TiKZyFYQqDJr11PEM+aK4piFiGp1Mm/WDqBDiBECSpAxx3tnqA/ChV2mKCLmv leMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:arc-authentication-results; bh=AD/Tr4/hMZjTbOlQkGSrPGWX/bfyFuf4vKPMIYCK+a0=; b=hDclrLnDp+bMDHFFsR3/mDAyeyQIrfJvvOw2+ukjOCZ/izbXBTxT++b6CXY7/ypgo1 147kAKKdrVnFWStntngQ1rHzsAk5hGY6XSH1/hkIjoZqxwBPfu30HTZvEGU2LrMacLIE Yi+QEgGTIdiw8jAZzLf2Aft/jEhFICkJnAcgMG8NBhNPIxabsnTESEWvlDkOknIRhzJc xWzuWuG605HPtnW9QG1s6v2emPQ1yYIXPAkksD58Cb8jDGdfUqwSal6OM8rkKUbryf28 1J5Kl2rO/H4i+2+BKH1kfNQ8aoX9H4XGJXHqCYCshIJNgu8puhd/E7OYcysXkZ4wFXFx BOXg== ARC-Authentication-Results: i=1; mx.google.com; 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 a9si2609915pff.55.2018.01.30.12.22.12; Tue, 30 Jan 2018 12:22:27 -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; 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 S1752817AbeA3TzE (ORCPT + 99 others); Tue, 30 Jan 2018 14:55:04 -0500 Received: from home.keithp.com ([63.227.221.253]:53188 "EHLO elaine.keithp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751753AbeA3TzD (ORCPT ); Tue, 30 Jan 2018 14:55:03 -0500 Received: from localhost (localhost [127.0.0.1]) by elaine.keithp.com (Postfix) with ESMTP id 3B0153F20955; Tue, 30 Jan 2018 11:55:03 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from elaine.keithp.com ([127.0.0.1]) by localhost (elaine.keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MforwM_5gOr6; Tue, 30 Jan 2018 11:55:01 -0800 (PST) Received: from keithp.com (koto.keithp.com [10.0.0.2]) by elaine.keithp.com (Postfix) with ESMTPSA id BAC9C3F207D2; Tue, 30 Jan 2018 11:55:01 -0800 (PST) Received: by keithp.com (Postfix, from userid 1000) id 9F0F21582869; Tue, 30 Jan 2018 11:55:01 -0800 (PST) From: "Keith Packard" To: Daniel Vetter Cc: linux-kernel@vger.kernel.org, Dave Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org Subject: Re: [PATCH] drm: Check for lessee in DROP_MASTER ioctl In-Reply-To: <20180130093447.GG25930@phenom.ffwll.local> References: <20180119015159.1606-1-keithp@keithp.com> <20180130093447.GG25930@phenom.ffwll.local> Date: Tue, 30 Jan 2018 11:55:01 -0800 Message-ID: <87k1vz3ywa.fsf@keithp.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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. >>=20 >> This matches the same check made in the SET_MASTER ioctl. >>=20 >> 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. > On the patch itself, minus lack of testcases: > > Reviewed-by: Daniel Vetter Thanks! =2D-=20 =2Dkeith --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEw4O3eCVWE9/bQJ2R2yIaaQAAABEFAlpwzZUACgkQ2yIaaQAA ABH8Ug/6A3v914XXXE9EsN6Xn/vBO+/7nw/VFn+Z4gbwgsU5Sadx9KENFncF2GFY ypYlQwPdRIt/VNwjM0Zpekn+Q6TzP6oFF1yoVEi74FD3Ds+sf5nSTncmBeC5tGWl eLCPFRF5llZoxClecfItvmVSI7c07Lnk0WK0ofzl5kQH3ZnGfiN3eoiBkxdXcPs/ 6cAfH/2UyqrPtuDAKkv5R+ZOJ9ldXU5KytmTGAHED+76iwoukk1YAvFAVu+Wsruy BGI0YIv3CwUrLLsFL6Cfly7QSpJDWEGp/2V8QNHXzCtxnsw4qCrBQcQ7K2dH5CDT uv32r0ipW3oyUJWOcgQPQmY8YiAT4tUmj9DMvAS/BH69m/wUIYnMuJW5bxP5inQV C/JnF5qhljyUDrPMT4RBE77ietKzvgZXG/7gIdLfZpzRvpzZeUZjW5CL8QfMRQ03 O0vx++UPcYz0Ij1VG20wNsLWu83SBO1/5OEboeKVL14Gk6ex7UT+yCE103ulOX0V i6T4fGduWUgzOqgBTCp3BthvOEX2krgN5IfVnwus7NHSRFXv4XmE1aMHFUNINXL/ japqiFC13ywl3sD7OPMuU1fYYm+b046NzncDmnY+K0KfmnqA7/mJ/4vH8QxcekMF +uVtta97uhJuBDk1dZ64POlk92iF81AFX1KOor/Yorr9WFSFjyE= =07F+ -----END PGP SIGNATURE----- --=-=-=--