fs/binfmt_elf: Fix AT_PHDR for unusual ELF files
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest2 patches 0 repliesNew 1 of 2 applied
- v4 posting 3/32 patches 2 repliesSuperseded
- v4 posting 2/30 of 2 patches 1 replySuperseded
Earlier versions · 4
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v4 posting 1/3 | 2 patches | 6 replies | Applied 2/4 | |
| v3 | 1 patch | 0 replies | Superseded | |
| v2 | 1 patch | 0 replies | Superseded | |
| v1 | 1 patch | 0 replies | Superseded |
Changes in v5 from the cover letter
- Reflecting on comments from Kees, add a comment to the first commit.
Patches in v5 1 of 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | fs/binfmt_elf: Fix AT_PHDR for unusual ELF filesfs/ | +18 | 0 replies | Applied |
| 2/2 | fs/binfmt_elf: Refactor load_elf_binary functionfs/ | +8 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Kees Cook |
|---|---|
| 1/2 | A-b |
| 2/2 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 0/2] fs/binfmt_elf: Fix AT_PHDR for unusual ELF files
These patches fix a bug in AT_PHDR calculation.
We cannot calculate AT_PHDR as the sum of load_addr and exec->e_phoff. This is because exec->e_phoff is the offset of PHDRs in the file and the address of PHDRs in the memory may differ from it. These patches fix the bug by calculating the address of program headers from PT_LOADs directly.
Changes in v5
- Reflecting on comments from Kees, add a comment to the first commit.
Changes in v4
- Reflecting on comments from Lukas, add a refactoring commit.
Changes in v3:
- Fix a reported bug from kernel test robot.
Changes in v2:
- Remove unused load_addr from create_elf_tables.
- Improve the commit message.
Akira Kawata (2):
fs/binfmt_elf: Fix AT_PHDR for unusual ELF files fs/binfmt_elf: Refactor load_elf_binary function
fs/binfmt_elf.c | 40 +++++++++++++++++++++++++--------------- 1 file changed, 25 insertions(+), 15 deletions(-)
base-commit: 0eb96e2c58c03e79fc2ee833ba88bf9226986564
Signature · 1 line
2.25.1