]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/CPU: Add a tlbi= cmdline switch
authorRik van Riel <riel@surriel.com>
Thu, 6 Aug 2026 15:54:57 +0000 (08:54 -0700)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 10 Aug 2026 14:09:18 +0000 (07:09 -0700)
commitabe7c8b09bd72a9c726016257c6281f129b4c02d
treee06aa8136e45ff283e4aca0725e3e28c40322520
parentdb2ddb87143519e20a95aa36c60b36107b736a58
x86/CPU: Add a tlbi= cmdline switch

With the recently found INVLPGB / TLBSYNC issue, there has been some
interest in disabling INVLPGB-based TLB flushing, in order to rule out
that CPU issue as a cause of userspace crashes.

Add a kernel command line option to control the TLB flushing behavior.

If the need arises, we will add a "tlbi=broadcast" for the case when TLB
invalidation broadcasts need to be explicitly selected, but this is not
needed now yet.

  [ bp: Rewrite commit message, move to cpu/common.c, add documentation. ]

Fixes: 767ae437a32d ("x86/mm: Add INVLPGB feature and Kconfig entry")
Suggested-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Rik van Riel <riel@surriel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@kernel.org>
Link: https://patch.msgid.link/20260729204341.3eb0b5ea@fangorn
Documentation/admin-guide/kernel-parameters.txt
arch/x86/kernel/cpu/common.c