Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1060468pxb; Fri, 15 Apr 2022 20:03:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlA9ONgZfI+K31lCFuHaa93AII2qlF5e7hIUcyqG2UYyDymVRkdSiTEN0AXLyaGdXRazw3 X-Received: by 2002:a17:90b:374d:b0:1d0:3c19:e1d4 with SMTP id ne13-20020a17090b374d00b001d03c19e1d4mr7210075pjb.123.1650078218751; Fri, 15 Apr 2022 20:03:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650078218; cv=none; d=google.com; s=arc-20160816; b=m/ExM8i8q+LVam5N4qbWC80vilfiklbr9QbnwzLUri/ELLQ+2+NHJL1jfHisDr62U9 LLCXSBkJktbdOYoV6AOTwr+6bkbs6Uaz4cd8j5sZ+qyX3KZHkHdlPrng5T4ax2gzvc/4 VO3KiwNOxDkWY3ELEKPX407+pm86x1Ao3gtsNarPqFk+bicFCySwJBfqjzoDb4M6Ivsr dvL1xQvq91rig8AF03oubbqtJuGtk74vI64vpb4eS4Mb595trfF/F6rfl154RzEny0ch 17uZSnqaikgMPnVcjcAZur3uonTR4Pww8YjYdHXilKRngQDxuKjVg8FNVOIKl9EkN9o8 7whg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=hvkxHxHnlC7tfrlktfqS64YVUxXB+tPlWOwaatjUT00=; b=AlhTUMk7QvnPVdpa5pZ+HtgKf0qdqAEGrJ2edCVnJcCCrmi7Gzt85jwyMNi0ALZe1O SiqDZZVJVI8ymx7H2Mk3ZmeAfhyAcY/vfOq2zkNLUQ/4Gn0dzDOQZM8v5s/O+U6xDcGr wNUFukgaZolD9MaZoVYiol4WbUIqvahcF6Vudb5r2MC8vCIPr+bFbQWQ/6b7J9OCps9s dEmSPUb1LJMJUIrV0vfIrNcDRH1Q5XnTcb9jilfh4T1fNH51eIzODIPYHlAQUbdCJu8l iTTtfC/dESyMyKnGkoE/SqSitlwm3MK/5CYtmeLsMeSGb3h5OAuzriEPUMOeyv9RMm6n siBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kKdejRF7; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id g21-20020a635215000000b003816043ef28si2713628pgb.285.2022.04.15.20.03.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 20:03:38 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kKdejRF7; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5B9067563A; Fri, 15 Apr 2022 19:30:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229948AbiDPCcR (ORCPT + 99 others); Fri, 15 Apr 2022 22:32:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229935AbiDPCcP (ORCPT ); Fri, 15 Apr 2022 22:32:15 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F87556742 for ; Fri, 15 Apr 2022 19:29:44 -0700 (PDT) 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 8FC12B831D5 for ; Sat, 16 Apr 2022 02:29:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 232A0C385A7; Sat, 16 Apr 2022 02:29:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650076182; bh=uUd/Mmr+LuhyFMq1LsPUx9KBDlPY2jN3/XYmm96PzHc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=kKdejRF7VlO3kQkyjktX96UX47hHrzVNgIL/LXmp3ngoBfXC3HxgotFjJNnHqgmlZ k3nLSsdniN2ACPKyFWFUKOwE24IU3fKN8aM/W06LHPWiMY1lmCIECJgskTqB9RwUOU j//fH5jUbQGTnfJpGJUw7mmdKJdgcFHKIOAkojp0ZupHywV23GEAOqbtG5bgxy7TQk AKgTXrcmaVPaTnXflmZnPtOjisMy4eYqdTfAgpE3TZKrqN7A+LK2QE6U/K9MXGAjUP j0chy/yNhQAMH/evjg4zu2KapVcm/MeNXTMPyexv4vOsAq3z8xRKIhAlXp6aooZlFB D5L5L9pmdOyLQ== Message-ID: Date: Sat, 16 Apr 2022 10:29:39 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH v2] fs: f2fs: remove WARN_ON in f2fs_is_valid_blkaddr Content-Language: en-US To: Dongliang Mu , Jaegeuk Kim Cc: Dongliang Mu , syzbot+763ae12a2ede1d99d4dc@syzkaller.appspotmail.com, linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org References: <20220415131902.55028-1-dzm91@hust.edu.cn> From: Chao Yu In-Reply-To: <20220415131902.55028-1-dzm91@hust.edu.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/4/15 21:19, Dongliang Mu wrote: > From: Dongliang Mu > > Syzbot triggers two WARNs in f2fs_is_valid_blkaddr and > __is_bitmap_valid. For example, in f2fs_is_valid_blkaddr, > if type is DATA_GENERIC_ENHANCE or DATA_GENERIC_ENHANCE_READ, > it invokes WARN_ON if blkaddr is not in the right range. > The call trace is as follows: > > f2fs_get_node_info+0x45f/0x1070 > read_node_page+0x577/0x1190 > __get_node_page.part.0+0x9e/0x10e0 > __get_node_page > f2fs_get_node_page+0x109/0x180 > do_read_inode > f2fs_iget+0x2a5/0x58b0 > f2fs_fill_super+0x3b39/0x7ca0 > > Fix these two WARNs by replacing WARN_ON with dump_stack. > > Reported-by: syzbot+763ae12a2ede1d99d4dc@syzkaller.appspotmail.com > Signed-off-by: Dongliang Mu Reviewed-by: Chao Yu Thanks,