Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3207118pxb; Sun, 26 Sep 2021 08:14:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxz7KFJZYD8AoSm2F2nSyz50A3oVUmuwjzjuH+9eFwsyzC6ysOl6WIvXaPNHSf/pVcLQLzu X-Received: by 2002:a17:906:1856:: with SMTP id w22mr23592495eje.393.1632669297484; Sun, 26 Sep 2021 08:14:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632669297; cv=none; d=google.com; s=arc-20160816; b=irknzoj6PdtTQzK4GxRXit/HtJhsg1AkDnB2UPwr+Nvz6myGi66Co9kpI4K1JnZnHe GTBpdhC8C5zWXQMMa6olYl9RMk6w2yrRw8GsWf0vdShDtgad7XEW9iljcw0PanC7p4u8 YCiPcJGR/xcsmz18myFjsiNo68+m+e9YZEqYgSYIL6r6aZwV3ioA6UIsnY5wIq0Jluqq i/HwDjIP0qTotM326lifnWVblrKm5CdV3coWUkHzgSkjJrIMncOfO+dX8mgkGQQqgvGS dXHp0LX9YmdDf5F+8ZF0MFNwMKPbtyJjF1SaEQ5YhX1H4SZ8qLnBx4/GprcuaX4UnmZL 8ukg== 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=TRaZEb4WEQVcbVbS1m3vczW8RLN1lVEiOfYJ6EyXKpY=; b=LRXHcu3RtiVCkYjf13zx+WMXG1kEgyCrJGIqJuXPSypBTX9pb4VKpqdHVECJy7iGWl BYGhNL9C6ZWoV2Ry2ToEXckUexeGUom8CskMq2bbjhcwkE5guN83RXA2RYRNWL7AoWWn w4kahQkD3erjpNiSevT/Jxoqz1FeQ743gxSLQtN8YMTwUr4+TD2w9SKSzMNXn6yabqRf TR5+1XgbVbuS1xenQVeSYRqpDtUz4IEPS9ki9A8IoKYUNCA/Y6tJgPBZ6ORnGedpwOlv ekP9/unB5bVe77IuH0b5mNG6I4AH5sIsJbzmqUtCDHkAZzSWx6BM17+mFi6th7XP0Ff9 S6ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jbaI0Ei2; 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 t26si16723368edi.360.2021.09.26.08.14.34; Sun, 26 Sep 2021 08:14:57 -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=jbaI0Ei2; 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 S232024AbhIZPOR (ORCPT + 99 others); Sun, 26 Sep 2021 11:14:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232020AbhIZPNq (ORCPT ); Sun, 26 Sep 2021 11:13:46 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B415C061570 for ; Sun, 26 Sep 2021 08:12:09 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id m26so13434660pff.3 for ; Sun, 26 Sep 2021 08:12:09 -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=TRaZEb4WEQVcbVbS1m3vczW8RLN1lVEiOfYJ6EyXKpY=; b=jbaI0Ei2+KoNy3UViw9dPeYuR1aBzxYoolPCrqFc9ojzXyzJ/UOufIA0iFsGaHa00l kCLCYc6zYdXUv6Iam4JIr5wM5gzqK19re373MjOjb75LepzHcan8CSJLVIoAS7SgMpkc SO1aa+rGtw9SRTmLNuMjCYI9/VtMLB/v7jvwZgtqt/gCPSl64F37Hwko+0/gBlkLuxyH yQhRonpezWhx2c1/2hdBuRoiXv+6dwcRIr5wltMSnHA/OrzHq62pQNbCpRXCH+aLerl/ IuRzQ/1Kves7c7drAOksRDBxBF1II3E8Pv5xi9zhSIARhAa3kgJi3V6FGLJrWFgnDYbt exrg== 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=TRaZEb4WEQVcbVbS1m3vczW8RLN1lVEiOfYJ6EyXKpY=; b=HCN2R7tIDgON550/kQxnYrE3hOL7NTNiF+icJb2ZiSa+LSCRUOR+PmkxMl6KQuWkpI m6QflMGhfTIqRd6J8IfvBOAsEr7JoxELK8Yui0VAQHQPeFQN+YMxbUb5vPJWn/71g4M3 ueMGwCcNJJj0EeVav9tJo/zMwa03UtLUmq0IBlKnhgmYA/tJiomrH9UifyNS3d0YOpoW fmYqo4OSk7aCDrjsdKZn/dKLAOGkTrEPN39TeX2bSzb2HfzW5hDQzlsWAs0YU0JMeAwJ ahHyZJselTjsWKGRip5qEPlgHLA//VQMJYN1L8XnTJboFI0hcogNvaQwm6mZwgIS/KF7 c1Cg== X-Gm-Message-State: AOAM530w4TL910PTxOzDFKKvGSiaHs7XzVrpfR8A/GyWce7DYfW31Oot i/9D0ocWEUDJk5S9SP1Q4eD60cH1+GgjHw== X-Received: by 2002:a63:8543:: with SMTP id u64mr12586181pgd.220.1632669128746; Sun, 26 Sep 2021 08:12:08 -0700 (PDT) Received: from localhost ([47.88.60.64]) by smtp.gmail.com with ESMTPSA id b126sm15881260pga.67.2021.09.26.08.12.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Sep 2021 08:12:08 -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 31/41] x86/nmi: Remove stack protector from nmi.c Date: Sun, 26 Sep 2021 23:08:28 +0800 Message-Id: <20210926150838.197719-32-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 nmi.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 0e054e2304c6..f56e8088c85d 100644 --- a/arch/x86/kernel/Makefile +++ b/arch/x86/kernel/Makefile @@ -50,6 +50,8 @@ CFLAGS_head$(BITS).o += -fno-stack-protector 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_irq.o := -I $(srctree)/$(src)/../include/asm/trace -- 2.19.1.6.gb485710b