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 A606A17F0; Thu, 7 Mar 2024 01:04:57 +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=1709773497; cv=none; b=uvfw3GApyP/mc6p5Dmqhj079op7XM5Z3Ryr4xNmtNUSIC5wiWoE4Dngy4gSHcC5MnVJfFJLF2npLb3VQifSYAnfPKVPcA5+wHlwhA/8vL82StD7L3v72Qk2/wDSQ01o3xazLAz04BIAw6RbHwbc0vo3hU18zVOJJ0fVg1iBS01Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709773497; c=relaxed/simple; bh=KRNYnI2A/lUFgun5k7wE4UrYIdybMwijj6R/qDSCeZ4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jB6+3YMe0d81/AbDB9yVI1g/Cp511dbRDHHTHZr7F+6ZBIN2WR//nyvFX1GW+zcQ1EY6WFcRQLR+aKy+krn9txCEvqGmls4eJKAcRLPWnN7rt3shkpcTVxGS9Mkx1vOEYsW0A47yvDqcuIrZBTCh9vgA5SIuRryR9Na4x0ZW97k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZiH6G+ET; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZiH6G+ET" 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 Cc: syzbot+7bc44a489f0ef0670bd5@syzkaller.appspotmail.com, Tetsuo Handa , syzkaller-bugs@googlegroups.com, LKML , Roberto Sassu , linux-fsdevel@vger.kernel.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 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,