x86/msr-index: Cleanup bit defines
Greg pointed out that speculation related bit defines are using (1 << N) format instead of BIT(N). Aside of that (1 << N) is wrong as it should use 1UL at least. Clean it up. [ Josh Poimboeuf: Fix tools build ] Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Borislav Petkov <bp@suse.de> CVE-2018-12126 CVE-2018-12127 CVE-2018-12130 (backported from commit a4a931802e51223b3e0548fc31fb3f7dc8f6d032) [juergh: - Adjusted context. - Dropped modification to tools/power/x86/x86_energy_perf_policy/Makefile. - Introduced SPEC_CTRL_IBRS_SHIFT to be used in asm macros in arch/x86/include/asm/spec_ctrl.h (can't use BIT() macro in asm because of UUL).] Signed-off-by: Juerg Haefliger <juergh@canonical.com> Acked-by: Tyler Hicks <tyhicks@canonical.com> Acked-by: Stefan Bader <stefan.bader@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Showing
Please register or sign in to comment