Re: [PATCH v3 04/23] arm64: Use in_compat_task() in arch_setup_additional_pages()

From: Will Deacon
Date: Tue Jun 15 2021 - 06:21:49 EST


On Fri, Jun 11, 2021 at 07:02:23PM +0100, Dmitry Safonov wrote:
> Instead of providing compat_arch_setup_additional_pages(), check if the
> task is compatible from personality, which is set earlier in
> load_elf_binary(). That will align code with powerpc and sparc, also
> it'll allow to completely remove compat_arch_setyp_addtional_pages()
> macro after doing the same for x86, simiplifying the binfmt code
> in the end and leaving elf loader single function.
>
> Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
> Signed-off-by: Dmitry Safonov <dima@xxxxxxxxxx>
> ---
> arch/arm64/include/asm/elf.h | 5 -----
> arch/arm64/kernel/vdso.c | 21 ++++++++++-----------
> 2 files changed, 10 insertions(+), 16 deletions(-)

Acked-by: Will Deacon <will@xxxxxxxxxx>

Will