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, 2 Jul 2013 12:23:23 -0400
From:	Vivek Goyal <vgoyal@...hat.com>
To:	Michael Holzheu <holzheu@...ux.vnet.ibm.com>
Cc:	HATAYAMA Daisuke <d.hatayama@...fujitsu.com>,
	Jan Willeke <willeke@...ibm.com>,
	Martin Schwidefsky <schwidefsky@...ibm.com>,
	Heiko Carstens <heiko.carstens@...ibm.com>,
	linux-kernel@...r.kernel.org, kexec@...ts.infradead.org
Subject: Re: [PATCH v6 2/5] s390/vmcore: Use ELF header in new memory feature

On Mon, Jul 01, 2013 at 09:32:36PM +0200, Michael Holzheu wrote:

[..]
> +ssize_t elfcorehdr_read(char *buf, size_t count, u64 *ppos)
> +{
> +	void *src = (void *)(unsigned long)*ppos;
> +
> +	src = elfcorehdr_newmem ? src : src - OLDMEM_BASE;

Seriously, we need to get rid of all this OLDMEM_BASE logic in s390
specific code. For regular kdump, it is no different than x86. Only
special handling required for zfcpdump for HSA region.

Why do we need above. Is it to cover the case where elfcorehdr have
been prepared by user space? Are elf headers initially stored in
reserved region and then swapped. Why do we need to swap these or
why kexec-tools could not take care of swapping it.

Anyway, I think in a separate patch series it is good to cleanup
s390 code for removing all the swap logic related stuff. I can't
wrap my head around it anymore.

Thanks
Vivek
--
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