* + fs-binfmt_elf-fix-at_phdr-for-unusual-elf-files-v5.patch added to -mm tree
@ 2022-01-27 22:14 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2022-01-27 22:14 UTC (permalink / raw)
To: akirakawata1, keescook, mm-commits
The patch titled
Subject: fs-binfmt_elf-fix-at_phdr-for-unusual-elf-files-v5
has been added to the -mm tree. Its filename is
fs-binfmt_elf-fix-at_phdr-for-unusual-elf-files-v5.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/fs-binfmt_elf-fix-at_phdr-for-unusual-elf-files-v5.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/fs-binfmt_elf-fix-at_phdr-for-unusual-elf-files-v5.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Akira Kawata <akirakawata1@gmail.com>
Subject: fs-binfmt_elf-fix-at_phdr-for-unusual-elf-files-v5
add comment per Kees
Link: https://lkml.kernel.org/r/20220127124014.338760-2-akirakawata1@gmail.com
Signed-off-by: Akira Kawata <akirakawata1@gmail.com>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
fs/binfmt_elf.c | 4 ++++
1 file changed, 4 insertions(+)
--- a/fs/binfmt_elf.c~fs-binfmt_elf-fix-at_phdr-for-unusual-elf-files-v5
+++ a/fs/binfmt_elf.c
@@ -1170,6 +1170,10 @@ out_free_interp:
}
}
+ /*
+ * Figure out which segment in the file contains the Program
+ * Header table, and map to the associated memory address.
+ */
if (elf_ppnt->p_offset <= elf_ex->e_phoff &&
elf_ex->e_phoff < elf_ppnt->p_offset + elf_ppnt->p_filesz) {
phdr_addr = elf_ex->e_phoff - elf_ppnt->p_offset +
_
Patches currently in -mm which might be from akirakawata1@gmail.com are
fs-binfmt_elf-fix-at_phdr-for-unusual-elf-files.patch
fs-binfmt_elf-fix-at_phdr-for-unusual-elf-files-v5.patch
fs-binfmt_elf-refactor-load_elf_binary-function.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-27 22:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-27 22:14 + fs-binfmt_elf-fix-at_phdr-for-unusual-elf-files-v5.patch added to -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).