Re: [PATCH v3 02/14] arm64: Allow mismatched 32-bit EL0 support

2020-11-19 Thread Will Deacon
Hi Valentin, Thanks for the review. On Thu, Nov 19, 2020 at 11:27:41AM +, Valentin Schneider wrote: > > On 13/11/20 09:37, Will Deacon wrote: > > +const struct cpumask *system_32bit_el0_cpumask(void) > > +{ > > + if (!system_supports_32bit_el0()) > > + return cpu_none_mask; > > +

Re: [PATCH v3 02/14] arm64: Allow mismatched 32-bit EL0 support

2020-11-19 Thread Valentin Schneider
On 13/11/20 09:37, Will Deacon wrote: > +const struct cpumask *system_32bit_el0_cpumask(void) > +{ > + if (!system_supports_32bit_el0()) > + return cpu_none_mask; > + > + if (static_branch_unlikely(&arm64_mismatched_32bit_el0)) > + return cpu_32bit_el0_mask; > + >

[PATCH v3 02/14] arm64: Allow mismatched 32-bit EL0 support

2020-11-13 Thread Will Deacon
When confronted with a mixture of CPUs, some of which support 32-bit applications and others which don't, we quite sensibly treat the system as 64-bit only for userspace and prevent execve() of 32-bit binaries. Unfortunately, some crazy folks have decided to build systems like this with the intent