Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1614694pxb; Fri, 20 Aug 2021 09:35:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3cPQR9mztlAybfFED7cb0XRpCJ62Kk5EuonyTW4DIVvbNkhZVFU+JW2rPf/bt92OaoEOu X-Received: by 2002:a17:906:8a6a:: with SMTP id hy10mr22862566ejc.319.1629477343868; Fri, 20 Aug 2021 09:35:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629477343; cv=none; d=google.com; s=arc-20160816; b=XWaob4JjXxHwBcvLf4g1AvO350vrogVL345y4Ebv7L4GMAsmCPgOqPwDiE6kpHFO0h vaBTdWOnXSK78fuXhcPYstp34v4o6EwQ29jMak+l7S+y/+OWAr5LDQaBG2VJWIn1nADb fFyfW1p2e5MPwCIUTCZFbhU7mP9W6v0IYErLGmC8ctpGh/eZgAKwawg8g/zvm7f+h0od 9rUmE64sUo7L1xXV6FxPgZ+pUBweNPuuluRDrVW4L2YJow1Lzi7AeGC3tvIAsHPdK1Fv Geb+mIY4YQlAPy3Lp5wcsgv6vion6Y9c4yPGUnK2YtE7Ie64IJ06FwD0gpUf8qehgTsz qQxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hx/7x/JErQYdtBSrXWm/zLl3le+VQc9WWGW/gattMeA=; b=oKrWIuAV2b3qdVBud0Vg2nY36OwOJRoBavg6fyqU4YGufH9nxJQQ2qq1axSmu4NntV B182OGOW8IggfbafFQL7du6k7/gxlVg60HnewwFF6/kO6kGeuJX6rqoxu5TOJaMXi7Vo d1jQSWLMwtkrlish+GV6o6YlLP+5BcoFk/iuJiv1VomkiLjb8EpAKn/FY2JcC33eJ50y l0AeRkMkj9cS0U9PvL5CDxSJfnQxylgPl7rvqeUuZ/nSxtqGdfJh0xyssCeqNBRDE7bs g7nL4U665ILt9LCWMB/Y/TwbUlb3INRK8+IQsAw0RAOvzd5RC5svvLK4n2PmUhaKAfQR cWMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="AHhWe/b1"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 27si7076609ejx.138.2021.08.20.09.35.08; Fri, 20 Aug 2021 09:35:43 -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; dkim=pass header.i=@chromium.org header.s=google header.b="AHhWe/b1"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229772AbhHTQbM (ORCPT + 99 others); Fri, 20 Aug 2021 12:31:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbhHTQbL (ORCPT ); Fri, 20 Aug 2021 12:31:11 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C40D3C061757 for ; Fri, 20 Aug 2021 09:30:33 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id x16so9058093pfh.2 for ; Fri, 20 Aug 2021 09:30:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=hx/7x/JErQYdtBSrXWm/zLl3le+VQc9WWGW/gattMeA=; b=AHhWe/b1QJudaK4piB/jpm81AVtQQUsE+FQy6FY3gPQsXxurQppN29+lwRB1w87Hk9 s5LnDo+Sqxo/2pCK/R5LdbAN1tgOMvgop4IKUrmYIGWWy9GZBoPvfMqYDTrPjGlW+5pa Zl5yoXP7YgbsHkiiQ3CQ7BLFzXLsUcMFh1zuU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=hx/7x/JErQYdtBSrXWm/zLl3le+VQc9WWGW/gattMeA=; b=JmEEKj0hlvuRRDIvmIS50yqI1zmfcjaJs7oR6PKXC9B5HxrtuVc0acxuEqZZqGDHmw Crf4MY6ak7/+izA3DOFpvZZzv0w02/0Cquzb6A2RzP0PgJYUmHKFqhMF4teZXVlXTorG MdrV0g9FYYucNa9WDJ/G2eEb1fLwVlejnygIfvsHEYU69AckQvAltef1SthlT+t5CiKc 8oCoxj/rILx2MeYwkEz3a9Jc0BLtI5+hE16WsR3Y18PR+djAXr15hNiohAss2/hPn7B4 0AviSzUWVPpn3tmXHIEHif6mz6JGAe4Fw4rKObUzzCAuYnvpVqLrtxu6lhSHa1aimqn1 vC8A== X-Gm-Message-State: AOAM531tYuP51ink6qcp9BI+cbygVOiBMeMvDP4R7u4+hZPueUrysm// wyt4DWKD6k2+4AAKjLcP/c0agA== X-Received: by 2002:a65:608f:: with SMTP id t15mr19281560pgu.452.1629477033146; Fri, 20 Aug 2021 09:30:33 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id b7sm7023269pfl.195.2021.08.20.09.30.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Aug 2021 09:30:32 -0700 (PDT) Date: Fri, 20 Aug 2021 09:30:31 -0700 From: Kees Cook To: Linus Torvalds Cc: Jeff Layton , "Eric W. Biederman" , Matthew Wilcox , Andy Lutomirski , 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 , 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: <202108200905.BE8AF7C@keescook> References: <87eeay8pqx.fsf@disp2133> <5b0d7c1e73ca43ef9ce6665fec6c4d7e@AcuMS.aculab.com> <87h7ft2j68.fsf@disp2133> <87k0kkxbjn.fsf_-_@disp2133> <0c2af732e4e9f74c9d20b09fc4b6cbae40351085.camel@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 19, 2021 at 12:15:08PM -0700, Linus Torvalds wrote: > On Thu, Aug 19, 2021 at 11:39 AM Jeff Layton wrote: > > > > I'm all for ripping it out too. It's an insane interface anyway. > > > > I've not heard a single complaint about this being turned off in > > fedora/rhel or any other distro that has this disabled. > > I'd love to remove it, we could absolutely test it. The fact that > several major distros have it disabled makes me think it's fine. FWIW, it is now disabled in Ubuntu too: https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/impish/commit/?h=master-next&id=f3aac5e47789cbeb3177a14d3d2a06575249e14b > But as always, it would be good to check Android. It looks like it's enabled (checking the Pixel 4 kernel image), but it's not specifically mentioned in any of the build configs that are used to construct the image, so I think this is just catching the "default y". I expect it'd be fine to turn this off. I will ask around to see if it's actually used. -- Kees Cook