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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 518DAC5475B for ; Thu, 7 Mar 2024 01:05:09 +0000 (UTC) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=ZiH6G+ET; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Tqrgl2Vnkz3dTl for ; Thu, 7 Mar 2024 12:05:07 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=ZiH6G+ET; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=2604:1380:40e1:4800::1; helo=sin.source.kernel.org; envelope-from=chao@kernel.org; receiver=lists.ozlabs.org) Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Tqrgf3g1Lz3bmy for ; Thu, 7 Mar 2024 12:05:02 +1100 (AEDT) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 03C75CE1CB0; Thu, 7 Mar 2024 01:04:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33B37C433F1; Thu, 7 Mar 2024 01:04:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709773497; bh=KRNYnI2A/lUFgun5k7wE4UrYIdybMwijj6R/qDSCeZ4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ZiH6G+ETOyZM0VO7hul+UjqZ0cYMlFKz+QsJhq3ppKDKymEUXtDnBLms4P7OCsC2M 5sUs/ok9+Ksl4YgYSKgO7CEjCVpchJJXXYE9rSym7HaIJplf6NDjspxxs3rIR+X4io c7SOh5NfSnUypMyoRfXH2Rmi284It9KRuhEr8Yg2Djrbk5wa3JW21Y2pLjsU7Gdfwx ISIJC9idx9S2Q5cEKgCvC6+qv5ge8F0byi1sTF9479I6p5rql+vXlT0pUWZ5LFN3oU uchyWcXWEidmNjniEptrGgPjucWdG6FhYpWjaQss5S34drn9FYgBtjQJYDW8cGIr91 /SOUdWPc7iBew== Message-ID: Date: Thu, 7 Mar 2024 09:04:50 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] erofs: fix uninitialized page cache reported by KMSAN Content-Language: en-US To: Gao Xiang , linux-erofs@lists.ozlabs.org References: <20240304035339.425857-1-hsiangkao@linux.alibaba.com> From: Chao Yu In-Reply-To: <20240304035339.425857-1-hsiangkao@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: linux-erofs@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Linux EROFS file system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: syzbot+7bc44a489f0ef0670bd5@syzkaller.appspotmail.com, Tetsuo Handa , syzkaller-bugs@googlegroups.com, LKML , Roberto Sassu , linux-fsdevel@vger.kernel.org Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" On 2024/3/4 11:53, Gao Xiang wrote: > syzbot reports a KMSAN reproducer [1] which generates a crafted > filesystem image and causes IMA to read uninitialized page cache. > > Later, (rq->outputsize > rq->inputsize) will be formally supported > after either large uncompressed pclusters (> block size) or big > lclusters are landed. However, currently there is no way to generate > such filesystems by using mkfs.erofs. > > Thus, let's mark this condition as unsupported for now. > > [1] https://lore.kernel.org/r/0000000000002be12a0611ca7ff8@google.com > > Reported-by: syzbot+7bc44a489f0ef0670bd5@syzkaller.appspotmail.com > Fixes: 1ca01520148a ("erofs: refine z_erofs_transform_plain() for sub-page block support") > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks,