Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3802372pxv; Mon, 26 Jul 2021 12:29:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyhLnDlWX+JL+ip4zahqDunfJ3HW4cKiGlcD/Lyn2n4DAXOH+mEoErESTI/b5HKEvH4N5i X-Received: by 2002:a6b:7948:: with SMTP id j8mr15770921iop.32.1627327777577; Mon, 26 Jul 2021 12:29:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627327777; cv=none; d=google.com; s=arc-20160816; b=yQpDN/6swm8YLfF4AHJbWD55zhoAaO7jlCldiHUC0RQSPQliPULUAjhuNuhFIjwCAp ZNGyojFXziGbbi+xpsmBMksp16bgZ4u8gGI29sGNZO8S8GnUs5uTs2XcFBpeFN/10ZoV nnDbTkvgi6SIBnjY/nCkgF4006Enp7pqvkj/NHjBv67qZvrFH0DEIr/Rk+6op0gofuU1 pGhuN6S20Adedia0E0xOlIQWTlIZnz/Rs0v/GGchd3vGKJIsVy1B6PT4OwFc2JUi0gr+ SdN6xwdnFmwHHBpK3+M52IXF9wJmPgHBZdQQ/dN8CjW0UemXMQZDENa8BZOOxmcmwezV HoaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=1UdDzrra23dH9YokfKPvE1AeA2jAHVIroGq1SNBQhuw=; b=gKND3T31hDhMrJ/vFn3pHG9/bLcH1TUbwvUhLspGESuw0ZMsJ2vxTGaBcqMKmfVcXE Lu3EN1+JnibtO15nXgi0NNaZPFBvFZQ9nd4D8/IGaYV01CDiwX5vWmmB0nBMjdlxnvJ0 U3K0fLSSZyiAwdPqYGH4x4OP6q9XmLlVs+9XABYVzGR3GPZDN9JOHdzb4+5W3s5u0s7H XBuXqhs0j7998RZuHNGN8WEWVCnz6fFsoDHNYikGSApvKkQFOvp7BghO90l8+aF6MZdv YKI8FXBcEFsxodRjRfGzzZpGlT4PmJlmkmwpb0PCHVUVa/BXcOZ9+Uhe/hgf/ANYWimz 3Hqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MXRrw0ZZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f17si809966ion.28.2021.07.26.12.29.25; Mon, 26 Jul 2021 12:29:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MXRrw0ZZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231895AbhGZSrc (ORCPT + 99 others); Mon, 26 Jul 2021 14:47:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231540AbhGZSrc (ORCPT ); Mon, 26 Jul 2021 14:47:32 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8EF9C061757; Mon, 26 Jul 2021 12:27:59 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id k1so12801587plt.12; Mon, 26 Jul 2021 12:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=1UdDzrra23dH9YokfKPvE1AeA2jAHVIroGq1SNBQhuw=; b=MXRrw0ZZsitiE9Skwj7bh0DNNijMrePYVHp7uEChWsp7D77WbfAThhYYBC2WO+q2wf NboTspa5DGdHXqIcnd8mFfLYOI+5FKdyVzKeHFEYpiZ0KpdsrD7qErPAsgJvkbZfdXpL la1FgQ12OZkU6yz5Tobg/8FZL5+0L+yUMurqUlJZCZEw+AzrF1oRA+NEu1U49iYb/cPZ 3wbOSkSn4YCqbJf+Brle4G9lbtySBXa0iOpQIAUnf5qhL+VAFwQJhC3quNE2oRApgrxA 61BPag9gmZc5yd6sUq1sefi4+KZP7K0OytFa6obcpZBOBS6SWBKbNGXnFxAdbI8UOF/J fAfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=1UdDzrra23dH9YokfKPvE1AeA2jAHVIroGq1SNBQhuw=; b=RzjXrkGT0EzxCdWhcQulPFZpwf2VwDZTYgpdLpP2lsKlhJ3eVY/nhWJkQabtb50Noh XYjj9RUyIuV2uCb/2SdcrFYLuAtBdzNyAImWgRy2NKhDj4X6O8gMSqCRE+TAEOxnBPyM licLF446PNtOelf7cIaC+FeT2Fi+ZqDK7reV3r53gdJhV4pzpvRjlkSGU+9O73VdV67C Mn/PzuJakTWm/vOVE4i5NaHHnbdiTExLFNaSohwHzhVA3QYSxP6Jbp2jg4A37lmDrNkX 1GBX5woC0ccaFcA6PABXEBfeDs9smpIPF0w/dy27pzfevgTghqf2Pz3Kdw+Ej38jeCXf /+hA== X-Gm-Message-State: AOAM530+ZUIMfKeOh1yPLVkjkCF2wzhJduJ1VCsxtuMYzI7IoljdQNgD Ar7i0aLh9mxD/BYgB2LygZd9fymv8NTxQw== X-Received: by 2002:a17:90a:d250:: with SMTP id o16mr9430341pjw.181.1627327679240; Mon, 26 Jul 2021 12:27:59 -0700 (PDT) Received: from localhost ([108.161.26.224]) by smtp.gmail.com with ESMTPSA id 26sm413610pjj.27.2021.07.26.12.27.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jul 2021 12:27:53 -0700 (PDT) Date: Mon, 26 Jul 2021 12:27:50 -0700 From: Matt Turner To: Mike Rapoport Cc: Michael Cree , linux-mm@kvack.org, linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Regression bisected to fa3354e4ea39 (mm: free_area_init: use maximal zone PFNs rather than zone sizes) Message-ID: <20210726192311.uffqnanxw3ac5wwi@ivybridge> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reply-To: Hi Mike! Since commit fa3354e4ea39 (mm: free_area_init: use maximal zone PFNs rather than zone sizes), I get the following BUG on Alpha (an AlphaServer ES47 Marvel) and loading userspace leads to a segfault: (I didn't notice this for a long time because of other unrelated regressions, the pandemic, changing jobs, ...) BUG: Bad page state in process swapper pfn:2ffc53 page:fffffc000ecf14c0 refcount:0 mapcount:1 mapping:0000000000000000 index:0x0 flags: 0x0() raw: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 raw: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 page dumped because: nonzero mapcount Modules linked in: CPU: 0 PID: 0 Comm: swapper Not tainted 5.7.0-03841-gfa3354e4ea39-dirty #26 fffffc0001b5bd68 fffffc0001b5be80 fffffc00011cd148 fffffc000ecf14c0 fffffc00019803df fffffc0001b5be80 fffffc00011ce340 fffffc000ecf14c0 0000000000000000 fffffc0001b5be80 fffffc0001b482c0 fffffc00027d6618 fffffc00027da7d0 00000000002ff97a 0000000000000000 fffffc0001b5be80 fffffc00011d1abc fffffc000ecf14c0 fffffc0002d00000 fffffc0001b5be80 fffffc0001b2350c 0000000000300000 fffffc0001b48298 fffffc0001b482c0 Trace: [] bad_page+0x168/0x1b0 [] free_pcp_prepare+0x1e0/0x290 [] free_unref_page+0x2c/0xa0 [] cmp_ex_sort+0x0/0x30 [] cmp_ex_sort+0x0/0x30 [] _stext+0x1c/0x20 I haven't tried reproducing this on other machines or QEMU, but I'd be glad to if that helps. Any ideas? Thanks, Matt