This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 0/8] v2 - validate binary before use


On 13-04-09 11:36 AM, Jan Kratochvil wrote:
On Tue, 09 Apr 2013 17:27:37 +0200, Aleksandar Ristovski wrote:
Core support:
   - core will use second method. Note, however, that due to (at least
   on ubuntu) not dumping page containing buid-id in the core, the
   validation can not be performed (it will always default to valid).
   This is misfortunate but outside the scope of this patch.

FYI it is bit 4 in /proc/self/coredump_filter, Fedora has the default 0x33.

It is configured for Linux kernel by:
linux-2.6/fs/Kconfig.binfmt CORE_DUMP_DEFAULT_ELF_HEADERS

One can simulate it if not pre-configured:
	echo 0x33 >/proc/self/coredump_filter


Good to know. Thanks. In that case, it will be picked up by normal target_read_memory (second method).

---
Aleksandar


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]