Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp858084yba; Sun, 31 Mar 2019 15:11:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwna2svCyOnV9lCuZC3shX2A2VZiEx8GcbehlS2cEOsNi+AA17WoIqpe8t7JRvEQ87qOAEN X-Received: by 2002:a63:4101:: with SMTP id o1mr5134850pga.17.1554070313557; Sun, 31 Mar 2019 15:11:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554070313; cv=none; d=google.com; s=arc-20160816; b=w39kK3HxKrWXLmYr+mrFz96nmoUIkked/wVXxYowSlU9rtf+iA7cjajWfM2K9PLSw4 qGhVxYkQ8WbFozkMVrKqVghvUhkURyejonalYJYKfrzCjUWEqvXgmUn5rl6xzqfOMdNg NtsQQcjZjKaofji1g5+txFWmSeZHS7z4us82S2NWGoU3D2s1fUwBpoDtC5ruhuX5hRHd /VhJET8kq1X3a/1Gn5yArXZJ/XtWyZrbhrIqVxP6Gyb4vPt3H0dt/3Y0vH0JwBGZapdP F4b1V1KaGTV5gCPMAHQsCMCypVwVJcadGq/L3xTqRfbHNETen8wdWWTwDJSrWHTAG1y3 saYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:subject:cc:to :from:date:user-agent:message-id; bh=Zq+3yyus1FMbknE1+lxB+0O0ObQh2N5Ah/4yEXLuL9g=; b=UTs80uPhsozc9zAV2VXzGHoIXmPgtJPPO7o19ZwWbecPm5/KG91JXjkjLlvmSKRwEq M+64fvoJt4oRLVUwYBO5S2kBCgioUHOFHu0/quxDw+CQz9nB1I96cvHlgY8idGaz1F89 66s54dTjPVRVyivqc6gBzW5H6feA4WnNM7rQhD0A12NblznmI7afY4AqE05ARJSo1iHz 8lfTYu6sPWsrq9G/bbuo3hTnefoSSW9O0z6mrfnX1AiKPwZrY+q0WyKpnwQq3WPfaSEE 6iKC+Ehs5YO9hjaLnL+4c5kWsvnI7hxZqHef1h9dE5wTN0Dw0WB90NH/I+NOIRyZmiW8 Mcsw== 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 m63si7529990pld.147.2019.03.31.15.11.38; Sun, 31 Mar 2019 15:11:53 -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 S1731763AbfCaWKs (ORCPT + 99 others); Sun, 31 Mar 2019 18:10:48 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:57641 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731620AbfCaWKf (ORCPT ); Sun, 31 Mar 2019 18:10:35 -0400 Received: from localhost ([127.0.0.1] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1hAiev-0004rf-8B; Mon, 01 Apr 2019 00:10:33 +0200 Message-Id: <20190331215136.039902969@linutronix.de> User-Agent: quilt/0.65 Date: Sun, 31 Mar 2019 23:40:34 +0200 From: Thomas Gleixner To: LKML Cc: x86@kernel.org, Andy Lutomirski , Josh Poimboeuf Subject: [patch 14/14] x86/exceptions: Enable IST guard pages References: <20190331214020.836098943@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All usage sites which expected that the exception stacks in the CPU entry area are mapped linearly are fixed up. Enable guard pages between the IST stacks. Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/cpu_entry_area.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) --- a/arch/x86/include/asm/cpu_entry_area.h +++ b/arch/x86/include/asm/cpu_entry_area.h @@ -25,13 +25,9 @@ struct exception_stacks { ESTACKS_MEMBERS(0) }; -/* - * The effective cpu entry area mapping with guard pages. Guard size is - * zero until the code which makes assumptions about linear mapping is - * cleaned up. - */ +/* The effective cpu_entry_area mapping with guard pages */ struct cea_exception_stacks { - ESTACKS_MEMBERS(0) + ESTACKS_MEMBERS(PAGE_SIZE) }; #endif