login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
11
Re: [Patch] Elf loader crash while zero-filling .bss
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
H. Peter Anvin <hpa@...>
To: Jiri Kosina <jkosina@...>
Cc: Abel Bernabeu <abelbg@...>, <linux-kernel@...>
Subject:
Re: [Patch] Elf loader crash while zero-filling .bss
Date: Monday, February 11, 2008 - 4:35 pm
Jiri Kosina wrote:
quoted text
> On Mon, 11 Feb 2008, Abel Bernabeu wrote: > >> In such a way that set_brk(0x0, 0x100) does not alloc any space at all. >> There are just more ways to get no memory allocation than >> set_brk(elf_bss, elf_bss) (the equalness condition i've changed). >> Sorry, the correct description for the patch may be: >> set_brk(start, end) allocs just page aligned regions (by "colapsing" >> both extremes to the END of the page in which they lay)... That means >> than even if both pointers are not equal there are still some chances >> that set_brk has allocated no space at all because because >> ELF_PAGEALIGN(elf_bss) == ELF_PAGEALIGN(elf_brk) > > Now, the question is whether it is valid for ELF binary to not have the > end of .bss section (if present at all) not page-aligned. >
Why wouldn't it be? It would, however, be valid to the kernel to round it up to the next boundary. -hpa --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Re: [Patch] Elf loader crash while zero-filling .bss
, Jiri Kosina
, (Mon Feb 11, 3:28 pm)
Re: [Patch] Elf loader crash while zero-filling .bss
, H. Peter Anvin
, (Mon Feb 11, 4:35 pm)
Re: [Patch] Elf loader crash while zero-filling .bss
, Jiri Kosina
, (Mon Feb 11, 4:40 pm)
Re: [Patch] Elf loader crash while zero-filling .bss
, Andreas Schwab
, (Mon Feb 11, 6:14 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Jan Engelhardt
intel iommu (Re: -mm merge plans for 2.6.23)
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
Linus Torvalds
Linux 2.6.25-rc4
Jon Smirl
Re: 463 kernel developers missing!
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
Jarek Poplawski
Re: HTB accuracy for high speed
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
4 users
and
679 guests
online.
Online users
strcmp
cekkmay
alanmaguire
cordic
Syndicate