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;
> > +
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;
> +
>
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
3 matches
Mail list logo