Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1382577ybt; Thu, 25 Jun 2020 04:54:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1OIuxJ3I3DacUvTKCYKORgOzH5P14A7PIv3zMSypOG0/2k0DHaHVxCq3UcKnN35j83noy X-Received: by 2002:a17:906:4f09:: with SMTP id t9mr12467608eju.110.1593086060643; Thu, 25 Jun 2020 04:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593086060; cv=none; d=google.com; s=arc-20160816; b=0fA0unG8wIBdKGQIDYY4+ARFJ6ipNQCw0RxDVM6693lQv8Hm4ct64q4CfnKwES73g8 hcJTja/LX6Ows+nw89/LvsJRA7KlYaSkis4aVRUUFDvC71cJwOXC5f1JxD5/JGSLpk2u FliarTeAbQRKdroDOYRJjUVGIEQY6GKtQE4VnRElvrg0TjeoljVQK0tz8tBYEE6U6ugH UEDLQYL93ShnZrCcTzh3tJz0EgLVMLkstvAy4d0q/D8ZiCx6RYeMHld1RYM2jfDh/Q1p r7sJLK1TZRBNN3/CuDzDNrarTBP1MQxah73/y4zgGq0ebVGvnfOxB0QA206Gwfmd+8a2 Z1Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=ZGW8Lzi1s4ssfSet/q4JAmnb9RIl2UlxkAUda+Qdzug=; b=fpsBDSvFgYVVvg95SJsbfQCm/ilZinrvvnhbw+ygQ0U5nE9v7EgwIs1CBV2KjEo6Sr ThJLry/OppvJ4KT1RjcdKLVEbVJhkbm0+fP4fxSuyLjiIc7rJJUlxC64HlaJ8wYNWqVD jX1vXVSTzth6rA8s+gHPeduK912CXzWpF48whwV6joaRWpIjuBBmfLAmsW3xStRD3fNh 0X09WRs5cI5eGvgUHQ+aGKA97HaApugOYDWCl2S4aHBjyFuLXiFQcgojXlAIcSiMcLzw o1MjNV3X86F1NLd6Zo2LALoborzGRgkRhYN20Q6f6nuXJoQOPxeyrE8WaVW/oLlCvIDY r/4A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s8si13571454eji.407.2020.06.25.04.53.57; Thu, 25 Jun 2020 04:54:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404427AbgFYLxm (ORCPT + 99 others); Thu, 25 Jun 2020 07:53:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404378AbgFYLxi (ORCPT ); Thu, 25 Jun 2020 07:53:38 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE4E8C061795; Thu, 25 Jun 2020 04:53:37 -0700 (PDT) Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1joQRh-0005sI-8O; Thu, 25 Jun 2020 13:53:33 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id D39AB1C0470; Thu, 25 Jun 2020 13:53:32 +0200 (CEST) Date: Thu, 25 Jun 2020 11:53:32 -0000 From: "tip-bot2 for Peter Zijlstra" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/entry] x86/entry: Increase entry_stack size to a full page Cc: Andy Lutomirski , Marco Elver , "Peter Zijlstra (Intel)" , Lai Jiangshan , x86 , LKML In-Reply-To: <20200618144801.819246178@infradead.org> References: <20200618144801.819246178@infradead.org> MIME-Version: 1.0 Message-ID: <159308601261.16989.8417394079734931145.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/entry branch of tip: Commit-ID: c7aadc09321d8f9a1d3bd1e6d8a47222ecddf6c5 Gitweb: https://git.kernel.org/tip/c7aadc09321d8f9a1d3bd1e6d8a47222ecddf6c5 Author: Peter Zijlstra AuthorDate: Wed, 17 Jun 2020 18:25:57 +02:00 Committer: Peter Zijlstra CommitterDate: Thu, 25 Jun 2020 13:45:40 +02:00 x86/entry: Increase entry_stack size to a full page Marco crashed in bad_iret with a Clang11/KCSAN build due to overflowing the stack. Now that we run C code on it, expand it to a full page. Suggested-by: Andy Lutomirski Reported-by: Marco Elver Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Lai Jiangshan Tested-by: Marco Elver Link: https://lkml.kernel.org/r/20200618144801.819246178@infradead.org --- arch/x86/include/asm/processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index 42cd333..03b7c4c 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h @@ -370,7 +370,7 @@ struct x86_hw_tss { #define IO_BITMAP_OFFSET_INVALID (__KERNEL_TSS_LIMIT + 1) struct entry_stack { - unsigned long words[64]; + char stack[PAGE_SIZE]; }; struct entry_stack_page {