From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 CCC552C3265; Tue, 12 Aug 2025 07:56:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754985395; cv=none; b=f7VMWZcwDdKN3F4jIkcpOLe80d2mUWJ6M6KYSYQIzXoNXXymVNYelzcZ3/jdpyIbwMBBOf+BzXdn0t3p5/8fSoowr+m49yhO0OM3Wg2MvG3WprVQJe+dK+WDb4n4AH5KEUziyUYqKkk4mtKOxqExoMM4EIEiBFmP/O4zM1mIHNg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754985395; c=relaxed/simple; bh=Wzn7t/5s/NJlYDD41aeYHxbCBQtFPobZBWXGmY2Yago=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EgER5lUR+L/L8smDh6RUv+WgYE8ndUncpCAIm7Q6CuN/JXjRY5LiK6pCiQHO3Uu4UvawISqkQX8kcIvVe0zWKuDtaKn7JNiPNRbVr8Y+QwamdOT4TBakpCaUshMsKUCu3YODxAvKgmqhrMpVfKokD7vuw2AetHreAJn1G5SDbl0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 8DF4A227A87; Tue, 12 Aug 2025 09:56:28 +0200 (CEST) Date: Tue, 12 Aug 2025 09:56:27 +0200 From: Christoph Hellwig To: "Darrick J. Wong" Cc: Christoph Hellwig , Andrey Albershteyn , fsverity@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, david@fromorbit.com, ebiggers@kernel.org Subject: Re: [PATCH RFC 06/29] fsverity: report validation errors back to the filesystem Message-ID: <20250812075627.GA20240@lst.de> References: <20250728-fsverity-v1-0-9e5443af0e34@kernel.org> <20250728-fsverity-v1-6-9e5443af0e34@kernel.org> <20250811114603.GB8969@lst.de> <20250811153142.GJ7965@frogsfrogsfrogs> <20250812073455.GA18413@lst.de> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250812073455.GA18413@lst.de> User-Agent: Mutt/1.5.17 (2007-11-01) On Tue, Aug 12, 2025 at 09:34:55AM +0200, Christoph Hellwig wrote: > On Mon, Aug 11, 2025 at 08:31:42AM -0700, Darrick J. Wong wrote: > > On Mon, Aug 11, 2025 at 01:46:03PM +0200, Christoph Hellwig wrote: > > > On Mon, Jul 28, 2025 at 10:30:10PM +0200, Andrey Albershteyn wrote: > > > > From: "Darrick J. Wong" > > > > > > > > Provide a new function call so that validation errors can be reported > > > > back to the filesystem. > > > > > > This feels like an awfull generic name for a very specific error > > > condition. > > > > ->verity_failure? > > Either that or make it generic. Either way it needs to be documented > in the usual places that document file operations including explaining > when it is supposed to be called. FYI, I only realized now this is actually a fsverity operation, not a file operation. Sorry for the noise. So maybe file_corrupt is fine, but verity_failure sounds fine to. Maybe the fsverity maintainers have an opinion.