[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87bkhoirmq.ffs@tglx>
Date: Fri, 09 Jun 2023 17:26:21 +0200
From: Thomas Gleixner <tglx@...utronix.de>
To: Nikolay Borisov <nik.borisov@...e.com>, x86@...nel.org
Cc: linux-kernel@...r.kernel.org, mhocko@...e.com, jslaby@...e.cz,
Nikolay Borisov <nik.borisov@...e.com>
Subject: Re: [PATCH v2 4/4] x86: Disable laoding 32bit processes if
ia32_disabled is true
On Fri, Jun 09 2023 at 14:13, Nikolay Borisov wrote:
> diff --git a/arch/x86/include/asm/elf.h b/arch/x86/include/asm/elf.h
> index 18fd06f7936a..0fa49388ff16 100644
> --- a/arch/x86/include/asm/elf.h
> +++ b/arch/x86/include/asm/elf.h
> @@ -148,9 +148,16 @@ do { \
> #define elf_check_arch(x) \
> ((x)->e_machine == EM_X86_64)
>
> +#ifdef CONFIG_IA32_EMULATION
> +extern bool ia32_disabled;
> #define compat_elf_check_arch(x) \
1) Your keyboard clearly has a broken newline key.
2) Why is there still a duplicated declaration?
3) This #ifdeffery is not needed if this is done right.
Thanks,
tglx
Powered by blists - more mailing lists