Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1942158imm; Thu, 19 Jul 2018 10:19:02 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcwPlz7kW0qqrmOzbmZz5ImL1QHh6hoC8/PEqiMonpdMtsuxQAjIW1pYnXRxpC02TJhw4OW X-Received: by 2002:aa7:84c2:: with SMTP id x2-v6mr6962991pfn.220.1532020742692; Thu, 19 Jul 2018 10:19:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532020742; cv=none; d=google.com; s=arc-20160816; b=kbjrKPa+n9jw/2lo8tGQWvOFxwEMO9oHy9U9Nit2nJrZ3CpmyPxvi/Me78hhrYtsC0 CkmjUeWsmRMr09CgIRPcuv7cuZcJDyxwF8SFMFqfVPhCTJEWlDYxSWpegSxhy0HF67Zl nCm65MYZdIejzgsvvrRmUhpinORmAqKXMIga2kst/Wo0YTzTwJB6a0SoGa5W5ZZrFarm MM2Lqsm0ud2xAPL8QFJ1fyMHJDnxEH0L5YMbLpxkWmu9vC21RX/TwCmAR+4+o8+QJfc1 O7M1Q8TGWNNz40gKMFPWiGDTD09FsDcf5ZiWblDNcFuAAFwv7fEHd6bjfCVAj6jzh+OB 00TA== 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:message-id:subject:to :from:date:arc-authentication-results; bh=gw0rv7k89Khzk11rAD1z5N3TxL0VDH7tSgKvGN5Dbvk=; b=IvPj4jK+RQoqK2nc8rkCyGEgsCDm+QiRc3RzhI7TqzL5hR+8AnS8d6QRc658fb3fk2 mzkyBaUs0+1KY7o32gynQfrGV+je5IXwbLMgyo9NeKlUDo20nshAL7g58j5qKYQmZY0s 1XnNgaHrKFOOXAKvGzEwJgOiwPNb8WhC4Aj16ZnVxtD1MROW5/N2x+g5otrteSAxfbqE yKLPoLDwXVfHXXCK+EH1zRSX/cH3FkokrCNUoJ+glkH3fPGsjH6IBE4MQkk5qzJpUu11 VVEhxgUFm5fXZBN52dvovQZe2qs8kW2eEXIo4reA6JM0KOl50KPD+VsUz+tvRaEOz38g U21Q== 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 h15-v6si5746619pgh.566.2018.07.19.10.18.45; Thu, 19 Jul 2018 10:19:02 -0700 (PDT) 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 S1732080AbeGSSCP (ORCPT + 99 others); Thu, 19 Jul 2018 14:02:15 -0400 Received: from mx2.suse.de ([195.135.220.15]:39164 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731832AbeGSSCP (ORCPT ); Thu, 19 Jul 2018 14:02:15 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id EC655AD8D; Thu, 19 Jul 2018 17:18:06 +0000 (UTC) Date: Fri, 20 Jul 2018 03:18:59 +1000 From: Aleksa Sarai To: Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org, Arnd Bergmann , Eric W Biederman Subject: Re: [PATCH] pty: fix O_CLOEXEC for TIOCGPTPEER Message-ID: <20180719171859.sn6a7n2mhmyx7mvs@mikami> References: <20180719084346.GA2360@squirrel.local> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4ul57f4zoo4fzqir" Content-Disposition: inline In-Reply-To: <20180719084346.GA2360@squirrel.local> User-Agent: NeoMutt/20180622 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --4ul57f4zoo4fzqir Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2018-07-19, Matthijs van Duin wrote: > It was being ignored because the flags were not passed to fd allocation. >=20 > Fixes: 54ebbfb16034 ("tty: add TIOCGPTPEER ioctl") Acked-by: Aleksa Sarai > Signed-off-by: Matthijs van Duin > --- > drivers/tty/pty.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/tty/pty.c b/drivers/tty/pty.c > index b0e2c4847a5d..678406e0948b 100644 > --- a/drivers/tty/pty.c > +++ b/drivers/tty/pty.c > @@ -625,7 +625,7 @@ int ptm_open_peer(struct file *master, struct tty_str= uct *tty, int flags) > if (tty->driver !=3D ptm_driver) > return -EIO; > =20 > - fd =3D get_unused_fd_flags(0); > + fd =3D get_unused_fd_flags(flags); > if (fd < 0) { > retval =3D fd; > goto err; --=20 Aleksa Sarai Senior Software Engineer (Containers) SUSE Linux GmbH --4ul57f4zoo4fzqir Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXzbGxhtUYBJKdfWmnhiqJn3bjbQFAltQyAAACgkQnhiqJn3b jbSzZA//Z+P5kiceP6dNRh3Lvgl1Xqs98CVy8XZ1KTFsMRqAU6gF+hYOsmVAJy8A Qf2mlDKFIN0+jKvO09dy7fUJJveTWUo2rAcSL9i6fK549lbYthV2KyeU4JF/31zc Lai5n1bCEc3YpF7YQ+VF4uF8uh766EQDdhkA3CDcT9m/dwlHFd2QJ0w79L94UgIN bwU8XdIL1NevPBGq9sQ8vWYwIOf+7R7PNE86UutDxBlJUJVuuToCLlVrIyb8bFMO xj4vtYBusJ0bJnatQgiJ7wLv7/xPJUVV5RMju+ho4QI4LJ1hEZrtMaM221fqOkbp M4E1ELDiLE4dkV79Qg/SbyqwYFQ3RvdsJ1rTQ7GRdPIHnPW7QQh2PaXSA3xn4S/p 6BEl+w4gyy7Ct+bnCEQTeS28G37QDUBKm9tWjDcFya6gdO1OfULSEANN6TTA2Qli svq7ao2I11NWRPfgWzW/jflOzEKb1iWxKvolR00y4XBgZB0tXAFJU1OkSubby3FA 7IPKoGihFHKChT405hk9Hla6FxxAhdkFQ8Od4XWuqQIFTtEM10pz1o0KP4hD2Z0m 1YBIsh1+XpyT1TK5eaPtyr9RHJwfnlTsn/+VEMGDsEISQ/VMsJEBiptF5MZeY5TB fcIEQvfRqvpyvOFJF1zCMgqX2zrJYN1+NXh7Ik5NTs2WV5RHejM= =EUtR -----END PGP SIGNATURE----- --4ul57f4zoo4fzqir--