Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp82107lqs; Thu, 13 Jun 2024 04:42:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWxBvb9M5dq5Ti+dAkZMWnJ9rPmdUuD7wTovolxV9a4vfa9Jc75upWJ/LEbi/XgGPR8rNDShlzQ55E7MAl5a2rqzbWssIPQVs6beRR2hw== X-Google-Smtp-Source: AGHT+IHXZNZxLRWlhSlgFId+Kxg3m54LWw9uRH/ScBfO6VS/aG4d25U+CxjMhhF9533C922UXeU7 X-Received: by 2002:a17:907:7e96:b0:a63:49d3:e1c5 with SMTP id a640c23a62f3a-a6f480191bfmr477692766b.64.1718278954472; Thu, 13 Jun 2024 04:42:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718278954; cv=pass; d=google.com; s=arc-20160816; b=wnc5h5V7lRP5RTA4OIHDOrlhGqaQ17SEpSiLXbU9Pjw1YHuxZLdpOHgGP0+bqob8ys hnEgcaa4df/mVWBtodLkn+alneLnNv1bjoRuqu+nfMY31WTvWAukfZNs/MWOkmL/e+h1 Tc4nEha2WC7XAiIDf4+FAyJgVMUg2NIw1Nib4B7s6IoSCxdZNoq1hFSa3PXbpR4WSfnl LWcmVD5L3nmmp39CbrIkBo5EJvxTnOc4NhlLnCvIOd6U3IVqD+h+8R8f4T8O3nGSXZAQ WgE2A23TFf4EL5wwfhfXBtwk0MHls8L3ecY154+WjBs4PBb3fIfaXG3D6qrszmnqCt3P 0z7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jaNT3zo3gfz8AOmJBQtroZoheOas3leVOE4HRkHldXM=; fh=QLozjrp9d9uRyytCRHD5uKRCcN5KcxSbdiSrewFGivM=; b=IZkhxYLNMbkLL8aNQRIplSGd+iAu6hWrIS8dPs0bENYsPlvJgULutITY1SzODMTom2 jpf7hkTmwefxNsz+lpuP1LusuNnLdiH7mzVMeZhF6wB0DojVZipuz46on2tmIJPjb+PR H5G7b++QSEYzxnIIOOAr3dmhboJ8iJ2arc4lSxnT+6HuAB9LqLCo25ULlmWsDF1ikUnJ wyZlIMbSVF3LK+NN6Wahaj62PcGrFcqY7niCkrP9Hdz6M3o3qPpedP3OLe3XUIJ2F7vS q4P/SBMufr/WMVUkpSbyWDXEHfsPIdWmPK387muSgiMImjbVGnse//7Cjs6wBR5MIOoy VXxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BrzOmoJt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213108-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213108-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56e3cb08si59343766b.842.2024.06.13.04.42.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 04:42:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213108-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BrzOmoJt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213108-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213108-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3544A1F21EB7 for ; Thu, 13 Jun 2024 11:42:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 437571442F7; Thu, 13 Jun 2024 11:41:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BrzOmoJt" 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 6107E143887; Thu, 13 Jun 2024 11:41:25 +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=1718278885; cv=none; b=RIotXltDVVtnurkWJkZEmTHBSWVrGhvPUqGmgFiaarKOwseIRWjgfo9iwd9drpQIRQEhgvmofcOsSQuiZBN6syNwAUCoUYCu+jvjThh4mdSG1iTmsc+2Kgc4GbqLRDjmZfD73ksBUg7Qhci9HUi7CW0QVU1wOyCk5YWeQExK+Mg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718278885; c=relaxed/simple; bh=U9ZizVspjrmeqbp//XquzwtYOP7wSDEfPDpI1joYw7A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DyqPa8UBNK1zUhwUtOsHYwLZu0beFRTa0WEuIhGBEuKEu3gvzIejHGx6Hkpcu3EldW+fzOFJCJoOV8iMssA9Hv6XMYaz1xms8YWc53i4/TSa/EbeHpn4n+y8QwQHW4VaU/ROTb19MmIRXcmZew1K9Vd5nhR9iCQrTGPBEDxEORE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BrzOmoJt; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAD8AC32786; Thu, 13 Jun 2024 11:41:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718278885; bh=U9ZizVspjrmeqbp//XquzwtYOP7wSDEfPDpI1joYw7A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BrzOmoJt2bHwHgtbroyTbIOgl3Y8m4N8mgClsXZkYSMxVEP3DJRm5S7e0cTxj1vqF mzJe2dDiR8b5evIKpDxeYAlTqGZqiBMp1ws7Sg/oavroh6APJzEC+kMc0FwFQjLQea oIpjtEIYG3JjgrAw6SWVjhOs2yY4mBaXtTClHGdnCXEZpLunesuA6/G7sKplbDt3tJ mlLs6VgjQ8x7vIFpjlj6evpqgiG+xPQtgaq6ARJ61KNosi1W3DYxUDvrFoUkbuPmEn XflzqGrMNm6i9Nqiw74x7v0zUu9RkHbkr94zlXeLhQ9AxQPbH2pgV66WZg4vmFdHwT cg7iPT7qvINww== Date: Thu, 13 Jun 2024 13:41:20 +0200 From: Christian Brauner To: Jan Kara Cc: Mateusz Guzik , viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-bcachefs@vger.kernel.org, kent.overstreet@linux.dev, linux-xfs@vger.kernel.org, david@fromorbit.com Subject: Re: [PATCH v2 2/4] vfs: partially sanitize i_state zeroing on inode creation Message-ID: <20240613-frieden-datteln-afe55df1359b@brauner> References: <20240611120626.513952-1-mjguzik@gmail.com> <20240611120626.513952-3-mjguzik@gmail.com> <20240612092703.u5ialfzz74pfnafk@quack3> 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-Disposition: inline In-Reply-To: <20240612092703.u5ialfzz74pfnafk@quack3> > This would be more logical above where inode content is initialized (and > less errorprone just in case security_inode_alloc() grows dependency on > i_state value) - like just after: > > inode->i_flags = 0; Fixed that in-tree. Thanks!