Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp860562pxb; Thu, 19 Aug 2021 13:09:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0Gh6P1GBtPhEHsHUP4s8i1zklhcfPjq9qXFxBjM6sWmJ4++Z6bSYauQbjjRG9/K3HjNcX X-Received: by 2002:a6b:e616:: with SMTP id g22mr13372653ioh.67.1629403751736; Thu, 19 Aug 2021 13:09:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629403751; cv=none; d=google.com; s=arc-20160816; b=Dr/JjKTnYvn96LGNm/cFlL8ieJa4AXsvLFeCv6sG3mmpCI4b+5Gjz11JDGkSh1i4S4 fXNzyH5LR5LmT/eMjlvKi4PBtcxxfEivVKG7/m7dc98hRIGNrPEWO8Ug4FKa7Cus+Fmo C+pXGVsVyjfmC+oMB8HA+oB0qswpxgIIFpaGVCv1MrVdCAB0p5mPFej7iFEZqxN0s/wY 5T2V3vl7DreIf3ZCaVoU8hEFy3vy9CfCPj2WdLU6drwgON55grhMXR99o4eDGsJT3+tR JetCQJLrNxfMsd6NG96c9p9dHxj6NNheXvWxtN6Chp1F2R8ZD4Lz3q3h5ujwCMiqQjb5 978w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=g81KSFHNnXTupUujfAcvDg6jU0i4+Tg5mF9BE4OVoLc=; b=crSyBT/fOxWaLzBCptkk/vgdF503NpVGIA95FIywoOxcRt2LSHC8aHGAydzyzvT6pK MGoCzmmt/jKiePDXzyoZqIRP75TaOsdEDBbzfvSNDelj6SNkGRCESyOUb1zTjUE+PVIx jEMM3NhQpcp/RiN751O0pAie4kw9NvxVlWxgpEQqIXoAbuwzOKKi+IWtDYMBunn4PbOO zDdhWSDeHe0INBBCn/BdjHfJ2JZOBxgyWpjW34R9Ki+CbMegm+2OdFc22X8iDl1kGwcI 8gL1WtLnqGinJpxjgO0/y8OVwMY0qnbrtNgtx9XXijAzpeQcqzlLUjLFa5UTGIQR4sCu wRAg== 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 d9si3822907ioi.40.2021.08.19.13.09.00; Thu, 19 Aug 2021 13:09:11 -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 S234903AbhHSUHQ (ORCPT + 99 others); Thu, 19 Aug 2021 16:07:16 -0400 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:36543 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbhHSUHL (ORCPT ); Thu, 19 Aug 2021 16:07:11 -0400 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 17JK3N5l013157; Thu, 19 Aug 2021 22:03:23 +0200 Date: Thu, 19 Aug 2021 22:03:23 +0200 From: Willy Tarreau To: Jeff Layton Cc: Rodrigo Campos , "Eric W. Biederman" , Matthew Wilcox , Andy Lutomirski , Linus Torvalds , David Laight , David Hildenbrand , Linux Kernel Mailing List , Andrew Morton , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Al Viro , 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 , 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: Removing Mandatory Locks Message-ID: <20210819200323.GA13017@1wt.eu> References: <87eeay8pqx.fsf@disp2133> <5b0d7c1e73ca43ef9ce6665fec6c4d7e@AcuMS.aculab.com> <87h7ft2j68.fsf@disp2133> <87k0kkxbjn.fsf_-_@disp2133> <8ba92aa3e97bfc3df89cd64fffcbc91b640530f1.camel@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8ba92aa3e97bfc3df89cd64fffcbc91b640530f1.camel@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 19, 2021 at 03:18:15PM -0400, Jeff Layton wrote: > On Wed, 2021-08-18 at 11:34 +0200, Rodrigo Campos wrote: > > On Tue, Aug 17, 2021 at 6:49 PM Eric W. Biederman wrote: > > > > > > Matthew Wilcox writes: > > > > > > > On Fri, Aug 13, 2021 at 05:49:19PM -0700, Andy Lutomirski wrote: > > > > > [0] we have mandatory locks, too. Sigh. > > > > > > > > I'd love to remove that. Perhaps we could try persuading more of the > > > > distros to disable the CONFIG option first. > > > > > > Yes. The support is disabled in RHEL8. > > > > If it helps, it seems to be enabled on the just released debian stable: > > $ grep CONFIG_MANDATORY_FILE_LOCKING /boot/config-5.10.0-8-amd64 > > CONFIG_MANDATORY_FILE_LOCKING=y > > > > Also the new 5.13 kernel in experimental has it too: > > $ grep CONFIG_MANDATORY_FILE_LOCKING /boot/config-5.13.0-trunk-amd64 > > CONFIG_MANDATORY_FILE_LOCKING=y > > A pity. It would have been nice if they had turned it off a while ago. I > guess I should have done more outreach at the time. Sigh... Would it be acceptable to add a warning when MS_MANDLOCK is passed to mount() and backport this to stable kernels in order to get reports of any such use in a reasonably short time ? Anyway it sounds important to at least warn about deprecation. Willy