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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 28 Apr 2015 17:57:14 +0200 (CEST)
From:	Jiri Kosina <jkosina@...e.cz>
To:	x86@...nel.org, Borislav Petkov <bp@...en8.de>
cc:	Josh Poimboeuf <jpoimboe@...hat.com>,
	Kees Cook <keescook@...omium.org>,
	Seth Jennings <sjenning@...hat.com>,
	Vojtech Pavlik <vojtech@...e.cz>, linux-kernel@...r.kernel.org,
	live-patching@...r.kernel.org
Subject: Re: [PATCH v2 1/2] x86: introduce kaslr_offset()

On Tue, 28 Apr 2015, Jiri Kosina wrote:

> Offset that has been chosen for kaslr during kernel decompression can be 
> easily computed as a difference between _text and __START_KERNEL. We are 
> already making use of this in dump_kernel_offset() notifier and in 
> arch_crash_save_vmcoreinfo().
> 
> Introduce kaslr_offset() that makes this computation instead of 
> hard-coding it, so that other kernel code (such as live patching) can make 
> use of it. Also convert existing users to make use of it.
> 
> Signed-off-by: Jiri Kosina <jkosina@...e.cz>
> ---
> 
> It'd be great to potentially have Ack from x86 guys for this patch so that 
> I could take it through livepatching.git with the depending 2/2 patch. 
> Thanks.
> 
> v1 -> v2: convert arch_crash_save_vmcoreinfo(), as spotted by Josh 
> 	  Poimboeuf.

FWIW this patch is equivalent transofrmation without any effects on the 
resulting code:

	$ diff -u vmlinux.old.asm vmlinux.new.asm
	--- vmlinux.old.asm     2015-04-28 17:55:19.520983368 +0200
	+++ vmlinux.new.asm     2015-04-28 17:55:24.141206072 +0200
	@@ -1,5 +1,5 @@
	 
	-vmlinux.old:     file format elf64-x86-64
	+vmlinux.new:     file format elf64-x86-64
	 
	 
	 Disassembly of section .text:
	$

-- 
Jiri Kosina
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ