From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1BDB1C47076 for ; Fri, 21 May 2021 15:28:53 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D1CD7613CC for ; Fri, 21 May 2021 15:28:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D1CD7613CC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=fOMlgX6CWoFOwsbgLTU0u2Rujn7GOQz+cxJNQ3EVI3A=; b=GbCXjPQCOIZP4zc4g4tSrcm0v+ 663U1N4FufZDYB07iIkrz2k2oWiYgr+S6WYGMxUKMtSN2M1vR1SmTgu+TKXIZoo1m5LZefhOdpAOb 4RrmzYP9sEfkN6BG8s7qtd7CkmrSLxFl8+Z/V37iy9qvsFmL+cBTAD5H+TZGbWuQKUIW+ioIKbHA4 iFB7nvXsMBMgdtlBSqst0SOUVM53LNzO++pGzaCGCLLn93ELxqueBmXE4F9KOrMKGz/jaSYjeVxq1 CDoERhwa6MENIqXc1LakwiS3cmoH9OBm8ZqlM41iwBJs2+2in4bPC7H0ZkyYgw36YucFsDqwW5c7T cQ/nLEjQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lk73U-0001St-MD; Fri, 21 May 2021 15:27:16 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lk72l-0001OK-Eh for linux-arm-kernel@desiato.infradead.org; Fri, 21 May 2021 15:26:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=HoTlCQeIefWal0jX4Wy2FmD5HzRScQBvDxI0cAoOM5s=; b=joJipftUKbpHJ3+WSTYb84cj7m 0NgTYKDyzVEjG0soA0NS3dDiWxOCljZbBomgw79FVOrHgc7krTlNvn2Y9/fWLHHpZxXnLP4H6q7o5 lZIFNGrTRC7kG5dhEC62QpEMHrTJvPFhRxYLG6gyUGN1UEwkIF+GuxnvZ3SqpzXYspyc5DksrZ02P TS1d3ioxIhn5I2FDzz1BJ5QxYigiBYhXG8z9dT8ub8O/RANr9AOESAXE4PlM9OAVAXEcH2XiE6lda 3ec612l8BTDswLi5dV1NgK0IY8/YzVeEgR1WOoMHCtMddPMY69JFmiBxbJZfo0KHlNiVpz0aO6SeL r0af9mDw==; Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lk6zQ-00HE5F-13 for linux-arm-kernel@lists.infradead.org; Fri, 21 May 2021 15:23:05 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CEEB211B3; Fri, 21 May 2021 08:22:59 -0700 (PDT) Received: from e107158-lin.cambridge.arm.com (unknown [10.1.195.57]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7F8DD3F73B; Fri, 21 May 2021 08:22:57 -0700 (PDT) Date: Fri, 21 May 2021 16:22:55 +0100 From: Qais Yousef To: Will Deacon 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: <20210521152255.tosr4jwok6cjg6sf@e107158-lin.cambridge.arm.com> References: <20210518094725.7701-1-will@kernel.org> <20210518094725.7701-3-will@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210518094725.7701-3-will@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210521_082304_137318_83065BF2 X-CRM114-Status: GOOD ( 11.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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") Cheers -- Qais Youesf _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel