Josh Poimboeuf 4e9fffdc89 UPSTREAM: x86/speculation: Include unprivileged eBPF status in Spectre v2 mitigation reporting
commit 44a3918c8245ab10c6c9719dd12e7a8d291980d8 upstream.

With unprivileged eBPF enabled, eIBRS (without retpoline) is vulnerable
to Spectre v2 BHB-based attacks.

When both are enabled, print a warning message and report it in the
'spectre_v2' sysfs vulnerabilities file.

Bug: 215557547
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
[fllinden@amazon.com: backported to 5.4]
Signed-off-by: Frank van der Linden <fllinden@amazon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ie9ee8c137729aadb4f9ef2be346a86d71eca363b
2022-03-14 12:47:10 +01:00
..
2021-11-02 18:15:00 +01:00
2021-09-25 14:41:58 +02:00
2021-04-14 08:24:10 +02:00
2021-09-15 14:01:16 +02:00
2021-11-17 10:19:21 +01:00
2021-11-12 15:09:43 +01:00
2021-11-17 10:19:21 +01:00
2021-09-16 15:57:48 +02:00
2021-11-17 10:19:21 +01:00
2021-05-11 16:56:33 +02:00
2021-07-20 11:32:58 +02:00
2020-01-17 19:48:42 +01:00
2021-09-25 14:41:58 +02:00
2021-06-30 19:19:07 +02:00
2020-01-13 18:54:56 +00:00
2019-05-24 20:16:01 +02:00
2021-09-12 09:54:40 +02:00
2021-06-30 19:19:07 +02:00
2020-11-19 08:52:52 +01:00
2021-11-17 10:19:21 +01:00
2021-02-07 15:35:49 +01:00
2021-10-01 14:07:54 +02:00
2020-01-09 10:19:54 +01:00
2019-07-08 19:36:47 -07:00
2021-11-17 10:19:21 +01:00