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  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 24 Nov 2017 11:39:29 +0000
From:   David Laight <David.Laight@...LAB.COM>
To:     'Andy Lutomirski' <luto@...nel.org>, X86 ML <x86@...nel.org>
CC:     Borislav Petkov <bpetkov@...e.de>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        Brian Gerst <brgerst@...il.com>,
        Dave Hansen <dave.hansen@...el.com>,
        Linus Torvalds <torvalds@...ux-foundation.org>,
        "Josh Poimboeuf" <jpoimboe@...hat.com>
Subject: RE: [PATCH v3 14/19] x86/entry/64: Create a percpu SYSCALL entry
 trampoline

From: Andy Lutomirski
> Sent: 24 November 2017 04:33
...
> +	/*
> +	 * x86 lacks a near absolute jump, and we can't jump to the real
> +	 * entry text with a relative jump, so we fake it using retq.
> +	 */
> +	pushq	$entry_SYSCALL_64_after_hwframe
> +	retq

Don't some of the cpus have hardware logic that follows call and return?
The above will break that logic and slow things down (unless it is an
expected sequence).

Is there a scratch register that can be used for an indirect jump?

	David

Powered by blists - more mailing lists