Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp150841lqo; Thu, 16 May 2024 02:02:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV9MB8kYcowH3vChiVVWI9oH9iacTRzOltLk4B6a4SIb/ClAZMmaS0RoDlfG1AAjXAf1101oadXAlbfQJYFVzJi++quCth0G1zumcmZeQ== X-Google-Smtp-Source: AGHT+IE7A2y0inyOc3Ig3uM2UmmvDFexHOJ3eCi2kOSgJnW+bllAZ6BPBLdF3HZ/pqTp148zIQew X-Received: by 2002:a50:aada:0:b0:572:7b08:d497 with SMTP id 4fb4d7f45d1cf-5734d5c17acmr12972202a12.17.1715850146947; Thu, 16 May 2024 02:02:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715850146; cv=pass; d=google.com; s=arc-20160816; b=Rxon/RUTEILTEXHjC9xNizHSzHDw6Qz6AIRaeA9mrmcXpBz/C1cmLszdyKbGBPMRKP ZJZvwK6SvT4bWZX1OMQYNgZ9pxZIK+ZZmIEvHr2FqhOA47uFLIMhoIDgHiNft37vSZeZ MpXg6yzhFFVZYIdPaBVAMDg89/JyFaIcO0wb2BLHg52AqsYmAyDCJ22+sy63LoFafimG b5sQbh8N3bcB1PxSbe41EyEuxsGzbKr0LLuMLcqmyhdjI2Py06Z7uStdOc1QRCKb9SCd xZIjBonn3WXFF5JMQqVupgxvEelSChwPvQV4sfrdohoEoX32X+CSDt9piZX755VpqWWf 1kiw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:in-reply-to:autocrypt :from:content-language:references:cc:to:subject:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=mnnHi7dEPrzkF5r/8QGFI2q704iOW15PoFd8fUilYcM=; fh=3rdWQ9Hkb/s6w/AEzZUOnctKqrfNrDYXBZyB83HilPQ=; b=R13r309XDWgQYd/8H2A1TyN69C1ehJm0jsDJVyj0oOOwsDqvjar47brb33pnuT4xdt Mqb+xtnreXVX17dnmF8H7YRgIjpmszl5ELjWcs4RmzcyWKKIGsmNArf1Qt/RMjGhvUQX uISsuPv/pWdZC1E/0dgZ5C4L7WcUJke/Y4HSbx342vobLvwyhJR7hlddEzAEEuPBKzNy KgUUagyUMIas1hHgjwvKVycRIDHm6JsxbfbYaHia+Rk58iAT4uiBoz2nqNp8wxlp94eq UZaZdVJ3t0L1kn17mW2NoxNgsuhcpRD+1Z5NvHxWqdH23qyUx2lo0ZLNJPxwgTTsCCrG swbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmx.com header.s=s31663417 header.b=JryNDAFA; arc=pass (i=1 spf=pass spfdomain=gmx.com dkim=pass dkdomain=gmx.com dmarc=pass fromdomain=gmx.com); spf=pass (google.com: domain of linux-kernel+bounces-180809-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180809-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-574d3fc502asi3967469a12.47.2024.05.16.02.02.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 02:02:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180809-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.com header.s=s31663417 header.b=JryNDAFA; arc=pass (i=1 spf=pass spfdomain=gmx.com dkim=pass dkdomain=gmx.com dmarc=pass fromdomain=gmx.com); spf=pass (google.com: domain of linux-kernel+bounces-180809-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180809-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 99D441F21A17 for ; Thu, 16 May 2024 09:02:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 37E88143725; Thu, 16 May 2024 09:02:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.com header.i=quwenruo.btrfs@gmx.com header.b="JryNDAFA" Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7B67142912; Thu, 16 May 2024 09:02:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.17.22 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715850128; cv=none; b=ImlV0uuRZBSAK1T0UeYKUG40HLTqMypl6zFp41qjKjBp9g8/tCelsea2ddfXQMeDns2vNS36NTckLncQDlgJ2uvj63g24z4ZXMdkAlQG2ttEmohk4ELPyushGFSEqMNJaW9e9/bhroHtauAqmi7xk8kR/aoeMrCxSTSrlPNBEV8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715850128; c=relaxed/simple; bh=lIRA8UJBvXfoXmKVmWIGOJ0GywIizfIUSdLRyMXqjMs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=pKVBpEUB+IK2BJpJwLpr1+lsqAI5P/zC02fwA8RR9JDbXljRV9Jm5iHjMx1tcEGnWDECKR+vi4HsWnPhFcVvnSmWutdMjaC+iflM03xZNveom3QWnu1pVPPY0/Yn/g4gF5aQQ/Is0g5wfRorn1kr/HwtEHGRYnMS/gUVz44aubA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.com; spf=pass smtp.mailfrom=gmx.com; dkim=pass (2048-bit key) header.d=gmx.com header.i=quwenruo.btrfs@gmx.com header.b=JryNDAFA; arc=none smtp.client-ip=212.227.17.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmx.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.com; s=s31663417; t=1715850122; x=1716454922; i=quwenruo.btrfs@gmx.com; bh=mnnHi7dEPrzkF5r/8QGFI2q704iOW15PoFd8fUilYcM=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=JryNDAFA144apy42OoPmPAIMaifYmMeiwZjtV2/mjHUGG1lSJrMztA4xTwjlpW06 Ut6gjBUXi/ilH84cunooz/LOOZhT7KAD+oqwNdIsSsMj9JGdyTsof93CNd111/86m lCCD+ZSkwgTV7q+wvqd3bM0jQsLp/6J/f4jdue9fNhiJjMkFGsTjx+yOmShHbiDKm RQmxJPGlZElEJSFKskEFqiaevOe+oVCiasIc/zUQz6dgvxSQ76aJFCc/9/p2F7dqj kl12GY+MmWEWJ9tC62sINqVmYPOYctBGprWc86jHjkgU/9jYagXE57kfewo9yWvfx C4kpC/fPpNDz5SREKg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [172.16.0.219] ([159.196.52.54]) by mail.gmx.net (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MuUjC-1sPTI33Hda-00vBbD; Thu, 16 May 2024 11:02:02 +0200 Message-ID: <32730052-b40e-4262-a1c4-0d45a9b6de53@gmx.com> Date: Thu, 16 May 2024 18:31:57 +0930 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [GIT PULL] Btrfs updates for 6.10 To: Linus Torvalds , David Sterba Cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org References: Content-Language: en-US From: Qu Wenruo Autocrypt: addr=quwenruo.btrfs@gmx.com; keydata= xsBNBFnVga8BCACyhFP3ExcTIuB73jDIBA/vSoYcTyysFQzPvez64TUSCv1SgXEByR7fju3o 8RfaWuHCnkkea5luuTZMqfgTXrun2dqNVYDNOV6RIVrc4YuG20yhC1epnV55fJCThqij0MRL 1NxPKXIlEdHvN0Kov3CtWA+R1iNN0RCeVun7rmOrrjBK573aWC5sgP7YsBOLK79H3tmUtz6b 9Imuj0ZyEsa76Xg9PX9Hn2myKj1hfWGS+5og9Va4hrwQC8ipjXik6NKR5GDV+hOZkktU81G5 gkQtGB9jOAYRs86QG/b7PtIlbd3+pppT0gaS+wvwMs8cuNG+Pu6KO1oC4jgdseFLu7NpABEB AAHNIlF1IFdlbnJ1byA8cXV3ZW5ydW8uYnRyZnNAZ214LmNvbT7CwJQEEwEIAD4CGwMFCwkI BwIGFQgJCgsCBBYCAwECHgECF4AWIQQt33LlpaVbqJ2qQuHCPZHzoSX+qAUCY00iVQUJDToH pgAKCRDCPZHzoSX+qNKACACkjDLzCvcFuDlgqCiS4ajHAo6twGra3uGgY2klo3S4JespWifr BLPPak74oOShqNZ8yWzB1Bkz1u93Ifx3c3H0r2vLWrImoP5eQdymVqMWmDAq+sV1Koyt8gXQ XPD2jQCrfR9nUuV1F3Z4Lgo+6I5LjuXBVEayFdz/VYK63+YLEAlSowCF72Lkz06TmaI0XMyj jgRNGM2MRgfxbprCcsgUypaDfmhY2nrhIzPUICURfp9t/65+/PLlV4nYs+DtSwPyNjkPX72+ LdyIdY+BqS8cZbPG5spCyJIlZonADojLDYQq4QnufARU51zyVjzTXMg5gAttDZwTH+8LbNI4 mm2YzsBNBFnVga8BCACqU+th4Esy/c8BnvliFAjAfpzhI1wH76FD1MJPmAhA3DnX5JDORcga CbPEwhLj1xlwTgpeT+QfDmGJ5B5BlrrQFZVE1fChEjiJvyiSAO4yQPkrPVYTI7Xj34FnscPj /IrRUUka68MlHxPtFnAHr25VIuOS41lmYKYNwPNLRz9Ik6DmeTG3WJO2BQRNvXA0pXrJH1fN GSsRb+pKEKHKtL1803x71zQxCwLh+zLP1iXHVM5j8gX9zqupigQR/Cel2XPS44zWcDW8r7B0 q1eW4Jrv0x19p4P923voqn+joIAostyNTUjCeSrUdKth9jcdlam9X2DziA/DHDFfS5eq4fEv ABEBAAHCwHwEGAEIACYCGwwWIQQt33LlpaVbqJ2qQuHCPZHzoSX+qAUCY00ibgUJDToHvwAK CRDCPZHzoSX+qK6vB/9yyZlsS+ijtsvwYDjGA2WhVhN07Xa5SBBvGCAycyGGzSMkOJcOtUUf tD+ADyrLbLuVSfRN1ke738UojphwkSFj4t9scG5A+U8GgOZtrlYOsY2+cG3R5vjoXUgXMP37 INfWh0KbJodf0G48xouesn08cbfUdlphSMXujCA8y5TcNyRuNv2q5Nizl8sKhUZzh4BascoK DChBuznBsucCTAGrwPgG4/ul6HnWE8DipMKvkV9ob1xJS2W4WJRPp6QdVrBWJ9cCdtpR6GbL iQi22uZXoSPv/0oUrGU+U5X4IvdnvT+8viPzszL5wXswJZfqfy8tmHM85yjObVdIG6AlnrrD In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:th+2L7V190rD1RfZG7IykMwoYEu+a/e8iWdrSQcDSM7CF3pGlE0 ED4C6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58yBqX9/H8= =E5=9C=A8 2024/5/16 10:01, Linus Torvalds =E5=86=99=E9=81=93: > On Mon, 13 May 2024 at 09:28, David Sterba wrote: >> >> git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git tags/f= or-6.10-tag > > So I initially blamed a GPU driver for the following problem, but Dave > Airlie seems to think it's unlikely that problem would cause this kind > of corruption, so now it looks like it might just be btrfs itself: > > BUG: Bad page state in process kworker/u261:13 pfn:31fb9a > page: refcount:0 mapcount:0 mapping:00000000ff0b239e index:0x37ce8 > pfn:0x31fb9a > aops:btree_aops ino:1 > flags: 0x2fffc600000020c(referenced|uptodate|workingset|node=3D0|zone= =3D2|lastcpupid=3D0x3fff) > page_type: 0xffffffff() > raw: 02fffc600000020c dead000000000100 dead000000000122 ffff9b191efb0= 338 > raw: 0000000000037ce8 0000000000000000 00000000ffffffff 0000000000000= 000 > page dumped because: non-NULL mapping > CPU: 18 PID: 141351 Comm: kworker/u261:13 Tainted: G W > 6.9.0-07381-g3860ca371740 #60 > Workqueue: btrfs-delayed-meta btrfs_work_helper > Call Trace: > bad_page+0xe0/0xf0 > free_unref_page_prepare+0x363/0x380 > ? __count_memcg_events+0x63/0xd0 > free_unref_page+0x33/0x1f0 > ? __mem_cgroup_uncharge+0x80/0xb0 > __folio_put+0x62/0x80 > release_extent_buffer+0xad/0x110 > btrfs_force_cow_block+0x68f/0x890 > btrfs_cow_block+0xe5/0x240 > btrfs_search_slot+0x30e/0x9f0 > btrfs_lookup_inode+0x31/0xb0 > __btrfs_update_delayed_inode+0x5c/0x350 > ? kfree+0x80/0x250 > __btrfs_commit_inode_delayed_items+0x7a1/0x7d0 > btrfs_async_run_delayed_root+0xf7/0x1b0 > btrfs_work_helper+0xc0/0x320 > process_scheduled_works+0x196/0x360 > worker_thread+0x2b8/0x370 > ? pr_cont_work+0x190/0x190 > kthread+0x111/0x120 > ? kthread_blkcg+0x30/0x30 > ret_from_fork+0x30/0x40 > ? kthread_blkcg+0x30/0x30 > ret_from_fork_asm+0x11/0x20 > > Note the line > > page dumped because: non-NULL mapping > > but the actual mapping pointer isn't a valid kernel pointer. I suspect > that may be due to pointer hashing, though. I'm not convinced that's a > great idea for this case, but hey, here we are. Sometimes those "don't > leak kernel pointers" things cause problems for debugging. > > Anyway, it looks like the btrfs_cow_block -> btrfs_force_cow_block -> > release_extent_buffer -> __folio_put path might be releasing a page > that is still attached to a mapping. Perhaps some page counting > imbalance? > > This all happened under fairly normal - for me - workstation loads. I > was (of course) doing an allmodconfig kernel build after a pull, and I > had a handful of terminals and the web browser open. Nothing > particularly interesting or odd. Considering aarch64 is going more and more common, is the workstation also an aarch64 platform? (the Ampere one?) If so, mind to share the page size and the fs sectorsize? That would at least help us to know if it's the subpage routine or the regular routine. Thanks, Qu > > Does the above make any btrfs people go "Ahh, I see how that would be > a problem"? > > Linus >