Received: by 10.223.185.116 with SMTP id b49csp5095866wrg; Tue, 27 Feb 2018 07:44:39 -0800 (PST) X-Google-Smtp-Source: AG47ELtmZeMY4pwRhklqw6AhS+p0RmtereuybUN2Evr0s0JIjU9VQgCK+6zWKMWqbnyEVhjGekgV X-Received: by 2002:a17:902:4001:: with SMTP id b1-v6mr6100427pld.28.1519746278952; Tue, 27 Feb 2018 07:44:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519746278; cv=none; d=google.com; s=arc-20160816; b=qynzQmHP6iPLRtRwR1AVpCxXkdAGwWssxl27tkwQl0CaIJNWxYG0GSXahHWluBITea htDWIt/+x+qWnzbEmtNULK0f4+kGZH8xCnknhsWQgYcAmey/DF8TwvJvtGbu9teeAChc YT7fEH2SlDSEKg3XkPJ4Nu7buiQ5RN101UmZQOjwofgEu0wVB+SnF7Ydlzy5oFNagBI8 FwHON5480SWEUQEDcTG+k1ZpRq2LXKqn+aDBhS5MjT5e9A//yI+S7u5mgrL2pkkzC41m hYuATCeg3rtRGs1gGbrXWDvSFqw0oxF5FxkbfctjuE2e5nehjZHt6eVB3qWJxWbotX3G 3o/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=9stZF4SLbKo2C++uuky+NnVZIjJWPqXdJ7rA51bE9r4=; b=s5TWoNndRltDH3vBXnx+SBoxZMwCs6PL1xTO9Dfo0rARh8Ia1EgVdWVsZKGm7vJ2sH Ocgqlx9JC7/KrCF+ZuNclWuS1YwUNgAPn8XrUHNNQKt7ppdZZNk9crTVL11gOPojacMo JC06ymnZpP/FfWAUNfyIWZZtqb/zG5e2QviC3lkIX8sfV5vpgzWoBYPAx53ZpLQAoMeS qOXsE07AHrNV93Hrb2I5arS1ASxT9Q8IXjkysx/gL58ALxlZtMjq1r7/pam+getI9K7p KKCkaZ2vFX6XEPf6l2Wd8TejnX94jpEZPvGDjGn4gr+8z2VG0b5kehtuHLgJkKGMM+Kg 6mTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=DLrnLUuK; 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 i12si3393417pgf.713.2018.02.27.07.44.24; Tue, 27 Feb 2018 07:44:38 -0800 (PST) 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=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=DLrnLUuK; 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 S1754182AbeB0PnY (ORCPT + 99 others); Tue, 27 Feb 2018 10:43:24 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:51780 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753942AbeB0PnU (ORCPT ); Tue, 27 Feb 2018 10:43:20 -0500 Received: by mail-wm0-f48.google.com with SMTP id h21so24942016wmd.1 for ; Tue, 27 Feb 2018 07:43:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=9stZF4SLbKo2C++uuky+NnVZIjJWPqXdJ7rA51bE9r4=; b=DLrnLUuK+4ExXtuHQwgCTCrcDxL7AOirEO/pcrNhM8tyf2cAmQaHLAkHxW8g9jZyUq v4KDZaNXhocsGYEavimoxCpBIyCtCwA53H8u1hyJbuttFpMmPvNtIPIFluGoqEzmKGuB 4oY6FRrB3l5vZR5LEJfiCmz+L8pv2gIbwGUx2rN6x5144x6JhoAbzfjpO/YZtmKSyJG7 /9UVzqfFAorylCRMMhIyq1VR3Mm6pEWDcSkDQJWO2bcD/778ec25qriVGJJUs43g72hM uYYz4GCSO9c6Bj3oOiyqRaI4O+e2dxUJ7rA4U6INcVLk1EGnpf9LGDvkGgnXJia+5Dcz CqmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=9stZF4SLbKo2C++uuky+NnVZIjJWPqXdJ7rA51bE9r4=; b=ToyKvtcTDcB0YGudxtp2HHWufGoluZnHTL2uGso5dhSp/ta5Z9aP9CcqPWjF1JxeBl 3XFdZYs+xK+lyXnqdKZKXAVXDweT6GvvFcMMx97zIFPEJBadiDwJTfY7N1tzVfx08g7r iAiRtscqi+KtNdVah/Y5gS20wWpDlM6oPuZpwQgWEYEXcTOVKelAKDudY2ogZElzmjTu 2QaslU8WVdm8uJCwCW2n2aR9hGiYLwh3rz3hfH9GYrXPMYPoSG7UXb2DTAJL22rD+lPo xOyFR35tWAcRaX4XkIOLohiplsX3UgQWE3dXHS8Qd3IhYsFGvL9cQSB/pJ4x+u/eJy2Q 9u5A== X-Gm-Message-State: APf1xPAw2TchK0ck3iPxwbKjAVl6a0K3Woj2692oK+qAa1a4a4EVFdLu jz/UfBk9O6N5o2FwG63IaDzhrw== X-Received: by 10.80.195.137 with SMTP id h9mr11319183edf.232.1519746199282; Tue, 27 Feb 2018 07:43:19 -0800 (PST) Received: from node.shutemov.name ([178.121.199.127]) by smtp.gmail.com with ESMTPSA id 60sm9649437edy.36.2018.02.27.07.43.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Feb 2018 07:43:18 -0800 (PST) Received: by node.shutemov.name (Postfix, from userid 1000) id 74370648D520; Tue, 27 Feb 2018 18:43:09 +0300 (+03) Date: Tue, 27 Feb 2018 18:43:09 +0300 From: "Kirill A. Shutemov" To: Tom Lendacky Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Borislav Petkov , "H. Peter Anvin" , Thomas Gleixner , Linus Torvalds , Ingo Molnar , "Kirill A. Shutemov" Subject: Re: [PATCH] x86/mm/sme: Disable stack protection for mem_encrypt_identity.c Message-ID: <20180227154309.3gt2tylttsnt2en2@node.shutemov.name> References: <20180226232554.14108.16881.stgit@tlendack-t1.amdoffice.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180226232554.14108.16881.stgit@tlendack-t1.amdoffice.net> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 26, 2018 at 05:25:54PM -0600, Tom Lendacky wrote: > Stack protection is not compatible with early boot code. All of the early > SME boot code is now isolated in a separate file, mem_encrypt_identity.c, > so arch/x86/mm/Makefile can be updated to turn off stack protection for > the entire file. This eliminates the need to worry about other functions > within the file being instrumented with stack protection (as was seen > when a newer version of GCC instrumented sme_encrypt_kernel() where an > older version hadn't). It also allows removal of the __nostackprotector > attribute from individual functions. > > Signed-off-by: Tom Lendacky Looks good to me. Acked-by: Kirill A. Shutemov -- Kirill A. Shutemov