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:	Mon, 4 Feb 2008 14:01:56 +0100
From:	Ingo Molnar <mingo@...e.hu>
To:	Pavel Machek <pavel@....cz>
Cc:	jikos@...e.cz, kernel list <linux-kernel@...r.kernel.org>
Subject: Re: brk randomization breaks columns


* Pavel Machek <pavel@....cz> wrote:

> Hmm, code in binfmt_elf is really strange.
> 
>         elf_bss += load_bias;
>         elf_brk += load_bias;
>         start_code += load_bias;
>         end_code += load_bias;
>         start_data += load_bias;
>         end_data += load_bias;
> 
>         /* Calling set_brk effectively mmaps the pages that we need
>          * for the bss and break sections.  We must do this before
>          * mapping in the interpreter, to make sure it doesn't wind
>          * up getting placed where the bss needs to go.
>          */
>         retval = set_brk(elf_bss, elf_brk);
> 
> ... so we allocate non-randoimzed brk, but later we just overwrite bss 
> variable with new, shiner and better randomized value... without 
> unmapping the old one... The code in binfmt_elf.c is really a mess.

hm, so it seems that it isnt even the randomization that causes the 
problem - but somehow the randomization code itself is broken, right? 

Would you be interested in figuring out how to unbreak this? [if not, 
could you send me the binary?]

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