Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3724672pxj; Mon, 24 May 2021 13:23:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwClVfYFpwOqd6jRt+9g8pCLW44rSZHiJRnLB3H1Ts7W6YJAROtEDo8ywZqmpVSJ9NbVPxT X-Received: by 2002:a92:da8b:: with SMTP id u11mr17731869iln.135.1621887789114; Mon, 24 May 2021 13:23:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621887789; cv=none; d=google.com; s=arc-20160816; b=e6LSxk6T8P+9WXdIgkCHrpHiFFDpNS/PkRAYjGobTVvDunm09RiCW8QpujEwDeQGdI y8BqHuijp1Xcr0kSxhvagWrm7Bs5gejcuzGQaNbXwgrCqOL4qgl4MpRtdUC9XdBz/lYl 8i+jMr6btmoEdMOtAuVLu51e3p99vPNRK4VpB7QSpNxjiCEy8heKGnUKhudNlaC1MHfW QHifG+DWIHgAto1fKXxH4oXkSsKnKLiD0TumWSEJVa9KRpOPPJuV+1mNyN0w2nAzkBPb pdZyiQMrcVQ9CuGW+OKFrEKyEkZ/pMptGhpCVMve3AcdQT9s3cz1sZaWnw59wx4naANL cVWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=i02/HRXsHMG0PjL1yDUPegg8pdxFVyH++zL/u7LaxuA=; b=bDjzEWZ8S5otYt7fTe0HIl0mybrt7p38IGtf2HG6AmxFJi/FCGE7MOUKXi7lnUfv6X fFIsfTtMcR/bEczmlLNv0EFJWj2SBaf8Kb5E1kxdyKJDtCxpgPlTmKeA6fL+03NEZA1h NJuspP2pGrcaD3PahpcAmiL1Fz86/asdxLmvraWRQEjfLWs8mQr0IuCFxGlLrNE7u7ZJ 5InsPGskwA8E49geTbbimRePKHERHJBnmXUmZy/Y7zxAGOrOMlNraT0sPZUFR0j20Ab9 UyqD+74fJsvXiS3SxpSEHRz+j3wTQwrFUY6kFhx80GrEDhgxrO8OX48wYuevAZMCStTR Hviw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lrk3isTb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r14si16002581ila.121.2021.05.24.13.22.55; Mon, 24 May 2021 13:23:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lrk3isTb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233346AbhEXUXW (ORCPT + 99 others); Mon, 24 May 2021 16:23:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:49010 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233009AbhEXUXW (ORCPT ); Mon, 24 May 2021 16:23:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 46E6B611B0; Mon, 24 May 2021 20:21:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621887713; bh=6RQbeZvmHXBMt1SBEvj3/LaSGxCxDFKh6HhXV2ArOG8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lrk3isTbZPPXvOC+CovDArTMGcqXbhESJwjjvs5Lg3lcjHy0br1AINvTzwqRGHVie PGiNFnx/d8ZMAkTENyirJgidZ1KLVN/daTrLjqJ2yjOAxDezC8TOEC0LP7t1242mcV irhl2pgdxhRavUJ4MOcibx3NQJ0kSaHkEyS6Yo0gpzK9oB8pU9l/tXTbR9M5Qe6Elz 4bRHwxSIaWtVoKwjqQx9q0IqOn2p7LKV73bMX4s03AWvfx2vObgEmXCCzGcWKi/qJX TH3giUR/SK5oonVkFButmNZ9rWR7o0tA39JRRl/jaEWeguI99KwwCP5YQ73RzZ0Bo1 paS9ftr+WVSJg== Date: Mon, 24 May 2021 21:21:47 +0100 From: Will Deacon To: Qais Yousef Cc: linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Catalin Marinas , Marc Zyngier , Greg Kroah-Hartman , Peter Zijlstra , Morten Rasmussen , Suren Baghdasaryan , Quentin Perret , Tejun Heo , Li Zefan , Johannes Weiner , Ingo Molnar , Juri Lelli , Vincent Guittot , "Rafael J. Wysocki" , kernel-team@android.com Subject: Re: [PATCH v6 02/21] arm64: Allow mismatched 32-bit EL0 support Message-ID: <20210524202146.GC15545@willie-the-truck> References: <20210518094725.7701-1-will@kernel.org> <20210518094725.7701-3-will@kernel.org> <20210521152255.tosr4jwok6cjg6sf@e107158-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210521152255.tosr4jwok6cjg6sf@e107158-lin.cambridge.arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 21, 2021 at 04:22:55PM +0100, Qais Yousef wrote: > On 05/18/21 10:47, Will Deacon wrote: > > 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 intention of running 32-bit applications, so relax our > > sanitisation logic to continue to advertise 32-bit support to userspace > > on these systems and track the real 32-bit capable cores in a cpumask > > instead. For now, the default behaviour remains but will be tied to > > a command-line option in a later patch. > > > > Signed-off-by: Will Deacon > > --- > > arch/arm64/include/asm/cpucaps.h | 3 +- > > Heads up. I just tried to apply this on 5.13-rc2 and it failed because cpucaps. > was removed; it's autogenerated now. > > See commit 0c6c2d3615ef: ()"arm64: Generate cpucaps.h") Yup, cheers. I'll sort that out once we're at the stage where we're merging patches. Will