Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp802915pxu; Wed, 7 Oct 2020 16:57:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvPwdgDMc8lELta+g8r3/RhO1jHY9tYNvf+OI60aXul96GlMKIYVEqv3bLXU+o+3889/m2 X-Received: by 2002:a17:906:4c84:: with SMTP id q4mr5973287eju.525.1602115049833; Wed, 07 Oct 2020 16:57:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602115049; cv=none; d=google.com; s=arc-20160816; b=mTuUHqtS84Iguemxl4SNs7z5J+REGEZmk95D0+TOumVPzW7yGh3Nz0JDKg31AfnHtH UolsSfCFDyKXoOIm4WsqpmUii/apRPfmDEuQm7QpMz0hWpTcZIgsZ9DIlIOAjtTnHQlq Bb2M7QIpMeVNFRSKh21ReZMNmV9QTc7nkbxftrAzDAUGoPqlDxBxeL7LvqZy9D682KG6 FKB3ngRwuIWoCTlTgEck2tiF87aR5G/wOrW0BL6/VaEHo1BxUiamKHtBBJzqpCcYw1Ze lYOELuR1WH/Cy4sStfMYtMYzzZcPtFpNEZDmqH2kZA0zye9K6tqRFSL8lYh34mZb+tuW oiBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=glUSV/N1jXIMwWDTVuu1O7SFRN7SseR5volhQc6HzA0=; b=owJDiyiRry2zbvmXkPRgLhzV3V0bKwM87nEODrKvcKlItsOt2FQe8WJXeq3kr/wp9i urWKTELfxxd+EhagXZxmKZVDbgarCzOrN763FIE/t6tlck3MMlU8XZzMvVRACNPdaotu syxoqEKV0Apw/upoCXuC4nypuplXaP4Snr9XPWA+9is2cd0F359Jg2ghm8mkj+gPJqhb hv1WcULY3Fy1dQFfFCbN5u2aduh1015bTkjn0GrSHjNGFmbshB++URWWqimoZi+t+BRN XKcRny5YkXo7SAL6hpv4KJVDWIEGsoNjrPOvpO7w1U+QVgqMbgG03iWVGDw+MD01tysc AWJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WOY3O+Tr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r26si2805759edi.587.2020.10.07.16.57.07; Wed, 07 Oct 2020 16:57:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WOY3O+Tr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728554AbgJGVdE (ORCPT + 99 others); Wed, 7 Oct 2020 17:33:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:44886 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728854AbgJGVcz (ORCPT ); Wed, 7 Oct 2020 17:32:55 -0400 Received: from gmail.com (unknown [104.132.1.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0434B2083B; Wed, 7 Oct 2020 21:32:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602106375; bh=/x/sTo/eJjSQ296lRma1jF5McQ8+RG2igB6SGcnoNr8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WOY3O+TrN+cvDQ/hm3RFovBwbNfMijWaOZqhkdXkTxTk3tjnXhgYbL4P6ngbHbFOy 6cciT4lsiwQl02cBTh93+KLCmNjgJW5N8vvkZyOP3J84CN9/AEtZ86GjpdoG1Z+7M2 e7RsH7vVKWcK4ICsUNhGBRG8ZVzDjKuu3DzHtzdY= Date: Wed, 7 Oct 2020 14:32:53 -0700 From: Eric Biggers To: Jaegeuk Kim Cc: chao@kernel.org, linux-f2fs-devel@lists.sourceforge.net, syzkaller-bugs@googlegroups.com, linux-kernel@vger.kernel.org, syzbot+ee250ac8137be41d7b13@syzkaller.appspotmail.com Subject: [f2fs bug] infinite loop in f2fs_get_meta_page_nofail() Message-ID: <20201007213253.GD1530638@gmail.com> References: <000000000000432c5405b1113296@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000000000000432c5405b1113296@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [moved linux-fsdevel to Bcc] On Wed, Oct 07, 2020 at 02:18:19AM -0700, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: a804ab08 Add linux-next specific files for 20201006 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=17fe30bf900000 > kernel config: https://syzkaller.appspot.com/x/.config?x=26c1b4cc4a62ccb > dashboard link: https://syzkaller.appspot.com/bug?extid=ee250ac8137be41d7b13 > compiler: gcc (GCC) 10.1.0-syz 20200507 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1336413b900000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12f7392b900000 > > The issue was bisected to: > > commit eede846af512572b1f30b34f9889d7df64c017d4 > Author: Jaegeuk Kim > Date: Fri Oct 2 21:17:35 2020 +0000 > > f2fs: f2fs_get_meta_page_nofail should not be failed > Jaegeuk, it looks like the loop you added in the above commit doesn't terminate if the requested page is beyond the end of the device. - Eric