lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <3df7fc9b-5cba-666a-be94-9c104ad117ef@infradead.org>
Date:   Tue, 2 Jun 2020 07:30:41 -0700
From:   Randy Dunlap <rdunlap@...radead.org>
To:     X86 ML <x86@...nel.org>, LKML <linux-kernel@...r.kernel.org>,
        Thomas Gleixner <tglx@...utronix.de>,
        Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
        Andy Lutomirski <luto@...nel.org>
Subject: [PATCH -next] x86: F00F: fix parenthesis in idt.c

From: Randy Dunlap <rdunlap@...radead.org>

Fix unmatched parenthesis and build error for F00F bug:

../arch/x86/kernel/idt.c: In function 'idt_is_f00f_address':
../arch/x86/kernel/idt.c:177:43: error: expected ';' before ')' token
  return (address - idt_descr.address) >> 3) == 6;
                                           ^
../arch/x86/kernel/idt.c:177:43: error: expected statement before ')' token
../arch/x86/kernel/idt.c:177:45: error: expected expression before '==' token
  return (address - idt_descr.address) >> 3) == 6;
                                             ^~

Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
---
 arch/x86/kernel/idt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20200602.orig/arch/x86/kernel/idt.c
+++ linux-next-20200602/arch/x86/kernel/idt.c
@@ -174,7 +174,7 @@ void load_current_idt(void)
 #ifdef CONFIG_X86_F00F_BUG
 bool idt_is_f00f_address(unsigned long address)
 {
-	return (address - idt_descr.address) >> 3) == 6;
+	return ((address - idt_descr.address) >> 3) == 6;
 }
 #endif
 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ