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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B15DFC021AB for ; Wed, 19 Feb 2025 03:59:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 383D72801E0; Tue, 18 Feb 2025 22:59:45 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3330E2801D7; Tue, 18 Feb 2025 22:59:45 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1FD892801E0; Tue, 18 Feb 2025 22:59:45 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 016FB2801D7 for ; Tue, 18 Feb 2025 22:59:44 -0500 (EST) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 35BA31C8820 for ; Wed, 19 Feb 2025 03:59:44 +0000 (UTC) X-FDA: 83135340288.13.1DC9D87 Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by imf19.hostedemail.com (Postfix) with ESMTP id 9F2071A0002 for ; Wed, 19 Feb 2025 03:59:42 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=agdlwkPS; spf=pass (imf19.hostedemail.com: domain of djwong@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=djwong@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1739937582; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=O75R/QBthiW692dI0KaA5Xua1rz5Xd9InC0upAbNaxs=; b=QW4/9dUggnMpqrM9tkT1vX87wX8c80RAOGjT2sr0trP9VIyQFzgzVHIm0broDTxC7Jsoo8 0vGlcZ+W12XGMpcArZL5J7wUeimRnjgs69ATXyBuZ4AD8LcEYvlFkhFwHNCLV9GIOc7OBr abHMCm5OgYddhrZGsvJWiKjXRn0nsXU= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=agdlwkPS; spf=pass (imf19.hostedemail.com: domain of djwong@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=djwong@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1739937582; a=rsa-sha256; cv=none; b=DxlaRoF4vPKE1laY3EBBy9tpFgLqrnQr5kvPh6hUoc1E3U6uybFBzWZ56qRlBrA4erXiTh LRR/E4Vdj9lc+sQR5gNScPgiJugWpa9BQA9ecZU0piYslPN2EegF/XHx69El6Z5BEmtuOy 5ybIClMcNkFmULNHMHoEWsus8VQdYJ4= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 07CB7A41EA0; Wed, 19 Feb 2025 03:57:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78D09C4CED1; Wed, 19 Feb 2025 03:59:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1739937581; bh=Y2OqIkjlkYtjrJrvu3vpw+CceqY2c/2wbD79/YEgxn4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=agdlwkPSuWt0S+30+1KzvuiN1ABwo70+yRtLz/kpGYQqQD+0VwaGbLp7E5YS9ai/c R81+CUfz6sWfFK+o+zmxao9bLSS5K6pH5ZWijSSr9nReC2DqXf2ktQwdfpEUiPmhGm ynLFN5mrwpUZFtTr5Aae59oVZes8wqf2/MZ292zN8wbLw2KLUE2xLrem/7fsmtkn7t kF/fYDf6gVTnZ65HF3dDns6BWxWKgj+rk8o9w8MTgvEAV4ewV3PmUyjxcAmSB6nFU4 bOarDNXCErHZFJbXb3GxqO8QMAf1U6s49xA7j6ULT6k6WliLe2QenFUqDWnWXAfNbK TFvjIvU9jt26Q== Date: Tue, 18 Feb 2025 19:59:40 -0800 From: "Darrick J. Wong" To: Dave Chinner Cc: linux-xfs@vger.kernel.org, linux-mm@kvack.org, willy@infradead.org Subject: Re: [regression 6.14-rc2 + xfs-for-next] Bad page state at unmount Message-ID: <20250219035940.GK21808@frogsfrogsfrogs> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspam-User: X-Stat-Signature: pac8uyusxwsqqe16utk8wmy9jb4ethqq X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 9F2071A0002 X-HE-Tag: 1739937582-751341 X-HE-Meta: U2FsdGVkX18oPSc51PSi0oFsdCctAnP+X56wgS+J5Z2yZoeGmRnlTRqelbaDCLpV3HJHPmV587jrVuN2k64NQDVU0DPeNk3ACKHG4DPbKdVwJy37P2LzGC8l9gaeg7QFfEuzNMN89FP7smKv+JFbqJ3/bweU6iXVHvB3pJLEVBpCmSQBIq5B0VWH9v3rCMaU+FzwtKvdSJ3zay26KAgqrdcY0hzg5pdGlOeKGCrsONw6Zfc05M4A4bCDBDetjjg3zs5X0VjTt5awUoQQtZDEiKo+uPquZ/Ph1E6QTDZnGbxggc+8wPdNhq/Zz9j34mnCq1sLHhMEV00wv0mbSi86SeW1phoNf0+hyZVylrQVHJT7Grk/U8EYLSigG+0zQeVpMcBnns2WCB0LnWtrck1cXd2NaKhwyhosA+scWKQQDX5TULh0t6oPDYqSxZ4N8QV9iYEIqWTTH70HqyTcq96VZRVsytra74H6RIunuYrHGaIZo4XtG3xlST9pz+q8ry+Urtx4FqOjgTvX3rJ0qla4Jog6jLZX12uHIKk7ERKkDdKhmGNdQRv8QZIUc9F3XF/uFOFdHqoiQ62DHHpYarHSS+G6xpkeDDPVlxGEDIX0zx8romXY9oVjoy23eAxdv3sf6gVAMci97b68DLcYFLjnX3ayBquw3yJm7GDgFsJb9ROaTeK6lOx0SlEUzBVRF7X+YAPLWDEwJuwnVkGRTu9bH5pS7/vePlAPstdr1b+fXOTQlJtdFOVr6D5kR/G1e5FehJGpA1a3SMB1SzUI+Srvg6b+od8AILsw72f2+icyaJwq/q2x+t+n+m59f/YaOG02uo6tJXTowIh+lpCBEz7HDkcGOA8UwNtqXyM4dTedmf/1+vb24jiosd8xa8dsIRkQszMMcSYh6qAEHBrV7I9FhdNa/qWwTYWI2LH9lPzphdCHiwOP5REhmszyEENTgBHwKydJDjGK27muP+Q+pGO Enu9d41q 8uY8MiYBIc0pKMytYgAoVLpj7kRIoxm6MSl+msUeqASQE6rvTESS8kY5lYn4/mB6udvAHi8/71yxO93BR6VEqZzsOZVf9F9uIdOF/zg6MR+4CvIGtyy8HBnPRCcbMKewoEh4j5KjHPCKdWZmZ+GHc+YKygttYbbHQstXMB8sdi1RElRnL/8VkndCtNMcPiQCwrzLhTrI5D3IEVrXH3LPhnOe6tl6zBVYB2M+FvMRvmPXw6qmC9u+EDsscSxUxqRYbrjjTGARn04MMyOaKXtoAKRAO3uPqQSy4q4GV9teL2f++H+xprneFiyHm+Q== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On Wed, Feb 19, 2025 at 02:50:13PM +1100, Dave Chinner wrote: > Hi folks, > > I hit this running check-parallel a moment ago: > > [80180.074658] BUG: Bad page cache in process umount pfn:7655f4 > [80180.077259] page: refcount:9 mapcount:1 mapping:00000000ecd1b54a index:0x0 pfn:0x7655f4 > [80180.080573] head: order:2 mapcount:4 entire_mapcount:0 nr_pages_mapped:4 pincount:0 > [80180.083615] memcg:ffff888104f36000 > [80180.084977] aops:xfs_address_space_operations ino:84 > [80180.087175] flags: 0x17ffffc000016d(locked|referenced|uptodate|lru|active|head|node=0|zone=2|lastcpupid=0x1fffff) > [80180.091380] raw: 0017ffffc000016d ffffea001745c648 ffffea0012b1da08 ffff8891726dae98 > [80180.094469] raw: 0000000000000000 0000000000000000 0000000900000000 ffff888104f36000 > [80180.097740] head: 0017ffffc000016d ffffea001745c648 ffffea0012b1da08 ffff8891726dae98 > [80180.100988] head: 0000000000000000 0000000000000000 0000000900000000 ffff888104f36000 > [80180.104129] head: 0017ffffc0000202 ffffea001d957d01 ffffffff00000003 0000000000000004 > [80180.107232] head: 0000000000000004 0000000000000000 0000000000000000 0000000000000000 > [80180.110338] page dumped because: still mapped when deleted > [80180.112755] CPU: 32 UID: 0 PID: 832271 Comm: umount Not tainted 6.14.0-rc2-dgc+ #302 > [80180.112757] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 > [80180.112760] Call Trace: > [80180.112763] > [80180.112766] dump_stack_lvl+0x3d/0xa0 > [80180.112773] dump_stack+0x10/0x17 > [80180.112775] filemap_unaccount_folio+0x151/0x1e0 > [80180.112779] delete_from_page_cache_batch+0x61/0x2f0 > [80180.112787] truncate_inode_pages_range+0x122/0x3e0 > [80180.112807] truncate_inode_pages_final+0x40/0x50 > [80180.112809] evict+0x1af/0x310 > [80180.112817] evict_inodes+0x66/0xc0 > [80180.112818] generic_shutdown_super+0x3c/0x160 > [80180.112821] kill_block_super+0x1b/0x40 > [80180.112823] xfs_kill_sb+0x12/0x30 > [80180.112824] deactivate_locked_super+0x38/0x100 > [80180.112826] deactivate_super+0x41/0x50 > [80180.112828] cleanup_mnt+0x9f/0x160 > [80180.112830] __cleanup_mnt+0x12/0x20 > [80180.112831] task_work_run+0x89/0xb0 > [80180.112833] resume_user_mode_work+0x4f/0x60 > [80180.112836] syscall_exit_to_user_mode+0x76/0xb0 > [80180.112838] do_syscall_64+0x74/0x130 > [80180.112840] ? exc_page_fault+0x62/0xc0 > [80180.112841] entry_SYSCALL_64_after_hwframe+0x76/0x7e > .... > [80180.131293] BUG: Bad page cache in process umount pfn:4ac768 > [80180.131296] page: refcount:9 mapcount:1 mapping:00000000ecd1b54a index:0x4 pfn:0x4ac768 > [80180.131299] head: order:2 mapcount:4 entire_mapcount:0 nr_pages_mapped:4 pincount:0 > [80180.131301] memcg:ffff888104f36000 > [80180.131302] aops:xfs_address_space_operations ino:84 > [80180.218440] flags: 0x17ffffc000016d(locked|referenced|uptodate|lru|active|head|node=0|zone=2|lastcpupid=0x1fffff) > [80180.222779] raw: 0017ffffc000016d ffffea001d957d08 ffffea000d980b08 ffff8891726dae98 > [80180.226376] raw: 0000000000000004 0000000000000000 0000000900000000 ffff888104f36000 > [80180.229546] head: 0017ffffc000016d ffffea001d957d08 ffffea000d980b08 ffff8891726dae98 > [80180.232954] head: 0000000000000004 0000000000000000 0000000900000000 ffff888104f36000 > [80180.232956] head: 0017ffffc0000202 ffffea0012b1da01 ffffffff00000003 0000000000000004 > [80180.232958] head: 0000000500000004 0000000000000000 0000000000000000 0000000000000000 > [80180.232958] page dumped because: still mapped when deleted > [80180.232961] CPU: 32 UID: 0 PID: 832271 Comm: umount Tainted: G B 6.14.0-rc2-dgc+ #302 > [80180.232965] Tainted: [B]=BAD_PAGE > ..... > [80180.233052] BUG: Bad page cache in process umount pfn:36602c > [80180.241951] page: refcount:9 mapcount:1 mapping:00000000ecd1b54a index:0x8 pfn:0x36602c > [80180.241955] head: order:2 mapcount:4 entire_mapcount:0 nr_pages_mapped:4 pincount:0 > [80180.241957] memcg:ffff888104f36000 > [80180.241958] aops:xfs_address_space_operations ino:84 > [80180.241961] flags: 0x17ffffc000016d(locked|referenced|uptodate|lru|active|head|node=0|zone=2|lastcpupid=0x1fffff) > [80180.241965] raw: 0017ffffc000016d ffffea0012b1da08 ffffea000d585508 ffff8891726dae98 > [80180.241966] raw: 0000000000000008 0000000000000000 0000000900000000 ffff888104f36000 > [80180.241967] head: 0017ffffc000016d ffffea0012b1da08 ffffea000d585508 ffff8891726dae98 > [80180.241969] head: 0000000000000008 0000000000000000 0000000900000000 ffff888104f36000 > [80180.241970] head: 0017ffffc0000202 ffffea000d980b01 ffffffff00000003 0000000000000004 > [80180.241971] head: 0000000500000004 0000000000000000 0000000000000000 0000000000000000 > [80180.241972] page dumped because: still mapped when deleted > [80180.241974] CPU: 32 UID: 0 PID: 832271 Comm: umount Tainted: G B 6.14.0-rc2-dgc+ #302 > [80180.241976] Tainted: [B]=BAD_PAGE > > I don't know which fstest triggered it, but this is a new failure > that I haven't seen before. It looks like 3 consecutive order-2 > folios on the same mapping all have the same problem.... > > The kernel was a post 6.14-rc2 kernel with linux-xfs/for-next merged > into it. I'm going to update the kernel to TOT to see if this > reproduces again, but I've only seen this once in dozens of tests > runs on this kernel, so.... > > Has anyone seen something similar or have any ideas where to look? I didn't see anything like that on -rc2, and -rc3 doesn't seem to be showing that either. --D > -Dave. > -- > Dave Chinner > david@fromorbit.com >