lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 13 Dec 2021 08:35:26 +0900
From:   Akira Kawata <akirakawata1@...il.com>
To:     akpm@...ux-foundation.org, adobriyan@...il.com,
        viro@...iv.linux.org.uk, keescook@...omium.org,
        linux-fsdevel@...r.kernel.org, lukas.bulwahn@...il.com
Cc:     Eric Biederman <ebiederm@...ssion.com>,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4 0/2] [PATCH v4 0/2] fs/binfmt_elf: Fix AT_PHDR for
 unusual ELF files

On Mon, Dec 13, 2021 at 08:24:13AM +0900, Akira Kawata wrote:
>  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.
>  
>  Sorry for my latency.
>  
>  Changes in v4
>  - Reflecting 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 | 36 +++++++++++++++++++++---------------
>  1 file changed, 21 insertions(+), 15 deletions(-)
> 
> 
> base-commit: 4eee8d0b64ecc3231040fa68ba750317ffca5c52
> -- 
> 2.34.1
> 

I am sorry for sending duplicated emails by mistake.
Please ignore the later ones.

Akira

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ