Alexandre Chartre 7fbf47c7ce x86/bugs: Add AMD retbleed= boot parameter
Add the "retbleed=<value>" boot parameter to select a mitigation for
RETBleed. Possible values are "off", "auto" and "unret"
(JMP2RET mitigation). The default value is "auto".

Currently, "retbleed=auto" will select the unret mitigation on
AMD and Hygon and no mitigation on Intel (JMP2RET is not effective on
Intel).

  [peterz: rebase; add hygon]
  [jpoimboe: cleanups]

Signed-off-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
2022-06-27 10:33:59 +02:00
..
2022-06-27 10:33:59 +02:00
2022-06-05 10:40:31 -07:00
2022-04-11 18:04:27 +02:00
2022-06-27 10:33:59 +02:00
2022-06-27 10:33:59 +02:00
2022-04-14 14:09:43 +02:00
2022-06-27 10:33:58 +02:00
2022-05-23 17:51:12 -07:00
2021-12-11 09:09:45 +01:00
2022-06-27 10:33:58 +02:00