Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3206728pxb; Sun, 26 Sep 2021 08:14:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuTj1A6XlOEBfMWvWBsB9lVWxCcPcned3eXZHn7dndID19wZed6VszSlHPyOTh7dys2IGx X-Received: by 2002:a17:906:2345:: with SMTP id m5mr22029978eja.557.1632669265988; Sun, 26 Sep 2021 08:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632669265; cv=none; d=google.com; s=arc-20160816; b=DSDr3T3i9dAH/gHBafGjCOtQWt2tOm2FJVi71KTgIBykVM+S97O2qKZ+4Yrd0rdm9Z nsF7sOyjpXHA0Nwzv6NsmOLXqWL6bPltXM2rBgyHNTBimMw0ot10fCDpOBRH6D/pKYfK HzocKXy7SFyFT3T0q2Wk6v+o9EB1ZNrjAjVFT9BJvCMBD3e7ZS6j6XJ5tkYors5HK2Em Clj9xX/zVtQboNKTcGcNsjPgv3+JXeUqIoFNDD+W2coudpWbRNWWH0EI77qsstkJWCdP P9xWgYph9B1ZBbjtmeApHMPOPtbWkLYyJwZT2AE4MyGCUXodieao6TW/THJbvbXFuHv7 LrUQ== 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:date:subject:cc:to:from :dkim-signature; bh=ARrVj/pNBG29JUx0xG9pwjT9myavydgB1VWgMFtaDGg=; b=NMnzHN9l3XaoPj7x90vEmASbGibiikl1aHK85l3zgsnYBHxj2AcrqrmkrlTnWXiS0C 6j7MJF4eQ8dUoh9zmIN236UwDd/LRiPUNfK9O8SMEPraVa1Lkk+snuU4uOv2u7JhJya+ jLDBKS8ORy1xun0aCp+jU5OzCQynBBTBYTFyYCaLUhuQDkJVmzZsImDTMyzKYwJ5dajm TMEE46Ghn/RaDzCx0lloz0J7wggiF2Xw2ABTqNW1W0cMJ3YUxgmD83PZJZfclnyDewDo 0PGvRbVgucVFAtmsr5zvuf/NF49I1r1rdZURBTRf+lZxQ2yoHV/Y9+v41K0EVXtOzGF6 obfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qb+i6qqp; 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 fx1si16476705ejb.310.2021.09.26.08.14.02; Sun, 26 Sep 2021 08:14:25 -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=20210112 header.b=qb+i6qqp; 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 S232168AbhIZPNo (ORCPT + 99 others); Sun, 26 Sep 2021 11:13:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232225AbhIZPNQ (ORCPT ); Sun, 26 Sep 2021 11:13:16 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A55E0C061604; Sun, 26 Sep 2021 08:11:39 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id k23so10583809pji.0; Sun, 26 Sep 2021 08:11:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ARrVj/pNBG29JUx0xG9pwjT9myavydgB1VWgMFtaDGg=; b=qb+i6qqpIhCN382R2WgdUxLkw1cUUvKtfER/RLH6vVF372M6HtnbRUOLrBcJSYU+15 82i4eC/W0N3N6Qf7aeMdpQ4Cw9Fl3zTXlUan5DqHhLckVQERkUBuR7do+t6Op5QegySP rj6c2wOBf0asLmZD9SdNU3GuLlU4gc4k3xnVDVxH6eSW3xRkvcKiG1EZTXjSCk0W6lb7 UER8DEsT3ZseUc+0pts8cBIgP+xbumvRJ/d5CEpXnGrXEMUQSeO7GwcHGAKlbIQDnu1f Yb3fqAhLfemugk6krSWVm5dg7oT0z5v0mzIgbIvzd8KUSC+ZW5+6MRd2ycvYbW1pjL5X Hbzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ARrVj/pNBG29JUx0xG9pwjT9myavydgB1VWgMFtaDGg=; b=MSCPkRwLF3DNP5wd7qkt/SyaXjr8/EDKMPc5as7DgsNomgFwEChzBGH9+Ji4cvekym rjPofxTjg8pXiH9GvFd5qhIPnw6rFk6Ppg4WAuUTC7qDAlqURE6v5QJN1GRwsmXzPSuD 2eo0i+eUfzv1eQ96J6zBmnO8zqcbIKbowqRuy/0r603EK8WWN1dG1CyX2IjpEbXbw2yL mzhdNgM9BORklzWGhSp4Z0aVuxHWnwMpFEMuOEa01vMyBmo3rlEqk10AZUS7U2nyErgw 1/XodxY7oalMuOoBO/iFKsEkYJgCaZ5VIbpp5dZvRb3ylgQWNN9cUJ+zTJgyA3PTNLfP iBQA== X-Gm-Message-State: AOAM532dx3zLuErFLnLWjTFj0wY0lG/bXS1HNNP8ssm8ltxkalc7CjT9 whgLeOVLlRgc+D1kMNeGFhzu/goFhPQTvA== X-Received: by 2002:a17:90a:4b4d:: with SMTP id o13mr13985237pjl.236.1632669099122; Sun, 26 Sep 2021 08:11:39 -0700 (PDT) Received: from localhost ([47.88.60.64]) by smtp.gmail.com with ESMTPSA id n205sm14851454pfd.38.2021.09.26.08.11.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Sep 2021 08:11:38 -0700 (PDT) From: Lai Jiangshan To: linux-kernel@vger.kernel.org Cc: Lai Jiangshan , Tony Luck , Borislav Petkov , Thomas Gleixner , Ingo Molnar , x86@kernel.org, "H. Peter Anvin" , linux-edac@vger.kernel.org Subject: [PATCH V2 27/41] x86/mce: Remove stack protector from mce/core.c Date: Sun, 26 Sep 2021 23:08:24 +0800 Message-Id: <20210926150838.197719-28-jiangshanlai@gmail.com> X-Mailer: git-send-email 2.19.1.6.gb485710b In-Reply-To: <20210926150838.197719-1-jiangshanlai@gmail.com> References: <20210926150838.197719-1-jiangshanlai@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lai Jiangshan mce/core.c is going to contain __entry_code which can not be instrumented by stack protector. Signed-off-by: Lai Jiangshan --- arch/x86/kernel/cpu/mce/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/x86/kernel/cpu/mce/Makefile b/arch/x86/kernel/cpu/mce/Makefile index 015856abdbb1..ce192c5344fc 100644 --- a/arch/x86/kernel/cpu/mce/Makefile +++ b/arch/x86/kernel/cpu/mce/Makefile @@ -1,4 +1,8 @@ # SPDX-License-Identifier: GPL-2.0 + +CFLAGS_REMOVE_core.o = -fstack-protector -fstack-protector-strong +CFLAGS_core.o += -fno-stack-protector + obj-y = core.o severity.o genpool.o obj-$(CONFIG_X86_ANCIENT_MCE) += winchip.o p5.o -- 2.19.1.6.gb485710b