Re: [PATCH] ELF core dump options

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Thursday, July 26, 2007 - 3:06 am

On Thu, 26 Jul 2007 02:37:43 -0700 (PDT) Roland McGrath <roland@redhat.com> wrote:


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.

Plus making it system-wide is fairly sucky compared to making it settable
per-process-tree.

And you had to add considerably more code this way.


Documentation/filesystems/proc.txt...


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.


It was peculiar of us to use bitops against a local variable - normally
we'd use open-coded &'s here.  Maybe it's OK - test_bit() is pretty cheap
(on x86, at least), but one wonders whether gcc could do better if it knew
what was going on.


The above makes elf_core_dump_sysctls[] inaccessible from here on.  It will
warn, surely?


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] ELF core dump options, Roland McGrath, (Thu Jul 26, 2:37 am)
Re: [PATCH] ELF core dump options, Andrew Morton, (Thu Jul 26, 3:06 am)
Re: [PATCH] ELF core dump options, Roland McGrath, (Thu Jul 26, 4:39 am)
Re: [PATCH] ELF core dump options, Hugh Dickins, (Thu Jul 26, 9:57 am)