Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2193563imm; Mon, 16 Jul 2018 04:03:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeINfE5AJKtJpQ7hd7pyWlgabWpsy9QtKvLEhypj8E5uPpRkEEcRVMQNJlENotQxMc2rfTr X-Received: by 2002:a63:d401:: with SMTP id a1-v6mr14955841pgh.414.1531738985109; Mon, 16 Jul 2018 04:03:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531738985; cv=none; d=google.com; s=arc-20160816; b=MF1OvCKuz79BfjjgbmgE4MQ1p9JQBDEm7jCC7LRRG4gGDjeJ0iSWmXNyO7Vmy8EybT +BmK60VDDAB1dYGOqtp3f6Wdl3LxtM39XsdKuxsgP3rKtrIfM9vV1Uyqyjpoz7PrlDea WYjOOSt+En/+BhMUEhcTfNY3Yf8Cp145kOOAVoyqhPQ+JjT6/aXq6Ge7MlSu6zVVTfAf WfBLDFApF8itR0r1hjeO2DEgGF5gOUfp4Br12IbA9qBC3ezcPS1uzojNidfOKOp0T6kS 3g0D+v4rsOr66w9BPlVUcDzyU6QdHzRgiMi854xRjDa5s7k2S/Tt/9pBUDRXEwTAPeH/ 6izQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=WKHMUxtkENLUecGmgMatsiBWfYCfpm+osMq8d931puk=; b=mlW4rO8hGVLQ0jugHur2DeO+HWR29bdMDnyO8UpFKb+42t1rP1kqYB3sU4XfYsKRmq OiVd0pkLIlI1gvSJryiwNk5i6lnx7n0GcGbE6fReQaQL0sErFaTysGL5+4XhJEfzP12x 02oO6ssjgnLxtt4Y0U4XK94gGVvgauCrhxfFvpQhxWpHUqPkO4E36v9hBr5oPFhRBJa7 4jlWf75CqxfickLAIaCd5kusQM3HjBp3GAoJhHqArPyDgK4LvfFaAvf17udcBOhVucpR TphbwQA0vtomqvy/03G4hHPWPcjjXjwA1AdNwTwWki0VSOwJQyGaG7qUn7hWLQaXSNwM YeFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v2-v6si30040545plg.12.2018.07.16.04.02.50; Mon, 16 Jul 2018 04:03:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729792AbeGPL3G (ORCPT + 99 others); Mon, 16 Jul 2018 07:29:06 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:42396 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727712AbeGPL3G (ORCPT ); Mon, 16 Jul 2018 07:29:06 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 08C16C18; Mon, 16 Jul 2018 11:02:10 +0000 (UTC) Date: Mon, 16 Jul 2018 13:02:08 +0200 From: Greg Kroah-Hartman To: Mark Brown Cc: Guillaume Tucker , Pavel Tatashin , linux-mm@kvack.org, kernel@collabora.com, linux-kernel@vger.kernel.org, stable@vger.kernel.org, kernel-build-reports@lists.linaro.org Subject: Re: mainline/master boot: 177 boots: 2 failed, 174 passed with 1 conflict (v4.18-rc4-160-gf353078f028f) Message-ID: <20180716110208.GA25227@kroah.com> References: <5b4a9633.1c69fb81.17984.f7b3@mx.google.com> <0ab16066-5498-374b-5391-3dd7979044aa@collabora.com> <20180716105451.GA20734@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180716105451.GA20734@sirena.org.uk> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 16, 2018 at 11:54:51AM +0100, Mark Brown wrote: > On Mon, Jul 16, 2018 at 11:40:06AM +0100, Guillaume Tucker wrote: > > On 15/07/18 01:32, kernelci.org bot wrote: > > > mainline/master boot: 177 boots: 2 failed, 174 passed with 1 conflict (v4.18-rc4-160-gf353078f028f) > > > > > > Full Boot Summary: https://kernelci.org/boot/all/job/mainline/branch/master/kernel/v4.18-rc4-160-gf353078f028f/ > > > Full Build Summary: https://kernelci.org/build/mainline/branch/master/kernel/v4.18-rc4-160-gf353078f028f/ > > > > > > Tree: mainline > > > Branch: master > > > Git Describe: v4.18-rc4-160-gf353078f028f > > > Git Commit: f353078f028fbfe9acd4b747b4a19c69ef6846cd > > > Git URL: http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > > Tested: 67 unique boards, 25 SoC families, 21 builds out of 199 > > > > > > Boot Regressions Detected: > > [...] > > > x86: > > > > > > i386_defconfig: > > > x86-celeron: > > > lab-mhart: new failure (last pass: v4.18-rc4-147-g2db39a2f491a) > > > x86-pentium4: > > > lab-mhart: new failure (last pass: v4.18-rc4-147-g2db39a2f491a) > > > > Please see below an automated bisection report for this > > regression. Several bisections were run on other x86 platforms > > with i386_defconfig on a few revisions up to v4.18-rc5, they all > > reached the same "bad" commit. > > > > > > Unfortunately there isn't much to learn from the kernelci.org > > boot logs as the kernel seems to crash very early on: > > > > https://kernelci.org/boot/all/job/mainline/branch/master/kernel/v4.18-rc5/ > > https://storage.kernelci.org/mainline/master/v4.18-rc4-160-gf353078f028f/x86/i386_defconfig/lab-mhart/lava-x86-celeron.html > > > > > > It looks like stable-rc/linux-4.17.y is also broken with > > i386_defconfig, which tends to confirm the "bad" commit found by > > the automated bisection which was applied there as well: > > > > https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.17.y/kernel/v4.17.6-68-gbc0bd9e05fa1/ > > Adding Greg directly to the CCs due to the stable impact, not deleting > context for his benefit. Hey, I read all stable emails, who else would? :) > > The automated bisection on kernelci.org is still quite new, so > > please take the results with a pinch of salt as the "bad" commit > > found may not be the actual root cause of the boot failure. > > > > Hope this helps! > > > > Best wishes, > > Guillaume > > > > > > --------------------------------------8<-------------------------------------- > > > > > > > > Bisection result for mainline/master (v4.18-rc4-160-gf353078f028f) on x86-celeron > > > > Good: 2db39a2f491a Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux > > Bad: f353078f028f Merge branch 'akpm' (patches from Andrew) > > Found: e181ae0c5db9 mm: zero unavailable pages before memmap init > > > > Checks: > > revert: PASS > > verify: PASS > > > > Parameters: > > Tree: mainline > > URL: http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > Branch: master > > Target: x86-celeron > > Lab: lab-mhart > > Config: i386_defconfig > > Plan: boot > > > > Breaking commit found: > > > > ------------------------------------------------------------------------------- > > commit e181ae0c5db9544de9c53239eb22bc012ce75033 > > Author: Pavel Tatashin > > Date: Sat Jul 14 09:15:07 2018 -0400 > > > > mm: zero unavailable pages before memmap init > > We must zero struct pages for memory that is not backed by physical > > memory, or kernel does not have access to. > > Recently, there was a change which zeroed all memmap for all holes in > > e820. Unfortunately, it introduced a bug that is discussed here: > > https://www.spinics.net/lists/linux-mm/msg156764.html > > Linus, also saw this bug on his machine, and confirmed that reverting > > commit 124049decbb1 ("x86/e820: put !E820_TYPE_RAM regions into > > memblock.reserved") fixes the issue. > > The problem is that we incorrectly zero some struct pages after they > > were setup. > > The fix is to zero unavailable struct pages prior to initializing of > > struct pages. > > A more detailed fix should come later that would avoid double zeroing > > cases: one in __init_single_page(), the other one in > > zero_resv_unavail(). > > Fixes: 124049decbb1 ("x86/e820: put !E820_TYPE_RAM regions into memblock.reserved") > > Signed-off-by: Pavel Tatashin > > Signed-off-by: Linus Torvalds > > > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > > index 1521100f1e63..5d800d61ddb7 100644 > > --- a/mm/page_alloc.c > > +++ b/mm/page_alloc.c > > @@ -6847,6 +6847,7 @@ void __init free_area_init_nodes(unsigned long *max_zone_pfn) > > /* Initialise every node */ > > mminit_verify_pageflags_layout(); > > setup_nr_node_ids(); > > + zero_resv_unavail(); > > for_each_online_node(nid) { > > pg_data_t *pgdat = NODE_DATA(nid); > > free_area_init_node(nid, NULL, > > @@ -6857,7 +6858,6 @@ void __init free_area_init_nodes(unsigned long *max_zone_pfn) > > node_set_state(nid, N_MEMORY); > > check_for_memory(pgdat, nid); > > } > > - zero_resv_unavail(); > > } > > static int __init cmdline_parse_core(char *p, unsigned long *core, > > @@ -7033,9 +7033,9 @@ void __init set_dma_reserve(unsigned long new_dma_reserve) > > void __init free_area_init(unsigned long *zones_size) > > { > > + zero_resv_unavail(); > > free_area_init_node(0, zones_size, > > __pa(PAGE_OFFSET) >> PAGE_SHIFT, NULL); > > - zero_resv_unavail(); > > } > > static int page_alloc_cpu_dead(unsigned int cpu) > > ------------------------------------------------------------------------------- So this patch breaks i386, ick. I'll wait for the fix to hit Linus's tree as that's a bit more important to have the large majority of the x86-64 boxes fixed with this patch for now. thanks, greg k-h