]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/amd_node: Add SMN offsets to exclusive region access
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 30 Jan 2025 19:48:56 +0000 (19:48 +0000)
committerIngo Molnar <mingo@kernel.org>
Wed, 19 Mar 2025 10:18:23 +0000 (11:18 +0100)
commit83518453074d1f3eadbf7e61652b608a60087317
treebd15466afa125d11000a7ed4d1d206df333e713d
parent8a3dc0f7c4ccf13098dba804be06799b4bd46c7a
x86/amd_node: Add SMN offsets to exclusive region access

Offsets 0x60 and 0x64 are used internally by kernel drivers that call
the amd_smn_read() and amd_smn_write() functions. If userspace accesses
the regions at the same time as the kernel it may cause malfunctions in
drivers using the offsets.

Add these offsets to the exclusions so that the kernel is tainted if a
non locked down userspace tries to access them.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20250130-wip-x86-amd-nb-cleanup-v4-2-b5cc997e471b@amd.com
arch/x86/kernel/amd_node.c