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>] [day] [month] [year] [list]
Message-Id: <20090611161553.3b1fcc8b.kamezawa.hiroyu@jp.fujitsu.com>
Date:	Thu, 11 Jun 2009 16:15:53 +0900
From:	KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
To:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Question: elf coredump with an extreme program

Hi, 

At first, I don't have any real problem, now. just curious....

Now, sysctl_max_map_count=65536 at default.

And some (silly) program  and increases max_map_count to be very large to
do mmap() more.

Unfortunately, it gets SEGV and  generates a core-dump.
But this core is not readable by gdb.

Because it seems ELF format uses 16bit value for # of sections,
coredump header is corrupted in this case. (secions are crated per
vma.)

gdb shouldn't trust the number of sections in  elf->e_phnum ?
or is there some workaround technique for this problem ?

BTW, I think default limit of 65536 of vma is too large for usual ELF program.
coredump will be corrupted.

Thanks,
-Kame

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