Kim Phillips
909ca3e7e6
x86/cpu: Enable STIBP on AMD if Automatic IBRS is enabled
...
commit fd470a8beed88440b160d690344fbae05a0b9b1b upstream.
Unlike Intel's Enhanced IBRS feature, AMD's Automatic IBRS does not
provide protection to processes running at CPL3/user mode, see section
"Extended Feature Enable Register (EFER)" in the APM v2 at
https://bugzilla.kernel.org/attachment.cgi?id=304652
Explicitly enable STIBP to protect against cross-thread CPL3
branch target injections on systems with Automatic IBRS enabled.
Also update the relevant documentation.
Fixes: e7862eda309e ("x86/cpu: Support AMD Automatic IBRS")
Reported-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Kim Phillips <kim.phillips@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230720194727.67022-1-kim.phillips@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit bb8cc9c34361714dd232700b3d5f1373055de610)
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
2024-05-30 09:00:42 +00:00
..
2023-11-08 11:21:07 +01:00
2023-06-28 10:14:21 +02:00
2024-05-30 09:00:42 +00:00
2023-08-30 16:35:15 +02:00
2023-03-11 16:26:46 +01:00
2018-02-13 10:19:49 +01:00
2017-06-28 06:54:46 -07:00
2018-02-22 15:42:24 +01:00
2018-04-12 12:32:20 +02:00
2023-09-23 10:46:58 +02:00
2018-02-22 15:42:24 +01:00
2017-12-25 14:26:23 +01:00
2018-01-02 20:31:01 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-11-13 11:14:47 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2023-03-11 16:26:45 +01:00
2018-05-30 07:52:35 +02:00
2017-12-25 14:26:22 +01:00
2017-12-29 17:53:44 +01:00
2017-12-29 17:53:44 +01:00
2023-05-30 12:38:38 +01:00
2017-07-18 11:38:01 +02:00
2018-11-27 16:10:47 +01:00
2018-02-22 15:42:18 +01:00
2017-11-02 11:10:55 +01:00
2018-09-26 08:38:08 +02:00
2018-02-22 15:42:23 +01:00
2018-01-17 09:45:29 +01:00
2018-01-17 09:45:29 +01:00
2020-04-02 16:34:28 +02:00
2017-11-02 11:10:55 +01:00
2022-07-21 20:42:47 +02:00
2018-02-22 15:42:24 +01:00
2018-10-03 17:00:54 -07:00
2019-04-20 09:15:03 +02:00
2019-04-20 09:15:03 +02:00
2017-11-02 11:10:55 +01:00
2023-11-08 11:21:07 +01:00
2018-08-15 18:12:58 +02:00
2017-11-02 11:10:55 +01:00
2017-12-25 14:26:24 +01:00
2018-08-15 18:12:58 +02:00
2019-05-31 06:47:26 -07:00
2017-11-02 11:10:55 +01:00
2021-11-26 11:40:21 +01:00
2018-07-22 14:28:42 +02:00
2023-02-06 07:46:32 +01:00
2017-11-02 11:10:55 +01:00
2017-07-18 11:37:58 +02:00
2020-11-10 10:29:05 +01:00
2020-01-27 14:46:41 +01:00
2017-09-25 09:36:16 +02:00
2019-08-06 19:05:24 +02:00
2019-01-31 08:13:47 +01:00
2018-11-27 16:10:50 +01:00
2018-05-25 16:17:35 +02:00
2018-05-25 16:17:35 +02:00
2018-07-22 14:28:42 +02:00
2017-11-02 11:10:55 +01:00
2021-03-07 11:27:44 +01:00
2019-07-31 07:28:39 +02:00
2017-11-02 11:10:55 +01:00
2019-05-14 19:18:43 +02:00
2017-11-02 11:10:55 +01:00
2017-12-25 14:26:24 +01:00
2017-11-02 11:10:55 +01:00
2018-11-04 14:52:45 +01:00
2017-06-28 06:54:46 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2022-08-25 11:11:15 +02:00
2017-11-02 11:10:55 +01:00
2019-05-21 18:50:14 +02:00
2019-05-21 18:50:14 +02:00
2022-12-08 11:16:32 +01:00
2020-06-20 10:25:02 +02:00
2020-08-21 09:48:13 +02:00
2019-01-31 08:13:47 +01:00
2023-08-11 11:33:32 +02:00
2017-11-02 11:10:55 +01:00
2023-03-11 16:26:45 +01:00
2018-02-22 15:42:18 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-08 22:41:07 -08:00
2021-05-22 10:57:12 +02:00
2017-11-02 11:10:55 +01:00
2021-03-24 11:05:05 +01:00
2023-03-11 16:26:45 +01:00
2023-08-11 11:33:32 +02:00
2018-03-03 10:24:25 +01:00
2022-06-14 16:53:43 +02:00
2022-06-14 16:53:49 +02:00
2023-04-20 12:02:12 +02:00
2020-02-28 16:35:58 +01:00
2018-01-17 09:45:28 +01:00
2020-06-20 10:25:00 +02:00
2019-07-21 09:04:31 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-05-21 18:50:13 +02:00
2018-10-03 17:00:48 -07:00
2017-11-02 11:10:55 +01:00
2019-05-14 19:18:42 +02:00
2019-03-27 14:13:54 +09:00
2017-07-26 13:18:20 +02:00
2022-11-03 23:50:54 +09:00
2023-01-18 09:26:11 +01:00
2017-12-25 14:26:13 +01:00
2018-03-21 12:06:41 +01:00
2023-11-08 11:21:08 +01:00
2017-12-25 14:26:20 +01:00