From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04FBDC433DF for ; Tue, 14 Jul 2020 19:05:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CB36720773 for ; Tue, 14 Jul 2020 19:05:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594753519; bh=cy5Qh/XKBJsz+OaLp+9qPvYzkHVd0QmKFeuT0HGW0oo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=tprnahQu+eI5yeELRnHwXVNKC4FT35io72UZ2Vw+Mc4OPM2bvomV658HThSsDHBFK U3Z/Nq2seFCYgLIBvR3YLPtbMZbbJlzKkF3LQh8GhogHmRwnufvdiSu1C7lEs3MgP/ 2FFYJJNEPOjzrYb1oe3iyWrskD28fOJ2d+KgFayQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730403AbgGNSy4 (ORCPT ); Tue, 14 Jul 2020 14:54:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:52420 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729957AbgGNSyx (ORCPT ); Tue, 14 Jul 2020 14:54:53 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EE49822B47; Tue, 14 Jul 2020 18:54:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594752893; bh=cy5Qh/XKBJsz+OaLp+9qPvYzkHVd0QmKFeuT0HGW0oo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mwKMJGuqKhzyGza4wgQvDEugS6WQA11oeKIDD6bdoXU0VpHbC57j7scrIPIahJ5Tz F+sx00W73aHz9nvTohJXP53gy19PYxALc0AqX7omhPI3NRdy9SArOicH5fTh5XUass JLR63D0jQR9h0+kK+qJBtvqXVYLAiLWynWWir7Rw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andy Lutomirski , Marco Elver , "Peter Zijlstra (Intel)" , Lai Jiangshan , Sasha Levin Subject: [PATCH 5.7 041/166] x86/entry: Increase entry_stack size to a full page Date: Tue, 14 Jul 2020 20:43:26 +0200 Message-Id: <20200714184117.845108345@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200714184115.844176932@linuxfoundation.org> References: <20200714184115.844176932@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Peter Zijlstra [ Upstream commit c7aadc09321d8f9a1d3bd1e6d8a47222ecddf6c5 ] 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 Signed-off-by: Sasha Levin --- 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 c4e8fd709cf67..e38befea287fc 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 { -- 2.25.1