Re: [PATCH 00/23] binfmt_elf,arch/*: Use elf.h for coredump note names
Dave Martin <[email protected]>
| Newsgroups | org.kernel.vger.linux-hexagon,dev.linux.lists.loongarch,org.infradead.lists.linux-riscv,org.infradead.lists.linux-snps-arc,org.infradead.lists.linux-um,org.kernel.vger.linux-arch,org.kernel.vger.linux-csky,org.kernel.vger.linux-kernel,org.kernel.vger.linux-m68k,org.kernel.vger.linux-mips,org.kernel.vger.linux-openrisc,org.kernel.vger.linux-parisc,org.kernel.vger.linux-s390,org.kernel.vger.linux-sh,org.kernel.vger.sparclinux,org.ozlabs.lists.linuxppc-dev |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Jul 14, 2025 at 10:37:11PM -0700, Kees Cook wrote: > On Tue, 01 Jul 2025 14:55:53 +0100, Dave Martin wrote: > > This series aims to clean up an aspect of coredump generation: > > > > ELF coredumps contain a set of notes describing the state of machine > > registers and other information about the dumped process. > > > > Notes are identified by a numeric identifier n_type and a "name" > > string, although this terminology is somewhat misleading. Officially, > > the "name" of a note is really an "originator" or namespace identifier > > that indicates how to interpret n_type [1], although in practice it is > > often used more loosely. > > > > [...] > > Applied to for-next/execve, thanks! > > [01/23] regset: Fix kerneldoc for struct regset_get() in user_regset > https://git.kernel.org/kees/c/6fd9e1aa0784 [...] > [23/23] binfmt_elf: Warn on missing or suspicious regset note names > https://git.kernel.org/kees/c/a55128d392e8 > > Take care, > > -- > Kees Cook Thanks! Assuming nobody screams about things going wrong in next, I'll plan to water down the paranoid check in binfmt_elf.c:fill_thread_core_info(). Anyone copy-pasting a new arch after this is in mainline shouldn't fall foul of this. Cheers ---Dave