Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3514319pxj; Mon, 24 May 2021 08:24:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrwAX7oqH9wFuFVs13DWalfI81qVjgvm9Ueu504Nidgsm8WtGGwO0EHsLP/q6/8WiTjjjF X-Received: by 2002:a02:7348:: with SMTP id a8mr25211226jae.116.1621869891186; Mon, 24 May 2021 08:24:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621869891; cv=none; d=google.com; s=arc-20160816; b=YgLVp3CboU7SIYFUT/DWCrvL6SzDLgdCxynEnxiWyy5X+ZGmaV1flYa/jHtJejE7Ci tnGiLOoZH8HWPYqIgA8PUqfNFu/7mkTIAKRWbe3PIHFy3PWu5Z3vfkgncrC7zOreykRO dXqj0QePG6qykUzODsx6iHgImW0cIPYm4CsjJAPPxtZTqQBvb0vbYk8ySCWzDkuFYeyD 9mC3HPO83NWk79HDwmg5jjXfggyZhos5z9ZQbSrE6jbIIPZtIhklgdLEvU0Qk5+lGxo5 3IuX29ED98O/PSpMj/f+u0A0HC3QoStBN6Al8HcrrkyjVSYgIVI5Slv2dLGvzHqCcWEk 5KFg== 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; bh=j8qMzesa1Pv82yDZJXbhiOXKhha/6x7AZIQD22UkXRg=; b=tJuV7rSnq4BxON4TnM4s5Jae+2zhYcABebOlOXM7Ui6hfdAogkEdK+cCqvjFnzMYzd CEzv5syf8ThHtNpQBeerLTuVaYzrhMxISVp2+ht7ndFlZ9yj5JnddwC+vtJ+W74GaQCN tD7UQJrZQtL6iFIDv0xBvxyDKgfIYZgW6TNff+nUnUmE44nA2Msuj5SrE8hI3EdKaXmz FfBEgXZ/Jrv7TmL5LAlyYmmlostNpgfV+4JJIGLqe7yAUDwiDaEcf5V3+vmSqvWdQCYS EJl+MXOyPsRnypHhANZxArImamCd24w/vWzAj38xKIYxcW9A4slKAzTVFgZ4kq53Kyuv UYJA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t2si13818113ilq.112.2021.05.24.08.24.38; Mon, 24 May 2021 08:24:51 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232820AbhEXPXM (ORCPT + 99 others); Mon, 24 May 2021 11:23:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:40002 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235229AbhEXPJm (ORCPT ); Mon, 24 May 2021 11:09:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2ED2261241; Mon, 24 May 2021 15:02:36 +0000 (UTC) Date: Mon, 24 May 2021 16:02:33 +0100 From: Catalin Marinas To: Will Deacon Cc: linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Marc Zyngier , Greg Kroah-Hartman , Peter Zijlstra , Morten Rasmussen , Qais Yousef , 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 17/21] arm64: exec: Adjust affinity for compat tasks with mismatched 32-bit EL0 Message-ID: <20210524150233.GD14645@arm.com> References: <20210518094725.7701-1-will@kernel.org> <20210518094725.7701-18-will@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210518094725.7701-18-will@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 18, 2021 at 10:47:21AM +0100, Will Deacon wrote: > When exec'ing a 32-bit task on a system with mismatched support for > 32-bit EL0, try to ensure that it starts life on a CPU that can actually > run it. > > Similarly, when exec'ing a 64-bit task on such a system, try to restore > the old affinity mask if it was previously restricted. > > Reviewed-by: Quentin Perret > Signed-off-by: Will Deacon Reviewed-by: Catalin Marinas