Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2342362ybe; Sat, 7 Sep 2019 13:38:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7v2g0NRG8+lzSAUQrHdMbvQx2xajygHkd8dRWC499v+AmrdwK42B0Ldl3Dg8UqmFHzlmd X-Received: by 2002:a62:3083:: with SMTP id w125mr18850021pfw.102.1567888737394; Sat, 07 Sep 2019 13:38:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567888737; cv=none; d=google.com; s=arc-20160816; b=ir4RVb/bWi3PuaGQot7xrrEPxcpHfZOz7iukyjtpvhyqFq62s7HA3YIUP2fV85JnuI kxms1YJobXezBeF1hYfHKwOwDQ7WShcRlVZJvVth7BcGjAk/ozLUSTHwuJ9XTLmdL6B5 la0XHTmpjrHy9k9VW0qvn+/NAK6xxlhstKbBumWtzgcvTcE7xEdo3EwhQGAmAQX8jogf sIGa2R2lJT6lXVtPgRN4+NIy+Mm090n5NNKCZHWqY2/4oIG+5xKPyQVWVuO9afJ3okyM fVSaz01NV2pbjS2xd7bSR7npgRFPuJ+2vLvN8vGVqmw2MU6vKxVaPiXp0V/VcQ4SmBjt Ka5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=+7MelajVu4miD/eto/Xciw38InSazCHKx9rrV+QnwUI=; b=R+46iq3Xp8zE4Z6n1yix3+zR7W8l+7aHssBOFFZKB6QDdZX42X2wWitdcO/InLUf8v Mo6I6KB0EhSSLJ4RpsEVwsw/zpnQdg4rboNp81rvEto2mfaFIt6D5157QyNy9RiBNusa 6pKr9zV0KH7FTbZ3cDP4atoizVJ4kIaK8Pavbc+HjPRx4G+ouJXkUUe4GvaXuP0HCzyN dKo1vg2BVpl98JHBDElGopW5BpCi0PzGIulr4JByeSNOyIjS2aAdZXLOlkU+0lFUor/V XfpfzmJa59d9Nv9fsUBKNBd6n10z7J83RplDtM6WlE3LEezcHAAw35ZeWHt2h7ZKDgnp rFLQ== 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 x16si7483020pgi.312.2019.09.07.13.38.42; Sat, 07 Sep 2019 13:38:57 -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 S2406233AbfIFTEw (ORCPT + 99 others); Fri, 6 Sep 2019 15:04:52 -0400 Received: from namei.org ([65.99.196.166]:43022 "EHLO namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729074AbfIFTEw (ORCPT ); Fri, 6 Sep 2019 15:04:52 -0400 Received: from localhost (localhost [127.0.0.1]) by namei.org (8.14.4/8.14.4) with ESMTP id x86J3QSE019203; Fri, 6 Sep 2019 19:03:26 GMT Date: Fri, 6 Sep 2019 12:03:26 -0700 (PDT) From: James Morris To: Jeff Layton cc: =?ISO-8859-15?Q?Micka=EBl_Sala=FCn?= , Florian Weimer , =?ISO-8859-15?Q?Micka=EBl_Sala=FCn?= , linux-kernel@vger.kernel.org, Aleksa Sarai , Alexei Starovoitov , Al Viro , Andy Lutomirski , Christian Heimes , Daniel Borkmann , Eric Chiang , Jan Kara , Jann Horn , Jonathan Corbet , Kees Cook , Matthew Garrett , Matthew Wilcox , Michael Kerrisk , Mimi Zohar , =?ISO-8859-15?Q?Philippe_Tr=E9buchet?= , Scott Shell , Sean Christopherson , Shuah Khan , Song Liu , Steve Dower , Steve Grubb , Thibaut Sautereau , Vincent Strubel , Yves-Alexis Perez , kernel-hardening@lists.openwall.com, linux-api@vger.kernel.org, linux-security-module@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v2 1/5] fs: Add support for an O_MAYEXEC flag on sys_open() In-Reply-To: <5a59b309f9d0603d8481a483e16b5d12ecb77540.camel@kernel.org> Message-ID: References: <20190906152455.22757-1-mic@digikod.net> <20190906152455.22757-2-mic@digikod.net> <87ef0te7v3.fsf@oldenburg2.str.redhat.com> <75442f3b-a3d8-12db-579a-2c5983426b4d@ssi.gouv.fr> <1fbf54f6-7597-3633-a76c-11c4b2481add@ssi.gouv.fr> <5a59b309f9d0603d8481a483e16b5d12ecb77540.camel@kernel.org> User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 6 Sep 2019, Jeff Layton wrote: > The fact that open and openat didn't vet unknown flags is really a bug. > > Too late to fix it now, of course, and as Aleksa points out, we've > worked around that in the past. Now though, we have a new openat2 > syscall on the horizon. There's little need to continue these sorts of > hacks. > > New open flags really have no place in the old syscalls, IMO. Agree here. It's unfortunate but a reality and Linus will reject any such changes which break existing userspace. -- James Morris