Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1082654ybt; Wed, 1 Jul 2020 18:25:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzVvhwxweF1OUcVutuQbTrmsT9v2U63hhNrWBgmeZDs54eFz2Qci9cgYzW6VHGO8deHzOw X-Received: by 2002:a17:906:7017:: with SMTP id n23mr9599591ejj.262.1593653122048; Wed, 01 Jul 2020 18:25:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593653122; cv=none; d=google.com; s=arc-20160816; b=UxbYiRidkhhtw8jK67I8c/0a02E78uSYiYnXk9/sYWmrfU8VCstvyMGbOBRR9GF0QE +Lun8c+wdeI6GzNcgc7avQWoVhjJC/GaigC3MIgQoodACocvh9H0trCo1DlYTAlMKphv 7Y3DkzdU/Or+8ImPG0yuPMtsIjjsuC+0mLmg+j9mc8WW7cGPLq0Hlh7rXoPRe8YRmarR ZvDDx93NpIuLRivr7XtIl2wZVkiFfuCPm5/OFRvZz3GsFz0rPwVUUKJV2TJxR4fp/Q9J JrtMqAUSKy1+UKL53ZqcBQba5xG0sO5Wk+1/IMTm+ZscrGekfqn443Auq5qi4yvtN6lh kjvw== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DJk3qBD0Bdnl+p0sIE9ZCUsJvxkHDOaRwfGF5AbMxOs=; b=VDSAEBA2jPD2DuFIh5acjqml/Q/jOSD58u93shempCa8P2WkVfeIxwUyvclaXz7e7i /dZN0ipSmDIFpm/nKRPw+KmuZLnaWcG+r3ZU7/uuEWTiBnE/DYfAShMvmRMKg3CrDwat DMIL/CSsMsxudVrdCioSTlAPyQEVtPuuu+QviNl5EFvpiBbYkfDuudjcdM4HRZ1KwC4Z +qk9d1QtO1RFqAZw31RP7m3S5JWYkcM2HDdTVYsuLZGX30S8/bZKIvalAEOcwrQXkzL1 0dsTM6G3jORJPNn9ARaz4QGg0cQ4iDF/IQgLM5NydFStt0yL6SqOSOY88+Mlsm3Q10lm nTuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="G1nVDof/"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l3si4772663eja.81.2020.07.01.18.24.59; Wed, 01 Jul 2020 18:25:22 -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=@kernel.org header.s=default header.b="G1nVDof/"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728610AbgGBBYM (ORCPT + 99 others); Wed, 1 Jul 2020 21:24:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:54708 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728527AbgGBBXz (ORCPT ); Wed, 1 Jul 2020 21:23:55 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1F1E520A8B; Thu, 2 Jul 2020 01:23:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593653034; bh=m9K1TdQIxrOHqAYmq5AHa31I2/plW1whWCcb+4B3pbg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G1nVDof/olQY/KA/Ji0wsQ1xocTddhaUqSFDoVxyQR7qTsetTpqjZvvmos3XTVyFe B0yJyHv1wYL4yB+8F131FpyZABrMlhvMcpPyb7qM85TnaUcUloeorcMlYCbDD9Kf8F MofWiPAekCCFgqVmiH1yOEERjSyBz6d57pOMNbFY= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Peter Zijlstra , Andy Lutomirski , Marco Elver , Lai Jiangshan , Sasha Levin Subject: [PATCH AUTOSEL 5.7 48/53] x86/entry: Increase entry_stack size to a full page Date: Wed, 1 Jul 2020 21:21:57 -0400 Message-Id: <20200702012202.2700645-48-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200702012202.2700645-1-sashal@kernel.org> References: <20200702012202.2700645-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 3bcf27caf6c9f..d64b72346dd27 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h @@ -369,7 +369,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