Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2489900pxb; Tue, 21 Sep 2021 00:30:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzm0QI9eW10iHlsCh0AlibQxarxTNCBuJpeSbJtDSWirIX9OwmckbuxkNDvnqf4xj9DZD5F X-Received: by 2002:a05:6e02:20ed:: with SMTP id q13mr6116443ilv.111.1632209443674; Tue, 21 Sep 2021 00:30:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632209443; cv=none; d=google.com; s=arc-20160816; b=sMNjBS33YJ/TBd1zMulYtZuTQwud8+SZBnSZR9sUkCxV1msX9eT+MBHK+I4Zdd/tD1 ePczwmK8wNmYAopGjn2XUhU/JjV0J5pwaTaAno638qdbTQUGBAZM6+Z/kVJYnJkrBAoj Iz3P2lb5yVjoE4jE9LNXw+e71gnlSld53Mk/cFHsdIDK/L3om7/CAb0/A5Egsn5wKak4 VW5L7yycNVZ+2Aop1roETYfLfTRuffdbCnR65W+m+8P/KiAdsrXQJQwyHj8oNQ68vy3+ EWaH6C315IjsBf7rYgFt+TkUUoRIn46DULNzrUPwOm/K4YELqTTohx4fFWXKs3+rvL7h QQQw== 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=Vdz8JvX95Haydup6tm5UyM1GKneejuwKMBUgHrfKAEI=; b=yLJ4MATbu2BH4Vd4XjOpGO9PKKpxxO4lUDMzaH7YKf0zZzdLznRApQEkVN5iaV9yi1 eUqf2dkt2g/34JvM3ApUsnhuRXJy1LBo97+XDcMe+U7tqZQCOKYDvKXZc0N/ssGMjru6 ZyCJZimb+pRoIfORuGC//3tezZsiU2S3xn6IrVeVF1nZSrJ4UlN8McV5JvpHEba45W2S QSAFqIuOdoZ5i+RrgoSpd4LUyRqzP/Q6ahLR3fahuTaYdZcB+v2SmlbbVmZoLHyHg5+A nonPKzdjdP3N8n6sVAWAi7kd9+tLQgOhkjx86oa8hWEL2CNaxTnR1Dap+OmAr3/UN3FI FqJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ecwFEEpJ; 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 a17si8025013jar.110.2021.09.21.00.30.32; Tue, 21 Sep 2021 00:30:43 -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=ecwFEEpJ; 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 S230280AbhIUH3k (ORCPT + 99 others); Tue, 21 Sep 2021 03:29:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230202AbhIUH3f (ORCPT ); Tue, 21 Sep 2021 03:29:35 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FF55C06175F; Tue, 21 Sep 2021 00:28:07 -0700 (PDT) Date: Tue, 21 Sep 2021 07:28:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1632209285; 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=Vdz8JvX95Haydup6tm5UyM1GKneejuwKMBUgHrfKAEI=; b=ecwFEEpJ2w4M0y9c+BVgpXHMV21S8QkLkHxM2Wn8PTEHjQXzazBWLtp2/40qTZdgYCHkIc WT+nisqvoEBaOodKzYtcGdg/heuIujmBkGFMYBy5f4fxk2dkXK/eOBaafzmEFz7UiQUa9L ewzLft1UgOzx3WeYudbw//0qNKVnoAUtKoKCHbBam1m20sJaRo1FvYGY12NlykMTg9n6Lb y4w6ME2W8QcF8pTOYlyhEBhyfM5fCZka3w8E/v1zv1Ugj4p9oCPI/TKEIOCo8W8ktJJNVq XaHTA4Hs7ZxP3QHLwZOXSsFFY4ta1Jt3he0y7x1Frs4OlB8rZ6GkbyACgyq59A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1632209285; 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=Vdz8JvX95Haydup6tm5UyM1GKneejuwKMBUgHrfKAEI=; b=BLLRnICVenCtWRzsF8zwbSdbDx3uPsrzx0SK3L7ubQb491HBy8Bzlv+2+7YgIEWs5n7tRS dj8kCg3rxHnZTuDA== 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: <163220928467.25758.1633612457264201514.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: 7d490a1fe5678d5c4abc2652a7dcfbc0b261add8 Gitweb: https://git.kernel.org/tip/7d490a1fe5678d5c4abc2652a7dcfbc0b261add8 Author: Peter Zijlstra AuthorDate: Wed, 15 Sep 2021 16:19:46 +02:00 Committer: Peter Zijlstra CommitterDate: Sat, 18 Sep 2021 12:18:33 +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)