Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1968345pxb; Sat, 28 Aug 2021 00:11:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCSQUbQDn2rJSx4UwFemU/umeHjd/bUjOe9Q3YhgiFiBhk7mU1PU13Tly7QuxncggXDrOZ X-Received: by 2002:a17:906:ce24:: with SMTP id sd4mr13931356ejb.329.1630134665279; Sat, 28 Aug 2021 00:11:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630134665; cv=none; d=google.com; s=arc-20160816; b=plwsfdrjQyb5Igd5RfAjHcrk20LghaA/6z3ND0jIZbzmgj/pH5oimsLCCbfcvgRry6 VKCA2L2ZaCCeAkERAAufMSxS8wCtdEI4XecG+SbhXdj5WRQ7MeeWlTluUoWTY3TozqSi fl5ym8HYkqU3wvbvuqcOhhAQuBDMljUxP80pZYS+YW2Y4oJVcUX/nrd/UGdyRdyrQ3R4 npL/8AqW+pz1r3widqXIFFq1jwopUWEyQlHU9MOqpmGW9F2wamzAP8yUV0jEr3jvGP+4 0qWYMh6RuTnYyQyoCtzQMrnSU709l2ziIyD5Hr/WepNs/vozIFHVXxTg6D2jUVyBzgwO 7nMA== 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=N1+hIPRrIDvrnbUfwCTBGSXOBTzVeflhGGJxGu6ZyDQ=; b=ibP/UMbt4Am0RQTa4D7RXzKs4Hf4u31xGtg4/XErsugpDo54n0Bj31HWHrc1S/DOuY 21ufx2lKSV3YTEvMx5+ILU5wC49VKbYM60/VYjzDaZs0I0ac0kDI25UWKAbVtRWxmAtm p+po6IJaKkhEKoGt/gqzvOgH/bnDKTYxm5if8rBgpfEiR9Vlslq9e7kTfHMvfyo8QDJg h+9ADvBKI2CgTuPsqiwm9AOILKvQQxWQQe7Jq1ei7g+I2OMFK2+nLTRFoZBxcJXtighw mrr+L0H/YtAGNrboJiO76s4l44iNsWsRfOArHkOdylTmUz247qDDVBPRqxxt18r2YWL1 NOOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-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 j22si6914595eds.71.2021.08.28.00.10.21; Sat, 28 Aug 2021 00:11:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233356AbhH1HLI (ORCPT + 99 others); Sat, 28 Aug 2021 03:11:08 -0400 Received: from verein.lst.de ([213.95.11.211]:35859 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233348AbhH1HLI (ORCPT ); Sat, 28 Aug 2021 03:11:08 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 8E5E267373; Sat, 28 Aug 2021 09:10:14 +0200 (CEST) Date: Sat, 28 Aug 2021 09:10:14 +0200 From: Christoph Hellwig To: NeilBrown Cc: Christoph Hellwig , "Darrick J. Wong" , David Howells , torvalds@linux-foundation.org, trond.myklebust@primarydata.com, linux-nfs@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Don't block writes to swap-files with ETXTBSY. Message-ID: <20210828071014.GA31677@lst.de> References: <20210827151644.GB19199@lst.de> <163010581548.7591.7557563272768619093@noble.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <163010581548.7591.7557563272768619093@noble.neil.brown.name> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Sat, Aug 28, 2021 at 09:10:15AM +1000, NeilBrown wrote: > There are lots of different things root can do which will mess up the > kernel badly. The backing-store can still be changed through some other > means. > Do you have a particular threat or risk scenario other than "root might > get careless"? No, it is just that scenario. But one that is much easier to trigger than more convoluted ways for a root user to trigger damage through device files, and one that can't be prevented through LSMs or the capability system.