Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2216057pxb; Wed, 30 Mar 2022 19:37:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2ppZmbQFcqUisNWwfYqLqqOUF9mCvQywpUCneRYW8Ax8Z8OcxlCbW4eZ7CE/JUqN9Q9Br X-Received: by 2002:a17:903:22d1:b0:154:4cfa:2b12 with SMTP id y17-20020a17090322d100b001544cfa2b12mr2997003plg.47.1648694222103; Wed, 30 Mar 2022 19:37:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648694222; cv=none; d=google.com; s=arc-20160816; b=vUPHOu8yy3nB2UzJ+tz+XHb91o4LAFZRsZBrG51kTtkbsepDqZ+J9P8/4WhCR7bfNm EsXPrxhKiPb1azKhXqc/gZv5LsBRosDvD4VN6n74zTKYTWRb7mL7/zXaTE70L3Mk13qi 5mAJvcE1BkTN3mv8ksH51BqqLYGs/1ihIMUmuRoXf7/kCd+8tgiWtQDbHnaxozXA4AxI NfQojYkxScvxPG1pOFJLvnc9sqUR2kPWySHx/QBMKFJ0GH+4/RVq8+FDfbo5CduzHb1A beOmAPPHALVPKOhLj2hVD/s57/+g1fm6fRlEmJDTblENXeOS4gEqqKvU2HntNOw2NBbA PJ8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=zBn8ICE665vz/2QXcTe8SkxFTrgzB/u4BUL+oOaqtUg=; b=NV8mq2Qoa4K6/rMAq5A0Vm5k0PZ5CL/S+Bz5tvta9lMCETD0M9hkZpZTZ7BPj9i7Rk e7cx8LM7GSONGW+1I1KJsrhaR0sjtrks1G5pzgZh1kZ1iwervfuK2Lq/tcalJMnJQ+8i QiORF4kDieQ1crhr34Kol/Ke5/46CPQ0PVC6NDOkaWqmh2yTg2Kq0XZAnOd6gjPXqwHO cHf1/DjzwTI6tEcLNg1UnVO/dt31iAVXvdPFbT/eMFPsVBcaDViyYQTCuD9nTuy8MqAg gfawH1+/+WnK3Oxa7b49N5hlmw6X3Nmkvu9Ctsia1/89E/c69qldaIbv9TJWl38QrE67 xWkA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f6-20020a655906000000b003816043f006si23070768pgu.507.2022.03.30.19.37.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 19:37:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6E09B97B82; Wed, 30 Mar 2022 19:31:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232434AbiC3Uz3 (ORCPT + 99 others); Wed, 30 Mar 2022 16:55:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232316AbiC3Uz2 (ORCPT ); Wed, 30 Mar 2022 16:55:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3A2E2B25F for ; Wed, 30 Mar 2022 13:53:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 439FD616A6 for ; Wed, 30 Mar 2022 20:53:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8567FC340EC; Wed, 30 Mar 2022 20:53:39 +0000 (UTC) Date: Wed, 30 Mar 2022 16:53:37 -0400 From: Steven Rostedt To: Zi Yan Cc: Linus Torvalds , LKML , Mel Gorman , David Hildenbrand , Vlastimil Babka , Mike Rapoport , Oscar Salvador , Andrew Morton , Linux-MM Subject: Re: [BUG] Crash on x86_32 for: mm: page_alloc: avoid merging non-fallbackable pageblocks with others Message-ID: <20220330165337.7138810e@gandalf.local.home> In-Reply-To: References: <20220330154208.71aca532@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 30 Mar 2022 16:29:28 -0400 Zi Yan wrote: > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index bdc8f60ae462..83a90e2973b7 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -1108,6 +1108,8 @@ static inline void __free_one_page(struct page *page, > > buddy_pfn = __find_buddy_pfn(pfn, order); > buddy = page + (buddy_pfn - pfn); > + if (!page_is_buddy(page, buddy, order)) > + goto done_merging; > buddy_mt = get_pageblock_migratetype(buddy); > > if (migratetype != buddy_mt > The above did not apply to Linus's tree, nor even the problem commit (before or after), but I found where the code is, and added it manually. It does appear to allow the machine to boot. -- Steve