From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9D85910961 for ; Fri, 19 Apr 2024 21:09:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713560995; cv=none; b=sBX4iKNnMszjUiCL2csfPP0mhIcn3MDeJNwxXe5QbmGwdE797r3A4CkhMOQLOlj3h4p0+JBt80DG0ctkEXhJ8otspqWmoerUgs1X/cQJJW/0U0677PsFV3GWUqAnAVrxaRAXQhPnKUQ+deVFho1rR7DmIZbJki8PrRnTAVeSkFk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713560995; c=relaxed/simple; bh=gwfkQSLY0diiDeo9O6hx3l4tKvPOvaOzuzyFQJWuSsQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OpdaJIchSGtVmjnocOwegtHl1W6Jlo/6v+GLaM6N7GgklI2Qsnk/CQaDVzR7H2gLbP76tNyDW4YU5V4MJdiLlg3TWgWmW+HOl2Z60wMZDadyf/AYPWTdRYnfV7qVeEBhJtXPoFubrFzCm0i5p9HFy07b6zO4TSWaoGu3hhYmqPk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pTL+ym4g; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pTL+ym4g" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7299C072AA; Fri, 19 Apr 2024 21:09:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713560995; bh=gwfkQSLY0diiDeo9O6hx3l4tKvPOvaOzuzyFQJWuSsQ=; h=From:To:Cc:Subject:Date:From; b=pTL+ym4gh7JOpxJUOokFTjCYJRjzF4ahFZqRSl34Ai2L/4RzreBYIsZeRJULTU4hd MdVKSR7ZrBwlXEZHDbaD+wXmP6L2FwV1rYGw9whdoErwmKZGZ3Toe3GtW/DM5VC/9x 5f0B21FrfTFS/lZqO+WdtVl+qmRHM8WbFgBD8Z4k5KR3/mvOLrEs6Hp2bbb5nwUSRz y8ShPKdZofHo7RO6yyk1+efWjV3YSkzKRo/tP7Zk0B0jh+Y7Xu+Aftgm+epWptRR/5 475kYzPPhL30tB20OEI7khRakl3hdY6iH87lniVEVH/xJUa/rpB1WvgDbL+ihYN/Qv s0N+E42jS0tVg== From: Josh Poimboeuf To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Linus Torvalds , Daniel Sneddon , Pawan Gupta , Thomas Gleixner , Alexandre Chartre , Konrad Rzeszutek Wilk , Peter Zijlstra , Greg Kroah-Hartman , Sean Christopherson , Andrew Cooper , Dave Hansen , Nikolay Borisov , KP Singh , Waiman Long , Borislav Petkov , Ingo Molnar Subject: [PATCH 0/5] x86/bugs: more BHI fixes Date: Fri, 19 Apr 2024 14:09:46 -0700 Message-ID: X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Patch 1 is another iteration of reducing the scope of syscall hardening in order to improve performance on some CPUs. The feature bit has a new name, and the commit log and comments are much improved. The rest of the patches are new: - Patch 2 fixes the default mitigations for !x86 (reimplementation of Sean's fix). - Patch 3 fixes some objtool warnings found by Paul. - Patch 4 is a documentation cleanup and prep for patch 5. - Patch 5 adds a requested spectre_bhi=vmexit option. Josh Poimboeuf (5): x86/bugs: Only harden syscalls when needed cpu/speculation: Fix CPU mitigation defaults for !x86 x86/syscall: Mark exit[_group] syscall handlers __noreturn x86/bugs: Remove duplicate Spectre cmdline option descriptions x86/bugs: Add 'spectre_bhi=vmexit' cmdline option Documentation/admin-guide/hw-vuln/spectre.rst | 84 ++----------------- .../admin-guide/kernel-parameters.txt | 12 ++- arch/Kconfig | 10 +++ arch/x86/Kconfig | 15 +--- arch/x86/entry/common.c | 15 +++- arch/x86/entry/syscall_32.c | 11 +-- arch/x86/entry/syscall_64.c | 10 +-- arch/x86/entry/syscall_x32.c | 11 ++- arch/x86/entry/syscalls/syscall_64.tbl | 6 +- arch/x86/include/asm/cpufeatures.h | 1 + arch/x86/include/asm/syscall.h | 8 +- arch/x86/kernel/cpu/bugs.c | 51 +++++++++-- arch/x86/um/sys_call_table_32.c | 1 + arch/x86/um/sys_call_table_64.c | 1 + kernel/cpu.c | 4 +- scripts/syscalltbl.sh | 6 +- tools/objtool/noreturns.h | 4 + 17 files changed, 126 insertions(+), 124 deletions(-) -- 2.44.0