From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 761DDC433FE for ; Mon, 14 Nov 2022 18:20:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236514AbiKNSUo (ORCPT ); Mon, 14 Nov 2022 13:20:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236471AbiKNSUn (ORCPT ); Mon, 14 Nov 2022 13:20:43 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EE33A461; Mon, 14 Nov 2022 10:20:42 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DB321B80E9A; Mon, 14 Nov 2022 18:20:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BF45C433D7; Mon, 14 Nov 2022 18:20:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668450039; bh=6rrV9le5kLOXSW9wg4wECadYOt8F4Fow9dl9fDjmFpM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fwWVc+qDMP/qhateNdVfHhROUCFKrHjgWeIylTD8/2rsblM+v65ZGj/0SMeusqsT1 ojNEBSeo6PWtqM9Rghx2QxNfBOQZGY6WtHTFuF9e7ZZECebOOeB+qqfnUr0CerSETZ HvdaHtKB7BCHd9SRTG2qw0OSwv76NP36ohGfLIEpUGlABTZxH0tSuXSN3NEYGNoE39 0OY3/GBQjuIObhEsgiD5WcrZ62jM0+ezTIXlQSIiwWkb0JTsX/ZIKk+1BUnkc+Ppz6 Wsl6f9hoI0DLzouQqcSqtykxbEb3RyWH7JRR1GPCrzoOciWfNP9ZbjgF2YBkctrwcu XJ6uKckB+2Vww== Date: Mon, 14 Nov 2022 18:20:37 +0000 From: Eric Biggers To: Alexander Potapenko Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, tytso@mit.edu, adilger.kernel@dilger.ca, jaegeuk@kernel.org, chao@kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, syzbot+9767be679ef5016b6082@syzkaller.appspotmail.com Subject: Re: [PATCH] fs: ext4: initialize fsdata in pagecache_write() Message-ID: References: <20221114082935.3007497-1-glider@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221114082935.3007497-1-glider@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Mon, Nov 14, 2022 at 09:29:35AM +0100, Alexander Potapenko wrote: > [PATCH] fs: ext4: initialize fsdata in pagecache_write() > > When aops->write_begin() does not initialize fsdata, KMSAN reports > an error passing the latter to aops->write_end(). > > Fix this by unconditionally initializing fsdata. > > Also speculatively fix similar issues in affs, f2fs, hfs, hfsplus, > as suggested by Eric Biggers. You might have better luck with separate patches for each filesystem, as it might be hard to get someone to apply this patch otherwise. If you do go with a single patch, then the subject prefix should be "fs:", not "fs: ext4:". - Eric