Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp713228pxh; Tue, 9 Nov 2021 18:00:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0ErJ8nCZACOpxbc6xaDi2NLfYA/LD8gf/DfRa8CYn4mhytTO2l8TN+ydAZnhrwW1OTsgL X-Received: by 2002:a05:6e02:1749:: with SMTP id y9mr8848867ill.232.1636509613330; Tue, 09 Nov 2021 18:00:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636509613; cv=none; d=google.com; s=arc-20160816; b=w2o5Z+c3SlyIMkF7UJD9d+IOIPXIh8NpVPs/UkeFDsIS2OCuBCvKU+6L7eaDf+bswm qzhSsTR8oe3kNERuVek+yrCSHVOecwWIRipoGBHovQY4HgBwVG3H3Ngla3I4uJ7MxB4Z yjk+bA/EQIdkX2oOdwnw9zysCtOmy1kUt39TtI0IEOcFPJUxyEpCZ6jqW5APcFHofy1/ UtuIrWBVRRB+v5tZwvIqzvM2YvaR9fwDL/tsfPwsQo0gblnPiYV6zcK4s+8gfScJkfWz igzlR0diw/1eojto9CNv8TlQZ/O6OMHwyB+KE6hB3/3NtN0V/GBHRPT0Lx6CwZWMjZoA kNqA== 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=zXOFaOhM7UBqhlnc8mWVco6oxpDgtmcJRNtE2iuBDTk=; b=G/+1LAPO5RR1PfI+aIZtq+f9x9e3Ey785HDIzVm785yEooeLxgGKWkmt1W3bxQpzwV QNn98LAcjJsDhCoYQ9RxNDAmijmpXIlwN1rrDNGPKczib/b6XJaA2JJQ+nykkcIcOddo jDp9XpJ+8xvM7iXzBedVs/I0vqobT7zdah9k1CWElPdsfLI8ScZaNYlr1rRMOipJoDD2 rtpwWmit6nRZPN2fonvw8s1MNACsrz9Zgl/B+G77xbaIdcaFUzB6J4ysgVTofSCVpSdq KOT0JCgkpvoGHYfODComGcN4hAU2dSGa6iMDK11Daks3Xb7If6PLpoMS4uxsIU/B6Jy6 IZMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=AQkA3AdE; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w30si40949350jal.3.2021.11.09.18.00.00; Tue, 09 Nov 2021 18:00:13 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b=AQkA3AdE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229765AbhKJCAF (ORCPT + 99 others); Tue, 9 Nov 2021 21:00:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229749AbhKJCAD (ORCPT ); Tue, 9 Nov 2021 21:00:03 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C4F0C061764; Tue, 9 Nov 2021 17:57:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=zXOFaOhM7UBqhlnc8mWVco6oxpDgtmcJRNtE2iuBDTk=; b=AQkA3AdEb4cuPXFNGW4mz1JFXq Ytvkd1diKmTVyV8iqpwp6ZsOiqzeCqqyotPDceGERuMmlSaYt24g9IuiQvikSiR3jNeKLZMmpf8QG a86847yltR7Ir+qVoMYfD3ci2J2X9DYFA6ixNydKWqVPA/uSBk71OsF4ElurJB8dNaNMYB/IkH0nT ffcINlTSZrx1aCbrE6OZ6+hsH6+9gPuiBBBh1P3mi3tXENb61JQX5YFsrhVnMdt0BaOfXRu1xKg3A 4Tss+m08/z+dtdC/nOXFPGdOdk1q7/aa6e3jHXwyuHDSXfjJP6DCU05REG+dbG0hFizreotcWlQSt 6D28BfAA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkcrT-001WDx-1w; Wed, 10 Nov 2021 01:57:15 +0000 Date: Wed, 10 Nov 2021 01:57:15 +0000 From: Matthew Wilcox To: Hao Sun Cc: konishi.ryusuke@gmail.com, linux-nilfs@vger.kernel.org, Linux Kernel Mailing List , akpm@linux-foundation.org, Linux MM Subject: Re: WARNING in __folio_mark_dirty Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 10, 2021 at 09:20:38AM +0800, Hao Sun wrote: > Hello, > > When using Healer to fuzz the latest Linux kernel, the following crash > was triggered. It's still a bug in nilfs, just like the last time this was reported. > HEAD commit: 6b75d88fa81b Merge branch 'i2c/for-current' > git tree: upstream > console output: https://paste.ubuntu.com/p/C22bhzvZP6/ > kernel config: https://paste.ubuntu.com/p/b62Hp7BfJn/ > C reproducer: https://paste.ubuntu.com/p/2mchRNDJr4/ > Syzlang reproducer: https://paste.ubuntu.com/p/xM3DQ2f5Qz/ > > If you fix this issue, please add the following tag to the commit: > Reported-by: Hao Sun > > NILFS (loop10): segctord starting. Construction interval = 5 seconds, > CP frequency < 30 seconds > ------------[ cut here ]------------ > WARNING: CPU: 3 PID: 18327 at include/linux/backing-dev.h:269 > inode_to_wb include/linux/backing-dev.h:269 [inline] > WARNING: CPU: 3 PID: 18327 at include/linux/backing-dev.h:269 > folio_account_dirtied mm/page-writeback.c:2460 [inline] > WARNING: CPU: 3 PID: 18327 at include/linux/backing-dev.h:269 > __folio_mark_dirty+0xab2/0xe80 mm/page-writeback.c:2509 > Modules linked in: > CPU: 3 PID: 18327 Comm: segctord Not tainted 5.15.0+ #6 > Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS > 1.13.0-1ubuntu1.1 04/01/2014 > RIP: 0010:inode_to_wb include/linux/backing-dev.h:269 [inline] > RIP: 0010:folio_account_dirtied mm/page-writeback.c:2460 [inline] > RIP: 0010:__folio_mark_dirty+0xab2/0xe80 mm/page-writeback.c:2509 > Code: ff ff ff 48 8d 78 70 e8 8c 69 96 07 31 ff 89 c6 89 44 24 10 e8 > ff 52 d8 ff 8b 44 24 10 85 c0 0f 85 13 fa ff ff e8 8e 51 d8 ff <0f> 0b > e9 07 fa ff ff e8 82 51 d8 ff e8 9d 6a 96 07 31 ff 41 89 c7 > RSP: 0018:ffffc900076ef7c0 EFLAGS: 00010046 > RAX: 0000000000000000 RBX: ffff88802c478378 RCX: ffff88802fc33980 > RDX: 0000000000000000 RSI: ffff88802fc33980 RDI: 0000000000000002 > RBP: ffffea0000b7ca80 R08: ffffffff819f0012 R09: 0000000000000000 > R10: 0000000000000005 R11: fffff9400016f950 R12: 0000000000000246 > R13: ffff88802c478138 R14: 0000000000000001 R15: 0000000000000001 > FS: 0000000000000000(0000) GS:ffff888135d00000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 000056054d573c18 CR3: 0000000021c4e000 CR4: 0000000000350ee0 > Call Trace: > > __set_page_dirty include/linux/pagemap.h:784 [inline] > mark_buffer_dirty+0x501/0x6a0 fs/buffer.c:1108 > nilfs_btree_propagate_p fs/nilfs2/btree.c:1889 [inline] > nilfs_btree_propagate+0x4ba/0xce0 fs/nilfs2/btree.c:2085 > nilfs_bmap_propagate+0x73/0x170 fs/nilfs2/bmap.c:337 > nilfs_collect_dat_data+0x45/0xd0 fs/nilfs2/segment.c:625 > nilfs_segctor_apply_buffers+0x149/0x480 fs/nilfs2/segment.c:1009 > nilfs_segctor_scan_file+0x3d9/0x570 fs/nilfs2/segment.c:1058 > nilfs_segctor_collect_blocks+0xa33/0x2fb0 fs/nilfs2/segment.c:1224 > nilfs_segctor_collect fs/nilfs2/segment.c:1494 [inline] > nilfs_segctor_do_construct+0x1228/0x5ef0 fs/nilfs2/segment.c:2036 > nilfs_segctor_construct+0x79f/0xb10 fs/nilfs2/segment.c:2372 > nilfs_segctor_thread_construct fs/nilfs2/segment.c:2480 [inline] > nilfs_segctor_thread+0x3be/0xe40 fs/nilfs2/segment.c:2563 > kthread+0x405/0x4f0 kernel/kthread.c:327 > ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 > >