Messages in this thread | | | From | Kees Cook <> | Subject | Re: [PATCH] coredump, vmcore: Set p_align to 4 for PT_NOTE | Date | Tue, 16 May 2023 14:32:34 -0700 |
| |
On Fri, 12 May 2023 02:25:28 +0000, Fangrui Song wrote: > Tools like readelf/llvm-readelf use p_align to parse a PT_NOTE program > header as an array of 4-byte entries or 8-byte entries. Currently, there > are workarounds[1] in place for Linux to treat p_align==0 as 4. However, > it would be more appropriate to set the correct alignment so that tools > do not have to rely on guesswork. FreeBSD coredumps set p_align to 4 as > well. > > [...]
Applied to for-next/execve, thanks!
[1/1] coredump, vmcore: Set p_align to 4 for PT_NOTE https://git.kernel.org/kees/c/60592fb6b67c
-- Kees Cook
| |