Re: [PATCH v2] binfmt_flat: Fix corruption when not offsetting data start

2024-08-07 Thread Greg Ungerer
Hi Kees, On 8/8/24 05:51, Kees Cook wrote: Commit 04d82a6d0881 ("binfmt_flat: allow not offsetting data start") introduced a RISC-V specific variant of the FLAT format which does not allocate any space for the (obsolete) array of shared library pointers. However, it did not disable the code whic

Re: [PATCH v2] binfmt_flat: Fix corruption when not offsetting data start

2024-08-07 Thread Damien Le Moal
On 2024/08/07 12:51, Kees Cook wrote: > Commit 04d82a6d0881 ("binfmt_flat: allow not offsetting data start") > introduced a RISC-V specific variant of the FLAT format which does > not allocate any space for the (obsolete) array of shared library > pointers. However, it did not disable the code whic

[PATCH v2] binfmt_flat: Fix corruption when not offsetting data start

2024-08-07 Thread Kees Cook
Commit 04d82a6d0881 ("binfmt_flat: allow not offsetting data start") introduced a RISC-V specific variant of the FLAT format which does not allocate any space for the (obsolete) array of shared library pointers. However, it did not disable the code which initializes the array, resulting in the corr