Re: [PATCH] ELF core dump options

2007-07-26 Thread Hugh Dickins
On Thu, 26 Jul 2007, Roland McGrath wrote: > > > hm, I'm now wondering whether testing i_nlink was the best (or official) > > way of determining whether a MAP_SHARED vma is anonymous or file-backed. > > Hugh will know. > > Well, it doesn't exactly test that it's not "file-backed". (Technically >

Re: [PATCH] ELF core dump options

2007-07-26 Thread Roland McGrath
> It's a bit disappointing to route around the newly-added > /proc/pid/coredump_filter. It's inherited across fork so where's the > problem? Just set init's mask appropriately at boot if that's what you > want. I think it's actually a bit of a pain to manage to do something early enough to get i

Re: [PATCH] ELF core dump options

2007-07-26 Thread Andrew Morton
On Thu, 26 Jul 2007 02:37:43 -0700 (PDT) Roland McGrath <[EMAIL PROTECTED]> wrote: > > This adds two sysctl items under fs.binfmt_elf for controlling how memory > segments are dumped in ELF core files. The core_dump_whole_segments option > can be set to have private file mappings dumped in thei

[PATCH] ELF core dump options

2007-07-26 Thread Roland McGrath
This adds two sysctl items under fs.binfmt_elf for controlling how memory segments are dumped in ELF core files. The core_dump_whole_segments option can be set to have private file mappings dumped in their entirety. Some people prefer the certainty to the saving disk space and i/o at dump time,