Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp263739lqi; Wed, 6 Mar 2024 17:05:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXLKbt4C5Ii9uIj+Ugb0BIVlo4lgK3s6MByYIkozPpGcEZsh68IUznfhSWpO1nlXQSaAAkNC6RJ1AmvqzTPBaY77TgvjMrSnNQE/dgmpQ== X-Google-Smtp-Source: AGHT+IFtcN5xxZ/KgrKjTcxlP6n9Qm/tIVZLjNCb7T1+T5CpEl7kJ0RpeNFbVYwh/dplKRRiWvms X-Received: by 2002:a05:622a:144e:b0:42f:17f1:a13e with SMTP id v14-20020a05622a144e00b0042f17f1a13emr1421752qtx.7.1709773508302; Wed, 06 Mar 2024 17:05:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709773508; cv=pass; d=google.com; s=arc-20160816; b=gSjV0HZ/OzYRCoe2dnq4y5ctAh6fd47NKeTzTu4tdsHDpx6zvlB+KlvkKd5Tsgg3WM e+BsxGXpyUDTGU1oQ4/ThGC1X6jYO1pjBfpCqCIgfM4Y94wcRbJB4sYaWbreHu6Oew+O xmSOVP4Ws2rNEyOfPx55oo71h420JS5jIrdcCX3wQeimPGC0JT51Bt7FDFkNtL8xiAM0 nvSjRAo13gJWG+KNReSU0La+MHaDqgIOg7OsVCQHLppnCUoCV3o9CGFBG6/vTn7rfNV6 j5+g0iy976nJ9G/h6VvVB161FSzYN0PiA4/oeb1zmjYf5wts9pahh2gMFQDzQZoqk8Tp VqwA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=2dAsCgCv2K/OXosZMuksOSTyVcfNWWsS8n2YgsphkE0=; fh=iJM3nW87kKIFsk3oKSdTnuMFUcXyxPJQXJY1gCACnlA=; b=vCELtPTlJGkmpD8fLDNTkPzQ114wjXv5W4Mq2/OsTdRtLh65kRAS1t4C+2N7DIwkII q54XMezmUWoX8i7OSCeEn05T8oYdvrB2SA6lbNLFThHStbU9p0uNIgbMsTW3a/CXzC5Z Y46iyKQ8kGK2qZq2B52pgT6VmX82vvLriE9adbftbVTO4DNfXwZxc16j2ff/UdXhJiKs n/bvcuHUvo+hGi9jhIRd1U2ywSbwbf0kyp4PctJohncTIopi//RmlrcPsQ2CwEqbFl6Z rxCiYWj/Q/y01k9OLkO+mFjBkvXIQqadjIcZvb6ohe6yENjVnc08rmyByWgsbE9x0QJJ Igrg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZiH6G+ET; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-94803-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94803-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o16-20020a05622a009000b0042ebb41ec8fsi11555715qtw.156.2024.03.06.17.05.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 17:05:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94803-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZiH6G+ET; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-94803-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94803-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0AD291C21909 for ; Thu, 7 Mar 2024 01:05:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8E8364A33; Thu, 7 Mar 2024 01:04:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZiH6G+ET" 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 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,