]> www.infradead.org Git - users/jedix/linux-maple.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)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 17 Feb 2025 09:06:10 +0000 (10:06 +0100)
commitbebe0afb74514ae51f4f348b28326c658b02209d
tree0641b029f873af710169d5838b1a4aa4e6e3c32e
parent735049b801cf3d597752017385cfc8768ce44303
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>
Link: https://lore.kernel.org/r/20250130-wip-x86-amd-nb-cleanup-v4-2-b5cc997e471b@amd.com
arch/x86/kernel/amd_node.c