From mboxrd@z Thu Jan 1 00:00:00 1970 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=-3.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no 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 33E3DC5B57D for ; Fri, 5 Jul 2019 03:56:06 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (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 E3F01216FD; Fri, 5 Jul 2019 03:56:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sourceforge.net header.i=@sourceforge.net header.b="lqMhUCqU"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sf.net header.i=@sf.net header.b="PZ19bzAT" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E3F01216FD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bugzilla.kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-f2fs-devel-bounces@lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1hjFKE-000707-1F; Fri, 05 Jul 2019 03:55:54 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1hjFKC-0006zz-Ax for linux-f2fs-devel@lists.sourceforge.net; Fri, 05 Jul 2019 03:55:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=MIME-Version:Content-Transfer-Encoding:Content-Type :References:In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=U59Ew3XFjuO6TDtFowR3VpMoI5yUFkx7mTjjrNbIQpU=; b=lqMhUCqU6D15RzciD0U6wt5+o4 DjjEIhkkgqS/AFmq2NFaUQdpt36I7yODiptAoimHOJMfAhOXLyDHcHPYpgte2FzO5OBI7a4rk1EBI deHTJC2uvbWtlc9QFom7j6uxT3jmu/6Dcifr98JfwtByViJ2L2TaWU3nYC351z9/fCHg=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=MIME-Version:Content-Transfer-Encoding:Content-Type:References: In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=U59Ew3XFjuO6TDtFowR3VpMoI5yUFkx7mTjjrNbIQpU=; b=PZ19bzATuXRPAN8KYUmcPH2dqw dR9cdJESnXxXN2bva/MjaAFbGwje6OAM7dxCd7Sqp1bl193kW7PCFhMCc71DKRbmRUxWB4pYdq418 A+HncVqaN0w99Jlcq3AMg6E/bY1DvE2UCYWgiudmHfaTjYeGdga2iSgH9KAkUVcyl10o=; Received: from mail.wl.linuxfoundation.org ([198.145.29.98]) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) id 1hjFKL-008WpK-S6 for linux-f2fs-devel@lists.sourceforge.net; Fri, 05 Jul 2019 03:56:03 +0000 Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37AD02875F for ; Fri, 5 Jul 2019 03:55:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A21A28947; Fri, 5 Jul 2019 03:55:56 +0000 (UTC) From: bugzilla-daemon@bugzilla.kernel.org To: linux-f2fs-devel@lists.sourceforge.net Date: Fri, 05 Jul 2019 03:55:55 +0000 X-Bugzilla-Reason: None X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: AssignedTo filesystem_f2fs@kernel-bugs.kernel.org X-Bugzilla-Product: File System X-Bugzilla-Component: f2fs X-Bugzilla-Version: 2.5 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: chao@kernel.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: filesystem_f2fs@kernel-bugs.kernel.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugzilla.kernel.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP X-Headers-End: 1hjFKL-008WpK-S6 Subject: [f2fs-dev] [Bug 204043] F2fs kernel BUG at fs/f2fs/data.c:317! X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net https://bugzilla.kernel.org/show_bug.cgi?id=204043 Chao Yu (chao@kernel.org) changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |chao@kernel.org --- Comment #1 from Chao Yu (chao@kernel.org) --- Could you help to add below diff to check debug info? diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index bc5cea27b512..333285cb14c5 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -241,7 +241,7 @@ static inline void __submit_bio(struct f2fs_sb_info *sbi, struct bio *bio, enum page_type type) { if (!is_read_io(bio_op(bio))) { - unsigned int start; + unsigned int start, ofs; if (type != DATA && type != NODE) goto submit_io; @@ -256,7 +256,7 @@ static inline void __submit_bio(struct f2fs_sb_info *sbi, goto submit_io; /* fill dummy pages */ - for (; start < F2FS_IO_SIZE(sbi); start++) { + for (ofs = start; ofs < F2FS_IO_SIZE(sbi); ofs++) { struct page *page = mempool_alloc(sbi->write_io_dummy, GFP_NOIO | __GFP_NOFAIL); @@ -266,8 +266,16 @@ static inline void __submit_bio(struct f2fs_sb_info *sbi, SetPagePrivate(page); set_page_private(page, (unsigned long)DUMMY_WRITTEN_PAGE); lock_page(page); - if (bio_add_page(bio, page, PAGE_SIZE, 0) < PAGE_SIZE) - f2fs_bug_on(sbi, 1); + if (bio_add_page(bio, page, PAGE_SIZE, 0) < PAGE_SIZE) { + printk("ofs:%u, start:%u, io_size:%u, " + "size:%u, vcnt:%u, max_vecs:%u", + ofs, start, F2FS_IO_SIZE(sbi), + bio->bi_iter.bi_size, + bio->bi_vcnt, + bio->bi_max_vecs); + WARN_ON(1); + break; + } } /* * In the NODE case, we lose next block address chain. So, we -- You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel