From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EAE442FE04E for ; Tue, 9 Dec 2025 01:47:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765244857; cv=none; b=rATpjRT9JZkFxLZ3e2WBJ9A/8HuW7g3ckJrDMsJMu5I8ONCCR3K8Qsk9LM2dwFMDAgQlax2ryQ/cWj/5SI8Km9q2KpRpCHU9SoDpwcq8VknwfvLz1pPYR5AMGwyxAjzrsJ5U7uTNDha6rh/y4/txWc+3CRHaSSqkud/+dViPzTg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765244857; c=relaxed/simple; bh=4cKepWPJcFwPX4THOx/vqYkh+UCHtZ7kDQ2aqoDPkm4=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=r7yx92s9Uf6Sh7MBdqzs4mwQnzXQuZWGiiwAR2Grdm/Ds3xkSZbR5G/si3YzOCanmEgDowxzrD6NtaZKT/V4Tq3M/3S8zreWaKiA3PezwzaKrPeRNkWc9hNxtrCQ6M5G6wUL8xkpl17QV9qP+BsEPVz4QMQ0N5wZq96hu6KTpjo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=d+DcxBjg; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="d+DcxBjg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B769C4CEF1; Tue, 9 Dec 2025 01:47:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1765244856; bh=4cKepWPJcFwPX4THOx/vqYkh+UCHtZ7kDQ2aqoDPkm4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=d+DcxBjg5jtSOTqE0qSB+K/QhwVBgzF+xRAiQmVy2Jcv25IRmejK0ZvuvXCb4MVYZ rltceVBT3mjL/bFp1ljSmf6rATb1gn7Z4jNELn9jVdWxCGqzNVWCZcqI648xY0ZU4N 34mK/77uPBCNxsxVKSQe3j6hNKkJxULaiKOG+DxU= Date: Mon, 8 Dec 2025 17:47:35 -0800 From: Andrew Morton To: Ahelenia =?UTF-8?B?WmllbWlhxYRza2E=?= Cc: Hugh Dickins , Baolin Wang , Matthew Wilcox , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Christian Brauner Subject: Re: [PATCH v2] tmpfs: enforce the immutable flag on open files Message-Id: <20251208174735.35aef48b1a15a2d08e073bd0@linux-foundation.org> In-Reply-To: References: X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Mon, 8 Dec 2025 22:50:15 +0100 Ahelenia ZiemiaƄska wrote: > This useful behaviour is implemented for most filesystems, > and wants to be implemented for every filesystem, quoth ref: > There is general agreement that we should standardize all file systems > to prevent modifications even for files that were opened at the time > the immutable flag is set. Eventually, a change to enforce this at > the VFS layer should be landing in mainline. This changes the VFS parts of tmpfs, not the MM parts. So please resend and also cc linux-fsdevel@vger.kernel.org Christian Brauner