Peter Zijlstra
d7771f380c
x86/speculation: Add eIBRS + Retpoline options
...
commit 1e19da8522c81bf46b335f84137165741e0d82b7 upstream.
Thanks to the chaps at VUsec it is now clear that eIBRS is not
sufficient, therefore allow enabling of retpolines along with eIBRS.
Add spectre_v2=eibrs, spectre_v2=eibrs,lfence and
spectre_v2=eibrs,retpoline options to explicitly pick your preferred
means of mitigation.
Since there's new mitigations there's also user visible changes in
/sys/devices/system/cpu/vulnerabilities/spectre_v2 to reflect these
new mitigations.
[ bp: Massage commit message, trim error messages,
do more precise eIBRS mode checking. ]
Co-developed-by: Josh Poimboeuf <jpoimboe@redhat.com >
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com >
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org >
Signed-off-by: Borislav Petkov <bp@suse.de >
Reviewed-by: Patrick Colp <patrick.colp@oracle.com >
Reviewed-by: Thomas Gleixner <tglx@linutronix.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2022-03-11 12:22:31 +01:00
..
2021-06-23 20:04:58 +02:00
2021-03-06 12:59:10 +01:00
2021-03-18 15:31:53 +01:00
2021-05-14 14:55:13 +02:00
2021-12-01 09:04:48 +01:00
2021-03-21 23:50:28 +01:00
2021-04-02 12:41:17 +02:00
2021-08-26 09:14:36 +02:00
2021-05-29 11:41:14 +02:00
2021-04-02 12:47:28 +02:00
2021-05-14 08:50:28 +02:00
2021-05-26 13:20:49 +02:00
2021-05-12 12:22:57 +02:00
2022-02-23 12:03:17 +01:00
2021-03-18 15:31:53 +01:00
2021-09-08 15:32:35 -07:00
2021-11-18 19:17:21 +01:00
2021-04-28 13:03:44 -07:00
2021-03-11 19:33:43 +01:00
2022-03-11 12:22:31 +01:00
2021-06-07 12:14:45 +02:00
2021-07-02 12:08:10 -07:00
2021-06-03 16:33:09 +02:00
2022-01-05 12:42:34 +01:00
2021-05-19 12:18:45 +02:00
2021-10-06 18:46:02 +02:00
2021-04-20 08:59:03 -06:00
2021-08-04 11:56:53 +00:00
2021-08-10 23:31:43 +02:00
2021-06-29 12:36:59 -07:00
2021-03-15 11:00:57 +01:00
2021-11-18 19:15:56 +01:00
2021-03-31 16:20:22 +02:00
2021-03-18 15:31:53 +01:00
2021-03-21 23:50:28 +01:00
2021-05-14 14:31:14 +02:00
2021-03-18 15:31:53 +01:00
2021-11-18 19:16:10 +01:00
2021-05-21 12:36:44 +02:00
2021-03-11 20:07:01 +01:00
2021-05-12 14:54:56 +02:00
2021-05-20 15:03:58 +02:00
2021-03-08 12:06:29 -07:00
2021-07-30 17:09:01 +02:00
2021-03-23 16:07:56 +01:00
2022-02-01 17:27:02 +01:00
2021-09-22 10:33:09 -04:00
2021-05-07 06:06:10 -04:00
2021-12-29 12:28:54 +01:00
2021-09-30 04:08:01 -04:00
2021-08-24 10:40:58 +02:00
2021-11-18 19:17:21 +01:00
2021-07-15 12:59:45 +00:00
2021-06-28 11:22:40 -07:00
2021-05-05 21:50:14 +02:00
2021-05-10 12:33:28 +02:00
2022-03-11 12:22:31 +01:00
2021-11-18 19:16:10 +01:00
2021-06-22 13:56:43 +02:00
2021-06-04 19:32:21 +01:00
2021-04-29 11:41:43 -07:00
2021-04-29 11:41:43 -07:00
2021-08-10 23:31:43 +02:00
2021-06-17 14:11:47 +02:00
2021-07-01 11:06:03 -07:00
2021-07-01 11:06:02 -07:00
2021-07-08 11:48:22 -07:00
2021-09-20 22:28:47 +02:00
2021-12-29 12:28:54 +01:00
2021-05-12 13:01:45 +02:00
2021-08-10 23:31:43 +02:00
2021-11-18 19:15:56 +01:00
2021-04-12 13:12:46 +02:00
2021-03-15 10:49:00 +01:00
2022-01-27 11:04:35 +01:00
2021-03-08 13:19:05 +01:00
2021-03-21 23:50:28 +01:00
2021-03-11 11:47:37 +01:00
2021-06-23 11:25:17 +02:00
2021-05-10 07:46:39 +02:00
2021-05-12 20:00:51 +02:00
2021-05-19 11:46:27 +02:00
2021-07-23 14:20:24 +01:00
2021-04-26 09:01:29 -07:00
2021-04-07 19:02:43 +02:00
2021-09-22 19:45:48 +02:00
2021-05-12 20:00:51 +02:00
2021-11-18 19:16:10 +01:00
2021-03-08 13:19:05 +01:00
2021-08-16 09:48:27 -04:00
2021-03-28 22:40:10 +02:00
2021-05-20 15:03:58 +02:00
2021-05-25 10:07:00 +02:00
2021-05-31 22:32:26 +02:00
2021-07-28 11:42:24 +02:00
2021-07-28 11:42:24 +02:00
2022-01-27 11:03:56 +01:00
2021-11-18 19:16:10 +01:00
2021-09-08 15:32:35 -07:00
2022-01-27 11:03:33 +01:00
2021-05-20 15:03:59 +02:00
2021-04-30 11:20:40 -07:00
2021-04-20 04:18:54 -04:00