Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3207996pxb; Sun, 26 Sep 2021 08:16:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEYnx/VEH4i4dFRVKpib2gEE7qs2+DC9I0806Nk2KgWx791Za0W+42PC40XD0J2Mr+5Ui0 X-Received: by 2002:a05:6402:289b:: with SMTP id eg27mr18468979edb.25.1632669369248; Sun, 26 Sep 2021 08:16:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632669369; cv=none; d=google.com; s=arc-20160816; b=POFRw4bSYGXcYSBmzDvstpvXlWwn2wane0jvXRoEPCIWy+12VgoXGYlPpH8KGy/qxx Xqvjs91uT3RQLNVzF9W1NMlDTJXcTDAemb0PwaazYp53goxlAScIzQbfFJfkRxNWVzIe mEkxDfHFwtA5jw+vsWm9jAQrA29jbJaeWSEhCmdcITKD1ydAKfi+h3JSx3BsOoJ1DMyd A0Ax1UIA3R0100sby9xk0G6X4vl6BJIz/IQej4bEnLOZO26JJQl66gz3pp15E4Sk41kb FLTnVDAafQvh33V7BDt3XA4LSWSKjdbeUfRD9AHXMz66mwxv60uWFlRdA9jatXMOUhJc Nc9w== 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=Vwxfl0XqN2pfXKmI2uM2NFGH9NMmpNH8gndSefAsfpE=; b=f45reutM/IHa0hUtKubaU3xsQOvWauSb1Vrdd7TqpIBSqcQXnTUiM8+iJE87kRv6Uo 2tT1ORr1tmXeoyb8mslV4oQW30pM7XNpxwUmsxZeveX36XXVgiMW+XTt17n/hm9s02Ur tjU1H4NMB5iRg3tR9IyizIE98VAFRGDYUy+P+1CvFx+nj2Mh7my3McOCJorLkXWcy0A7 Md8Fe3w6n0uYH24TOryGIfg40eg7dN1MvINUTPqjQp7XkRATVXwA1sqLJSCaRITMAQcK SK3bBQr2wZUjiUPjV9e05FDknDZHaylhVMgJWDm6p8HaAwA94IvxONl7NfCS0895DNjM cLyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=a5gPb196; 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 u15si18101499edt.211.2021.09.26.08.15.43; Sun, 26 Sep 2021 08:16:09 -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=a5gPb196; 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 S232303AbhIZPOh (ORCPT + 99 others); Sun, 26 Sep 2021 11:14:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232222AbhIZPOY (ORCPT ); Sun, 26 Sep 2021 11:14:24 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16C80C061570 for ; Sun, 26 Sep 2021 08:12:48 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id f129so15325188pgc.1 for ; Sun, 26 Sep 2021 08:12:48 -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=Vwxfl0XqN2pfXKmI2uM2NFGH9NMmpNH8gndSefAsfpE=; b=a5gPb196N8AwZrt40O2XXOVAQmd5LBpkHiznddUdUU7/GpOhQ89AMjY8WPRy249dUD gDdR4O5Rzr88ZpDL1SDsrWswQnKmdvR7cnW+Rh2R9l96P+5Fl3Eoup74ZnOhoZjPOSIY eLu+tigCkQ0IrG6ca/erVx4uoEthvDSEbFYuOV0ZSZJXzvkvUl8qdIbRwJ30z+18FZdB PZAeBVFv/VaBSUNItLtvj8tnyB5lqerZPOXYJaO/J+772NjRSrpDWLWt5nTa/VmCS7XI FTRtXmLITGLWSpmu16DJJMJwK7SbE8voOd0Agv/WZvMmZxOoaGfyvRTkNZ8Lz/SclAA3 yAng== 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=Vwxfl0XqN2pfXKmI2uM2NFGH9NMmpNH8gndSefAsfpE=; b=YpszbIHKepE70cOpdxI+unNhAryVMmDnxqR/7Zxo54dvJNWwI8Uwwt2gh530JGvOQ5 1lfAyh5nZSvOvFn6NIX/S8FbmLXd6+DApcmjrRo3PXd6LtfugXJIIFrdWTzhpK0ALGoJ tqtAI2B+aW2MMXKkpV78yp+/X+ez0H31+ia0qEmUOC9q8O4Xc9yMjy2efZmySZH35DXD L4BM1fZzCM2M1xfPWdcaPFS2Igo1cUBLohP796hcYYQbl5nkl6MUFDghf9nmkekzWgcP STbxloBrXrcqW0VpRMFUoGi4NaXTFnExPKh/lGMWyj9zWxO185hx6yAPJNkSQtqRMlFw Xblw== X-Gm-Message-State: AOAM531Kb7RXPWhXWid/cWlWtddUyOnBH2GlnP1DyPn8KmQwB1qHSo0G Adx2vMu+ZqzTJw0A3mP+3aJ29RZ84XSmwg== X-Received: by 2002:a62:6d07:0:b0:446:c141:7d2d with SMTP id i7-20020a626d07000000b00446c1417d2dmr18905946pfc.28.1632669167489; Sun, 26 Sep 2021 08:12:47 -0700 (PDT) Received: from localhost ([47.88.60.64]) by smtp.gmail.com with ESMTPSA id q1sm13917419pfu.4.2021.09.26.08.12.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Sep 2021 08:12:47 -0700 (PDT) From: Lai Jiangshan To: linux-kernel@vger.kernel.org Cc: Lai Jiangshan , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Joerg Roedel , Javier Martinez Canillas , Daniel Bristot de Oliveira , Brijesh Singh , Andy Shevchenko , Arvind Sankar , Juergen Gross , Chester Lin Subject: [PATCH V2 36/41] x86/sev: Remove stack protector from sev.c Date: Sun, 26 Sep 2021 23:08:33 +0800 Message-Id: <20210926150838.197719-37-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 sev.c is going to contain __entry_code which can not be instrumented by stack protector. Signed-off-by: Lai Jiangshan --- arch/x86/kernel/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kernel/Makefile b/arch/x86/kernel/Makefile index f56e8088c85d..88bbfeeab929 100644 --- a/arch/x86/kernel/Makefile +++ b/arch/x86/kernel/Makefile @@ -52,6 +52,8 @@ CFLAGS_REMOVE_traps.o = -fstack-protector -fstack-protector-strong CFLAGS_traps.o += -fno-stack-protector CFLAGS_REMOVE_nmi.o = -fstack-protector -fstack-protector-strong CFLAGS_nmi.o += -fno-stack-protector +CFLAGS_REMOVE_sev.o = -fstack-protector -fstack-protector-strong +CFLAGS_sev.o += -fno-stack-protector CFLAGS_irq.o := -I $(srctree)/$(src)/../include/asm/trace -- 2.19.1.6.gb485710b