Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1454711ybl; Wed, 28 Aug 2019 15:10:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRICd0iPC4zSvIUcfzkU1lvJ/D7oli030u3fzZ4CQ329vKh1EKPlhSfceuU/TwJ+9DGEQA X-Received: by 2002:a17:902:830a:: with SMTP id bd10mr6207026plb.230.1567030216356; Wed, 28 Aug 2019 15:10:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567030216; cv=none; d=google.com; s=arc-20160816; b=b4gp7Ut2prUuubAht5cIlPJur8BucIvQnh27B4awsXiw/KDLOetCVbImOzAiFhpf9j z06fs3Px2NNOVkW2da6MhzvHGAL0XayCBBVSQ5IowQ2fCQhBxmzGc1r5PKd4hDkRA1n4 rAr+3uTZZmW0RBgbIkkJFg1nYPTXBFqn1F6MRoIaERgSzYaqo1qFaQAavYTDeCSxM2fF 9sUQBR3pxr19/s3TW/n+N1tn2zufAG2LCmr5EfC2I3JFAPOlPH2/jSTg8Zy35BNs169u pQEHvC1EzgQsR30By7mD5mJgg6bGl4UqoLp5Tt3oelIvx9qtuxDkf6U9qvGNzOIt3oGb 9C6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=mt34mNKIrP8Htb1nVD5HqQKjSaQZQHcNYu8vWAeak1k=; b=G/7cIWlzgKQ7PsX1sSs/sMwqpm6OccFWyYuMgVJFD4/WX31DKD/p2G3D2WJdGOpQH0 2eKy2XFFaDLGETg8+jxIx85nNlozrdG7m/OGV8oIiv5UmkA4cSiuMCSsYdKbczpB5hTx m7H1JM3hURHz5sCM15Iqe1XHnueQ6vjkk3mGWWwJT7e+VCjWfPh1gqehkWoR9mmfIjcm S7BuBzcLTynRQs3OSdQEO1IfRSmzEUIndaMHrBHp+lsyajM15nxzv9YfJSwMmtzvtAci 9+aL5W4aS1Tx9KE+dKpqh32u6cpnx0bqK+aYTOQWT71KpUNsFlGke5lL9LpG/fiqJ6lR wLag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=iH04IjDN; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r15si285649pgj.71.2019.08.28.15.10.00; Wed, 28 Aug 2019 15:10:16 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=iH04IjDN; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727190AbfH1WHP (ORCPT + 99 others); Wed, 28 Aug 2019 18:07:15 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:33483 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726907AbfH1WHO (ORCPT ); Wed, 28 Aug 2019 18:07:14 -0400 Received: by mail-pl1-f193.google.com with SMTP id go14so599743plb.0 for ; Wed, 28 Aug 2019 15:07:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mt34mNKIrP8Htb1nVD5HqQKjSaQZQHcNYu8vWAeak1k=; b=iH04IjDNGifHI7tT+hqPSbNJdrbhPMnWjA/w201hZzZdVVX/cuEXXNipMbU3zgzimK Rr5MdpTySQRBJ/50mVA8WJQtJwIvYOvTLmCFYpMM5Xkl5xgpxwYV+k1WEoAZPv1tF9ea W3XorqI6mJKqtfb3Yyr2rZuXFfy+EakKbjMzpqXPW9PdnSctAXvVU70zZygvKmli/uH2 J2sVWzdC+StG1KOXlEWjjicrCgkgVnE3RcpITVkUwk67za3DbaMgol3Voqrv4n83Mw7E tQPmRKc1Qg+3qzEsFlCUyqK5yB4RrTirlGpbHpanixhj3zQMFJ5vGvCAaXU0kmDhSnw6 nBGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mt34mNKIrP8Htb1nVD5HqQKjSaQZQHcNYu8vWAeak1k=; b=GeBrbJomDykDGE6K1NqnjeLGygECK6mqz/b8XdmqYzMuB3drfb7OTwT2o3pCYFI4ZA SxUjsY79ETIq/3QMm37QoyqX06W5W609PCka5iXuDc+hrhex9QaJk4BGOantyfHNLjRC s5gO0DBWIiy5FhG2Qak6K1cGEDfmnYzFMkDprJr+VvVMR+X1dn1lVMLiFAPj//TRJNMT MjAh8JLaR+sLeP8sbUw6LIFkD8SVyf54E3pxlF3foTp295NK9hPmPewFNG/ae9fvYA3i suwmLYAcdTQfhBAQ0kIKag9pBSUan+jCWcvW0iSc17BXgCAInNDVNQJs3JUYFydMZFt6 OsYg== X-Gm-Message-State: APjAAAW7Y3D1NamxN8/cSu/RpyhtxY35QYQLOsNFH9OCbTmTFc7iZUpV dio/yUZV64jnne3f5WH0BPfBhCM3ktxWSQdNYDYOXA== X-Received: by 2002:a17:902:8484:: with SMTP id c4mr6500095plo.223.1567030033405; Wed, 28 Aug 2019 15:07:13 -0700 (PDT) MIME-Version: 1.0 References: <20190828194226.GA29967@swahl-linux> In-Reply-To: From: Nick Desaulniers Date: Wed, 28 Aug 2019 15:07:02 -0700 Message-ID: Subject: Re: Purgatory compile flag changes apparently causing Kexec relocation overflows To: Steve Wahl , Thomas Gleixner , Vaibhav Rustagi Cc: LKML , russ.anderson@hpe.com, dimitri.sivanich@hpe.com, mike.travis@hpe.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 28, 2019 at 2:51 PM Nick Desaulniers wrote: > > On Wed, Aug 28, 2019 at 12:42 PM Steve Wahl wrote: > > > > Please CC me on responses to this. > > > > I normally would do more diligence on this, but the timing is such > > that I think it's better to get this out sooner. > > > > With the tip of the tree from https://github.com/torvalds/linux.git (a > > few days old, most recent commit fetched is > > bb7ba8069de933d69cb45dd0a5806b61033796a3), I'm seeing "kexec: Overflow > > in relocation type 11 value 0x11fffd000" when I try to load a crash > > kernel with kdump. This seems to be caused by commit > > 059f801a937d164e03b33c1848bb3dca67c0b04, which changed the compiler is this the correct SHA from mainline? I assume you meant commit b059f801a937 ("x86/purgatory: Use CFLAGS_REMOVE rather than reset KBUILD_CFLAGS") > > flags used to compile purgatory.ro, apparently creating 32 bit > > relocations for things that aren't necessarily reachable with a 32 bit > > reference. My guess is this only occurs when the crash kernel is > > located outside 32-bit addressable physical space. > > > > I have so far verified that the problem occurs with that commit, and > > does not occur with the previous commit. For this commit, Thomas > > Gleixner mentioned a few of the changed flags should have been looked > > at twice. I have not gone so far as to figure out which flags cause > > the problem. > > > > The hardware in use is a HPE Superdome Flex with 48 * 32GiB dimms > > (total 1536 GiB). > > > > One example of the exact error messages seen: > > > > 019-08-28T13:42:39.308110-05:00 uv4test14 kernel: [ 45.137743] kexec: Overflow in relocation type 11 value 0x17f7affd000 > > 2019-08-28T13:42:39.308123-05:00 uv4test14 kernel: [ 45.137749] kexec-bzImage64: Loading purgatory failed > > Thanks for the report and sorry for the breakage. Can you please send > me more information for how to precisely reproduce the issue? I'm > happy to look into fixing it. > > Let me go dig up the different listed flags. Steve, it may be fastest > for you to test re-adding them in your setup to see which one is > important. https://lkml.org/lkml/2019/7/26/198 was the list. The "ratpoutine" flags were added in the final version of the patch that landed. It's not immediately clear to me which of those 4 changed flags would result in the error that you're observing, but if you could test them quickly to see which restores working behavior, we could triple check it on our end and submit it. > > Tglx, if you want to revert the above patches, I'm ok with that. It's > important that we fix the issue eventually that my patches were meant > to address, but precisely *when* it's solved isn't critical; our > kernels can carry out of tree patches for now until the issue is > completely resolved worst case. -- Thanks, ~Nick Desaulniers