Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2689817pxb; Tue, 21 Sep 2021 05:43:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8pHjWHYeuw/wWtBDEOM7oekdISsCdlajpB502q3kSoUj3Iq9Iob0yNQq4Dsi6EBkV7M0r X-Received: by 2002:a5d:9283:: with SMTP id s3mr10381642iom.75.1632228195360; Tue, 21 Sep 2021 05:43:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632228195; cv=none; d=google.com; s=arc-20160816; b=AD9ulH7++/0k2LGzUOTI4Ul1rNeHpVhzK1BNiIaB/MIoA9VAd41wIb0zjMNcgGFGVn JtJIgrgI6SC/BklM8RhVqjSfndYPKYJLQqqoOyd2P/TftTkNZyK4VNcNcREzuR51692a IVTY7zSeT1pwDiR/+Hr6KAbDXdOdxwQfbvuRbAif9pQrtZJtQBcgH93y2Lmik2ypqsXs yH0pSyKtHFrA95WSIzFH9boqXD22rSsc/nx+3HzZL/G4rhc3VzR8aTM5fzn9Mxkl4wBY VplXJVRW2WTmBoY7k1bYPAUew9q7+a8JafmfdpEsGacf8Us49nXEEs6gf6Mz1OWFiGfZ Ifbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=VDNaOAyLhe9F+PINkX4Wt383OyDkPDiSbUSXnaD34JY=; b=eDSzLUuHG8utKhapL2Jbhg1LDEkDr5ocdl1WQcg3Wda8oRXht0Dq6CjyEYQ/eiJXmF evyH8CQ/w5cA5e0mxYBtv+1kDQlEdIDdLI6TbvMxgEdCucBCDg4enRfnH3DGXTAoE66T BOukNDgXPAuWqdZTc0Cpd+xnYoXMBN0txSJhH5CEuLojk0nsw9N43HRdeUq5mMdRsyf4 roBor4d7VV0zINTE1EKHzRqFykwTKhAK84dk6ZtZqdhQvGHTZ4UDK72Hi6bisObQtZ69 zymsE9LbSnY8GJIr6AtfpbdkNj9A3BZyB1Dqjbao2gpAM0uFJ1llLEsOBvqOgAm1z1db Be5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=QTNjf8Vr; dkim=neutral (no key) header.i=@linutronix.de; 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=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g62si14403685jag.77.2021.09.21.05.43.02; Tue, 21 Sep 2021 05:43:15 -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=@linutronix.de header.s=2020 header.b=QTNjf8Vr; dkim=neutral (no key) header.i=@linutronix.de; 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=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232803AbhIUMnA (ORCPT + 99 others); Tue, 21 Sep 2021 08:43:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232739AbhIUMmm (ORCPT ); Tue, 21 Sep 2021 08:42:42 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 277B8C061575; Tue, 21 Sep 2021 05:41:14 -0700 (PDT) Date: Tue, 21 Sep 2021 12:41:09 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1632228070; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VDNaOAyLhe9F+PINkX4Wt383OyDkPDiSbUSXnaD34JY=; b=QTNjf8VrFllbtkJBB7QvWBvE1bafB/CzTJ+zTsC+sj1cDFP+lLMY53hblDtisOWm3UAxkO hvBgp8VY+pHG+0cUnDBUKQhuMNXwLaQLgqhgWXqITdpHSYENsms0WbE9czdC69O5QI23Yi e2e959K8dlmDaOm8g7o/NcZ1QB/kPy9un5wvFgHq+BCYx811yHGAKFZBCKvikbw6uIpw2Z rQYyGIJyhTg5T2QMmQIir+iW758qopdkdfjRoxrnq3n2Eguo4fHfeJOHibQ1tdeOerueBX msvXlueRERIF/0GC5J8dFO4/d6Znghq7YpNevFfs5n2vawNxMFyrVOlSI2vvbA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1632228070; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VDNaOAyLhe9F+PINkX4Wt383OyDkPDiSbUSXnaD34JY=; b=/CH9REiwrCLt8Yy/U7MJ+UJgeYx8D9diuYsMcUlQJ8gQuCg3DRQjL4aeGMQvd8Hq6hpa6f 5YdUhUveJsw6W8CQ== From: "tip-bot2 for Peter Zijlstra" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/core] x86: Increase exception stack sizes Cc: Michael Wang , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: References: MIME-Version: 1.0 Message-ID: <163222806918.25758.2617878698069891903.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/core branch of tip: Commit-ID: 7fae4c24a2b84a66c7be399727aca11e7a888462 Gitweb: https://git.kernel.org/tip/7fae4c24a2b84a66c7be399727aca11e7a888462 Author: Peter Zijlstra AuthorDate: Wed, 15 Sep 2021 16:19:46 +02:00 Committer: Peter Zijlstra CommitterDate: Tue, 21 Sep 2021 13:57:43 +02:00 x86: Increase exception stack sizes It turns out that a single page of stack is trivial to overflow with all the tracing gunk enabled. Raise the exception stacks to 2 pages, which is still half the interrupt stacks, which are at 4 pages. Reported-by: Michael Wang Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/YUIO9Ye98S5Eb68w@hirez.programming.kicks-ass.net --- arch/x86/include/asm/page_64_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/page_64_types.h b/arch/x86/include/asm/page_64_types.h index a8d4ad8..e9e2c3b 100644 --- a/arch/x86/include/asm/page_64_types.h +++ b/arch/x86/include/asm/page_64_types.h @@ -15,7 +15,7 @@ #define THREAD_SIZE_ORDER (2 + KASAN_STACK_ORDER) #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) -#define EXCEPTION_STACK_ORDER (0 + KASAN_STACK_ORDER) +#define EXCEPTION_STACK_ORDER (1 + KASAN_STACK_ORDER) #define EXCEPTION_STKSZ (PAGE_SIZE << EXCEPTION_STACK_ORDER) #define IRQ_STACK_ORDER (2 + KASAN_STACK_ORDER)