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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 924CDC4332F for ; Mon, 30 Oct 2023 11:23:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232941AbjJ3LXc (ORCPT ); Mon, 30 Oct 2023 07:23:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232938AbjJ3LXb (ORCPT ); Mon, 30 Oct 2023 07:23:31 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D441EB4 for ; Mon, 30 Oct 2023 04:22:43 -0700 (PDT) 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 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 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