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 7FA07C4332F for ; Mon, 30 Oct 2023 11:22:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D47EA6B018F; Mon, 30 Oct 2023 07:22:46 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CF7656B0197; Mon, 30 Oct 2023 07:22:46 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BE5E16B019A; Mon, 30 Oct 2023 07:22:46 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id AB9B26B018F for ; Mon, 30 Oct 2023 07:22:46 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 82328B5997 for ; Mon, 30 Oct 2023 11:22:46 +0000 (UTC) X-FDA: 81401890332.07.15620EC Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf21.hostedemail.com (Postfix) with ESMTP id BD1521C0010 for ; Mon, 30 Oct 2023 11:22:43 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=NviI9lm6; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf21.hostedemail.com: domain of mpatocka@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=mpatocka@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1698664963; 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=WsoSqi0pr1x6sNVcc+kdDZ1hk5GZpJql/KSUpzO2HtQ=; b=DwAJg3xbFeu2iE9fWS6/X32gcZ2VlLx/d+QPC2Qa58sb///IFUqQZU+57fZK5RoHuolvEs QsvbjPajKVaoHlGgZIdxxfYIRbbUmcr7Ju3NN/pbgnoUkmxyr9n2B4f36ZjufaymDQYUxB 1cZ9MSRJ+00Jew/hjdRqVzjCtONjDDQ= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=NviI9lm6; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf21.hostedemail.com: domain of mpatocka@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=mpatocka@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1698664963; a=rsa-sha256; cv=none; b=AetuVEikK3SOvZP++WQ6MHhPR8QJtjQF95jSTGryIIBzskvLchfkWVAaME0XPKo0jYuGM/ U2CVz4zhJCXUIRA5Tc+ugt4dSCz1VjseNaOrKzyieU+aMiFvHWbiU9uF0gLT3Bb0rQh0zd wFeNpu/8cOTE2VCyb2WsoUSh6zF/ev8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698664963; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WsoSqi0pr1x6sNVcc+kdDZ1hk5GZpJql/KSUpzO2HtQ=; b=NviI9lm6wWOrOoQR1Vrb0eT72V811LbfPnZBY++raKqYHxdeP9wNf1KHo9WFfacZhrZl2u pmBbDBqYtlUTJuPzHA+dYRFyN3mhpGEVYv1H4EygMPKTw8Av/LekzlA9BaAjBijO3MeYQu Gqc7d5/bzI49VrN31aIOx3y2TeRQX/g= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-492-sUZWnPKSONSu9s7Br8Ss7A-1; Mon, 30 Oct 2023 07:22:39 -0400 X-MC-Unique: sUZWnPKSONSu9s7Br8Ss7A-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 18667802E65; Mon, 30 Oct 2023 11:22:39 +0000 (UTC) Received: from file1-rdu.file-001.prod.rdu2.dc.redhat.com (unknown [10.11.5.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E4E102026D66; Mon, 30 Oct 2023 11:22:38 +0000 (UTC) Received: by file1-rdu.file-001.prod.rdu2.dc.redhat.com (Postfix, from userid 12668) id D085130C72AB; Mon, 30 Oct 2023 11:22:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by file1-rdu.file-001.prod.rdu2.dc.redhat.com (Postfix) with ESMTP id CCAA53D99F; Mon, 30 Oct 2023 12:22:38 +0100 (CET) Date: Mon, 30 Oct 2023 12:22:38 +0100 (CET) From: Mikulas Patocka To: Vlastimil Babka cc: =?ISO-8859-15?Q?Marek_Marczykowski-G=F3recki?= , Andrew Morton , Matthew Wilcox , Michal Hocko , stable@vger.kernel.org, regressions@lists.linux.dev, Alasdair Kergon , Mike Snitzer , dm-devel@lists.linux.dev, linux-mm@kvack.org, Jan Kara Subject: Re: Intermittent storage (dm-crypt?) freeze - regression 6.4->6.5 In-Reply-To: <18a38935-3031-1f35-bc36-40406e2e6fd2@suse.cz> Message-ID: <3514c87f-c87f-f91f-ca90-1616428f6317@redhat.com> References: <89320668-67a2-2a41-e577-a2f561e3dfdd@suse.cz> <818a23f2-c242-1c51-232d-d479c3bcbb6@redhat.com> <18a38935-3031-1f35-bc36-40406e2e6fd2@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: BD1521C0010 X-Stat-Signature: nuenad9xcewkwyz7bkuq74hw3mgtb3sy X-HE-Tag: 1698664963-426658 X-HE-Meta: U2FsdGVkX1/6uCRgNXO4orR3NeZuuKB959CBGQpmGOCtrgYa8L+o3wpsGPvPLM4ODPHZHRDnq81+MlvzdYbIzdZ6eTCmqeKKr0YuXhcYIU051udv//6mPN9FfFir8x6On/e5gzpswJiEvfjYT0aR0ZjgF0w2yWdBseNv28kEkTbmGcA9GYCz36YlwsSrNeIQHDYMjVzSCnBKa3YHemSdr8ZUwLkHLlq3kdVdY4FB+1+15snN9azcx/tm1XzTz1SPE4wQqkcyKZfDsGojJNLi69LsfNEEQufCwErQhIo1CXCOOGfVi7OafdRUBrQFAWablIa1DGajumloasRjPqXfaF6SxaQRdbWzTCi+SFQHZevxdiAfKtbvchVvVWWawVAE06sLaZDVhAOm4+IR8WtbBb3ZtYOw+HcV16OQlxZX5+ycOkL8LFs1V3sjBSqbuO/a1IKNlKtZqYP3GUNIa3dHVxWmv0UwQbd8WKLwUe+jifb+iooelFhoIQmXVSq4w10p/sQ4gP0EABNKYzyq2S0He1xMklKsm4XYfC32FpGdbTr8s0PehIgz4JDQEipzgjibO1ik5zDK/B6Ay+LzweOrM20AXuUlHu8Y0Xm2fN6i64Z83j+wqd2710/VEC8qKYXlhjBLbtToV0Ix5C73DqzslRK2CUSO/OxJrNvyV7rPFWb+EvNDJzZgpswjoZzMuHEB/sZYb8r1DL+pricNgBtdrGaf/8K1EO0FS7arrN1+nf3fqIy12t2DL9gfuZw2C5gflnLpwCqlHeDFV1152XOJBCkVrs26HTRu+aQrehcGVW25luWC1mqwBEjgvfTl27J8NtDp6CyiQgflBB384hldiJVg21NQ09UK5Tis2wzHqKEljmggFWUSMDnX+MKXLA4ffGo/eNZ/NVkE5KGJwUZYLN+At6DbgVlajS+bJjhisUTiLB7uySwk6RWQqYUHFJjp7yPBWnUOP03CINj91Vh xvK+v6At cCpFmVLrBBITsB+bQ5OvZNQW7w1lYxzsHpJMSKea7T2rOrJzUfR7hW4VtDHNsMgIs6Erq6ay/yHzCkogkKIWoOFtzRhq0KEoEWY8cVPx9dU7ZOB6lXjLCfh4FkAQ4wS0h4dlkKd1kVd2HnUOoue3kSvb2rcPwER1nEHRElwuJqq3dBKN8V8vxoUpTPR9bEtHdOSoDZ+w9UmWNIZu9G1/60BBUG4HSEy02wI6vS+muRxLKjXHJve1Sb3SG7Z1eS/Duk/Mx7qXKFyoIfteX9mFigOjKjyQc3FGkoWL6Fb8V5eIYEHu+ot/qk0hW2g== 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 Mon, 30 Oct 2023, Vlastimil Babka wrote: > Ah, missed that. And the traces don't show that we would be waiting for > that. I'm starting to think the allocation itself is really not the issue > here. Also I don't think it deprives something else of large order pages, as > per the sysrq listing they still existed. > > What I rather suspect is what happens next to the allocated bio such that it > works well with order-0 or up to costly_order pages, but there's some > problem causing a deadlock if the bio contains larger pages than that? Yes. There are many "if (order > PAGE_ALLOC_COSTLY_ORDER)" branches in the memory allocation code and I suppose that one of them does something bad and triggers this bug. But I don't know which one. > Cc Honza. The thread starts here: > https://lore.kernel.org/all/ZTNH0qtmint%2FzLJZ@mail-itl/ > > The linked qubes reports has a number of blocked task listings that can be > expanded: > https://github.com/QubesOS/qubes-issues/issues/8575 Mikulas