Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp951950ybn; Wed, 25 Sep 2019 10:02:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJ1/Ro3DaQulpcwJy/QXw+AyJcRk4hsJh6QTE2Jko6utv7v1VKbye97drkWKQ1JW45Phvo X-Received: by 2002:a50:ac0a:: with SMTP id v10mr4092189edc.83.1569430968194; Wed, 25 Sep 2019 10:02:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569430968; cv=none; d=google.com; s=arc-20160816; b=z6ksYOMAHYhWFXKPzrK2WwPJkXk3BMyVS4RVw/X5mkUl2kcbwLhslaSLx/m92zOHan o0tJ/j3BBp1LvbQirYkxGiK28tgktJJhXuIRBrIuz3pHYZzTzzXQHO1BuJbPA2zUZOq2 DWkaQSSR1I7SK4US+Tth0x83rp5L7qRkudCOtEx50hXBfPljTDGd51ckHz1dgjpo6hr+ M6xku2FvMrIgcMTifn4qDXEJlmueCfHXploRYhqt5pKfuNfa9XAu4kLL69pGAXzWaEk8 TCfUQzHK1Bi2LA+QljYHvm2NSKLRmCivvU3BXYFh9z8hlHfdDxyU5smISm4vyX/NbM/w 5RUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=LPXisKvIQyxVGLKLva3anOUj+nGPvBPRQLo/5lP6pRI=; b=hdU63KsGViYnaOGGUqh+YS1vIlYVMx8yp++vmVzER9VlL0deI1H3Zj7PFpUMFoLLzK 8RBqsprMx+MVrRydwDoU9ZzVqrF0qClE32mWoJ/xFYo1BYqN08/vR+IkrQdaM8tOv3RI al+i2Z9GXWp4zkPI5RnS1A2YJwVrUFbmnKZ6QhnOCJGlP8cCknG2dWkh/n+myYx0Z8CX VwCLkxWWGHJH3lYJx9w201TLk4qnJ3dkDSz1x4RHan2j7MQ3kT8dhLQyAPbqS8R88rdG YGUonXeaRAvaww2LpAC/+pB+d4qo+yKIfptPa1Awrk2nyBGr5oT1AgxsEQ3cdMPElV1i G4Og== 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 k7si3743539edb.238.2019.09.25.10.02.23; Wed, 25 Sep 2019 10:02:48 -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 S2502206AbfIWRw4 (ORCPT + 99 others); Mon, 23 Sep 2019 13:52:56 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:59284 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502187AbfIWRwy (ORCPT ); Mon, 23 Sep 2019 13:52:54 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iCSVq-0002Jt-DJ; Mon, 23 Sep 2019 19:52:38 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 8CD5A1C04A9; Mon, 23 Sep 2019 19:52:37 +0200 (CEST) Date: Mon, 23 Sep 2019 17:52:37 -0000 From: "tip-bot2 for Arvind Sankar" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] x86/purgatory: Disable the stackleak GCC plugin for the purgatory Cc: Arvind Sankar , Nick Desaulniers , Borislav Petkov , "H. Peter Anvin" , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org In-Reply-To: <20190923171753.GA2252517@rani.riverdale.lan> References: <20190923171753.GA2252517@rani.riverdale.lan> MIME-Version: 1.0 Message-ID: <156926115738.4511.12812558157721670150.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/urgent branch of tip: Commit-ID: ca14c996afe7228ff9b480cf225211cc17212688 Gitweb: https://git.kernel.org/tip/ca14c996afe7228ff9b480cf225211cc17212688 Author: Arvind Sankar AuthorDate: Mon, 23 Sep 2019 13:17:54 -04:00 Committer: Ingo Molnar CommitterDate: Mon, 23 Sep 2019 19:48:02 +02:00 x86/purgatory: Disable the stackleak GCC plugin for the purgatory Since commit: b059f801a937 ("x86/purgatory: Use CFLAGS_REMOVE rather than reset KBUILD_CFLAGS") kexec breaks if GCC_PLUGIN_STACKLEAK=y is enabled, as the purgatory contains undefined references to stackleak_track_stack. Attempting to load a kexec kernel results in this failure: kexec: Undefined symbol: stackleak_track_stack kexec-bzImage64: Loading purgatory failed Fix this by disabling the stackleak plugin for the purgatory. Signed-off-by: Arvind Sankar Reviewed-by: Nick Desaulniers Cc: Borislav Petkov Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Fixes: b059f801a937 ("x86/purgatory: Use CFLAGS_REMOVE rather than reset KBUILD_CFLAGS") Link: https://lkml.kernel.org/r/20190923171753.GA2252517@rani.riverdale.lan Signed-off-by: Ingo Molnar --- arch/x86/purgatory/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/purgatory/Makefile b/arch/x86/purgatory/Makefile index 10fb42d..b81b517 100644 --- a/arch/x86/purgatory/Makefile +++ b/arch/x86/purgatory/Makefile @@ -23,6 +23,7 @@ KCOV_INSTRUMENT := n PURGATORY_CFLAGS_REMOVE := -mcmodel=kernel PURGATORY_CFLAGS := -mcmodel=large -ffreestanding -fno-zero-initialized-in-bss +PURGATORY_CFLAGS += $(DISABLE_STACKLEAK_PLUGIN) # Default KBUILD_CFLAGS can have -pg option set when FTRACE is enabled. That # in turn leaves some undefined symbols like __fentry__ in purgatory and not