Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 09EEDC433E0 for ; Thu, 11 Feb 2021 01:15:58 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4E74664ED0 for ; Thu, 11 Feb 2021 01:15:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4E74664ED0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4Dbdx75FH3zDwkS for ; Thu, 11 Feb 2021 12:15:55 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=198.145.29.99; helo=mail.kernel.org; envelope-from=chao@kernel.org; receiver=) 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=RcEdLIJo; dkim-atps=neutral Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Dbdx03vqzzDwkH for ; Thu, 11 Feb 2021 12:15:48 +1100 (AEDT) Received: by mail.kernel.org (Postfix) with ESMTPSA id 0117A6146D; Thu, 11 Feb 2021 01:15:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613006145; bh=hWpMFDvhdeaSaUSFOQZMqSuM/fCNtN3RQDyF51Ik2Dc=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=RcEdLIJowKtFimfaXiZlA9uGx+iwXeZqdOTJJq49GeD1cRMy7b3yiwNdrOZrY8P5q c2wx4YG2HNgR4ri1SOm/ZUs6bcnMvErQpNXoT4rewuCYLddHrD53qJUJIqfZg0+aXD lzSUSe4lMh/RoFGXD6ccBbP1TECuWEbT7gfI74CXzG/iZbGBdDzzgK27yjei0AZDCs zj+rAjRYBQDpHadwaeTtS1EKA36IKyEQLdi1UKOUAg+z9Dgs+GrtVCxTf2PtNCP21W igquIYRXEp782mWQgZAQrxdXJtCHhiqLjYoty+LRdCog2vRmP7NdEYQg6qMdDaN/0a yGrmf32m30k3A== Subject: Re: [PATCH] erofs: fix shift-out-of-bounds of blkszbits To: Gao Xiang , linux-erofs@lists.ozlabs.org References: <20210120013016.14071-1-hsiangkao.ref@aol.com> <20210120013016.14071-1-hsiangkao@aol.com> From: Chao Yu Message-ID: Date: Thu, 11 Feb 2021 09:15:44 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20210120013016.14071-1-hsiangkao@aol.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US 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+c68f467cd7c45860e8d4@syzkaller.appspotmail.com, syzkaller-bugs@googlegroups.com, LKML Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" On 2021/1/20 9:30, Gao Xiang via Linux-erofs wrote: > From: Gao Xiang > > syzbot generated a crafted bitszbits which can be shifted > out-of-bounds[1]. So directly print unsupported blkszbits > instead of blksize. > > [1] https://lore.kernel.org/r/000000000000c72ddd05b9444d2f@google.com > Reported-by: syzbot+c68f467cd7c45860e8d4@syzkaller.appspotmail.com > Signed-off-by: Gao Xiang Sorry, I missed this patch. Reviewed-by: Chao Yu Thanks,