Skip to contentSkip to conversation

fs-binfmt_elf-fix-at_phdr-for-unusual-elf-files-v5.patch removed from -mm tree

merged Andrew Morton 1 participant 1 message Feb 28, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The patch titled
Subject: fs-binfmt_elf-fix-at_phdr-for-unusual-elf-files-v5
has been removed from the -mm tree. Its filename was
fs-binfmt_elf-fix-at_phdr-for-unusual-elf-files-v5.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Akira Kawata <[email protected]>
Subject: fs-binfmt_elf-fix-at_phdr-for-unusual-elf-files-v5

add comment per Kees

---

 fs/binfmt_elf.c |    4 ++++
 1 file changed, 4 insertions(+)
fs/binfmt_elf.c renamed from fs/binfmt_elf.c~fs-binfmt_elf-fix-at_phdr-for-unusual-elf-files-v5 +4 -0
@@ -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 [email protected] are