Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp1268392pxb; Fri, 13 Aug 2021 19:06:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxctnHgdvEmas1hu6oipfww02XS2eXsCaRTNr1XFN+5HgS+UuJnMxCIGYoBzhrzDTL0SIPL X-Received: by 2002:a05:6e02:194c:: with SMTP id x12mr3890729ilu.155.1628906797688; Fri, 13 Aug 2021 19:06:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628906797; cv=none; d=google.com; s=arc-20160816; b=v586m7fTC68l0Iv1dYQEzRGUxHUqnfK8smvKyCrd37vJ+vmQQQKFpSR6PPyQiCc+La Jfa4OKJxy461Ffy8s9cT8yUBu3uiQjtYmCwrY8aG+V/yAAtYmh7SUf7eSWFynAZpgnwv YT9WnxtgD3RoqyvHnsDvDSq9INXONceqRBmdgi1MqAify4yT5S7/4HSwmIPtx+K3ewy6 162339chAmm/wqwwC7QjN3WDgPI9iM2i4+T/fRd+KViyprpryjRo04T6hyaR2v0jc4/l 2T6QEUvt85EqlVem1DQXUacmJ57gQUSVh3jrITh9vig3IwsBBNfAh9nD6R1+W6zVf0fV XGjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=8WAdi5SJcGzZIPUT3Bc7V22rEwHuSp7fSGVlD4+1yzM=; b=AffrtYlnCSmCj9bTPrLG/tnloifCbO8D2tWsn5IZ9Wi+LXOE/6FAnkX1vLGyKm3nX7 TZ7Hr9E9tlB9lvF2huGPe8Fk9cISxMrLSEG4H6sUMDWIw6sRdh+seRp+LXI9RsKxi3+S eYmAkJBL/A3sxD1x5ePPVd27G2nyf45NggkMMGBTJXIFezcs7aR/omvBK20L4BIkDZXh 4tAwiZ3zpCaptr40u2zYEyvMej2zlQA8Irh61GP4lRlamBCu8KEuvvPWTTYtjGaL0L9d wVZYPglxVn53xwbd4k5+twCO7qsnSxcvEyirez/2h46cUpTZvPfoBvkI4mjVg9M2OeCr S9wQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k14si2556717ilo.4.2021.08.13.19.06.26; Fri, 13 Aug 2021 19:06:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236409AbhHNCF6 (ORCPT + 99 others); Fri, 13 Aug 2021 22:05:58 -0400 Received: from zeniv-ca.linux.org.uk ([142.44.231.140]:54920 "EHLO zeniv-ca.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232651AbhHNCF5 (ORCPT ); Fri, 13 Aug 2021 22:05:57 -0400 Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mEj0c-00BTXs-As; Sat, 14 Aug 2021 02:02:50 +0000 Date: Sat, 14 Aug 2021 02:02:50 +0000 From: Al Viro To: Linus Torvalds Cc: Andy Lutomirski , "Eric W. Biederman" , David Laight , David Hildenbrand , Linux Kernel Mailing List , Andrew Morton , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Alexey Dobriyan , Steven Rostedt , "Peter Zijlstra (Intel)" , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Petr Mladek , Sergey Senozhatsky , Andy Shevchenko , Rasmus Villemoes , Kees Cook , Greg Ungerer , Geert Uytterhoeven , Mike Rapoport , Vlastimil Babka , Vincenzo Frascino , Chinwen Chang , Michel Lespinasse , Catalin Marinas , "Matthew Wilcox (Oracle)" , Huang Ying , Jann Horn , Feng Tang , Kevin Brodsky , Michael Ellerman , Shawn Anastasio , Steven Price , Nicholas Piggin , Christian Brauner , Jens Axboe , Gabriel Krisman Bertazi , Peter Xu , Suren Baghdasaryan , Shakeel Butt , Marco Elver , Daniel Jordan , Nicolas Viennot , Thomas Cedeno , Collin Fijalkovich , Michal Hocko , Miklos Szeredi , Chengguang Xu , Christian =?iso-8859-1?Q?K=F6nig?= , "linux-unionfs@vger.kernel.org" , Linux API , the arch/x86 maintainers , "" , Linux-MM , Florian Weimer , Michael Kerrisk Subject: Re: [PATCH v1 0/7] Remove in-tree usage of MAP_DENYWRITE Message-ID: References: <87lf56bllc.fsf@disp2133> <87eeay8pqx.fsf@disp2133> <5b0d7c1e73ca43ef9ce6665fec6c4d7e@AcuMS.aculab.com> <87h7ft2j68.fsf@disp2133> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 14, 2021 at 01:57:31AM +0000, Al Viro wrote: > On Fri, Aug 13, 2021 at 02:58:57PM -1000, Linus Torvalds wrote: > > On Fri, Aug 13, 2021 at 2:54 PM Linus Torvalds > > wrote: > > > > > > And nobody really complained when we weakened it, so maybe removing it > > > entirely might be acceptable. > > > > I guess we could just try it and see... Worst comes to worst, we'll > > have to put it back, but at least we'd know what crazy thing still > > wants it.. > > Umm... I'll need to go back and look through the thread, but I'm > fairly sure that there used to be suckers that did replacement of > binary that way (try to write, count on exclusion with execve while > it's being written to) instead of using rename. Install scripts > of weird crap and stuff like that... ... and before anyone goes off - I certainly agree that using that behaviour is not a good idea and had never been one. All I'm saying is that there at least used to be very random (and rarely exercised) bits of userland relying upon that behaviour.