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]
Message-ID: <m14pujb7nt.fsf@ebiederm.dsl.xmission.com>
Date:	Thu, 05 Oct 2006 00:25:58 -0600
From:	ebiederm@...ssion.com (Eric W. Biederman)
To:	vgoyal@...ibm.com
Cc:	Andrew Morton <akpm@...l.org>,
	linux kernel mailing list <linux-kernel@...r.kernel.org>,
	Reloc Kernel List <fastboot@...ts.osdl.org>, ak@...e.de,
	horms@...ge.net.au, lace@...kratochvil.net, hpa@...or.com,
	magnus.damm@...il.com, lwang@...hat.com, dzickus@...hat.com,
	maneesh@...ibm.com
Subject: Re: [PATCH 12/12] i386 boot: Add an ELF header to bzImage

Vivek Goyal <vgoyal@...ibm.com> writes:

Ok.  I just noticed another piece that we want to change for
greater compatibility.  We should make the virtual and the physical
addresses the same.  Then there is no danger of some loader getting
them mixed up.

I.e. Not:
  
> +.org 80
> +phdr:
> +	.int PT_LOAD					# p_type
> +	.int (SETUPSECTS+1)*512				# p_offset
> +	.int LOAD_PHYSICAL_ADDR + __PAGE_OFFSET		# p_vaddr
> +	.int LOAD_PHYSICAL_ADDR				# p_paddr
> +	.int SYSSIZE*16					# p_filesz
> +	.int 0						# p_memsz
> +	.int PF_R | PF_W | PF_X				# p_flags
> +	.int CONFIG_PHYSICAL_ALIGN			# p_align
> +e_phdr:
> +

but
> +.org 80
> +phdr:
> +	.int PT_LOAD					# p_type
> +	.int (SETUPSECTS+1)*512				# p_offset
> +	.int LOAD_PHYSICAL_ADDR				# p_vaddr
> +	.int LOAD_PHYSICAL_ADDR				# p_paddr
> +	.int SYSSIZE*16					# p_filesz
> +	.int 0						# p_memsz
> +	.int PF_R | PF_W | PF_X				# p_flags
> +	.int CONFIG_PHYSICAL_ALIGN			# p_align
> +e_phdr:
> +
>  start2:
>  	movw	%cs, %ax
>  	movw	%ax, %ds
> @@ -78,11 +128,11 @@ die:


Eric
-
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