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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86904C433EF for ; Thu, 21 Jul 2022 16:19:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233827AbiGUQT6 (ORCPT ); Thu, 21 Jul 2022 12:19:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234049AbiGUQTh (ORCPT ); Thu, 21 Jul 2022 12:19:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E27163C8 for ; Thu, 21 Jul 2022 09:19:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CA0F461E02 for ; Thu, 21 Jul 2022 16:19:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DE8FC341C0; Thu, 21 Jul 2022 16:19:05 +0000 (UTC) Date: Thu, 21 Jul 2022 17:19:01 +0100 From: Catalin Marinas To: Peter Collingbourne , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, Marc Zyngier , stable@vger.kernel.org Subject: Re: [PATCH] arm64: set UXN on swapper page tables Message-ID: References: <20220719234909.1398992-1-pcc@google.com> <165834388144.420659.7440428405850430601.b4-ty@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <165834388144.420659.7440428405850430601.b4-ty@arm.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Wed, Jul 20, 2022 at 08:04:48PM +0100, Catalin Marinas wrote: > On Tue, 19 Jul 2022 16:49:09 -0700, Peter Collingbourne wrote: > > On a system that implements FEAT_EPAN, read/write access to the idmap > > is denied because UXN is not set on the swapper PTEs. As a result, > > idmap_kpti_install_ng_mappings panics the kernel when accessing > > __idmap_kpti_flag. Fix it by setting UXN on these PTEs. > > Applied to arm64 (for-next/fixes), thanks! > > [1/1] arm64: set UXN on swapper page tables > https://git.kernel.org/arm64/c/f7b4c3b82e7d I'm dropping this patch from for-next/fixes as it breaks linux-next (interacts badly with stuff already queued). We'll send it to -stable separately as that's no longer needed in mainline after 5.19. -- Catalin 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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 40FD7C433EF for ; Thu, 21 Jul 2022 16:20:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=BfQNeIva2oWFww4xu/Q4QIME3uo9nULbyhR8A/nM4JU=; b=G0L+z5VwTsJhZX gAoxecX0lEwy6Fz/COqYyQF7TDWgYjDY2CrkCx5nQFl+vCt14IoJHDZEwlVx9nVZUksMKBxHm1ojL xF78PjFnUOH3IaG37p+aWJCFPPL+72C6L/jY+C6enQXuqXR7rGvThIAvE8q45z6xlxFgCwESy2YPv ToiCZDROv+vLQdi6WnLTkcwyxFWdBj+bSAkQTkFvoCK/NvzWy8UyFq3n5jjj6YMXK4VtLg4SBGXJv 32KUMUKYoDz+c1JYgFQOnfMwyFhQhK7Rejky9fXv0KnqEuI2HbglMClqhO/tBL+O49bgkS5llcTS0 hGofG81xNvRcw8KdHldQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEYtW-009pcv-Qs; Thu, 21 Jul 2022 16:19:23 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEYtJ-009pWq-C6 for linux-arm-kernel@lists.infradead.org; Thu, 21 Jul 2022 16:19:13 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CA09D61D92; Thu, 21 Jul 2022 16:19:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DE8FC341C0; Thu, 21 Jul 2022 16:19:05 +0000 (UTC) Date: Thu, 21 Jul 2022 17:19:01 +0100 From: Catalin Marinas To: Peter Collingbourne , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, Marc Zyngier , stable@vger.kernel.org Subject: Re: [PATCH] arm64: set UXN on swapper page tables Message-ID: References: <20220719234909.1398992-1-pcc@google.com> <165834388144.420659.7440428405850430601.b4-ty@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <165834388144.420659.7440428405850430601.b4-ty@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220721_091909_500937_B5F81F7C X-CRM114-Status: GOOD ( 14.56 ) 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 Wed, Jul 20, 2022 at 08:04:48PM +0100, Catalin Marinas wrote: > On Tue, 19 Jul 2022 16:49:09 -0700, Peter Collingbourne wrote: > > On a system that implements FEAT_EPAN, read/write access to the idmap > > is denied because UXN is not set on the swapper PTEs. As a result, > > idmap_kpti_install_ng_mappings panics the kernel when accessing > > __idmap_kpti_flag. Fix it by setting UXN on these PTEs. > > Applied to arm64 (for-next/fixes), thanks! > > [1/1] arm64: set UXN on swapper page tables > https://git.kernel.org/arm64/c/f7b4c3b82e7d I'm dropping this patch from for-next/fixes as it breaks linux-next (interacts badly with stuff already queued). We'll send it to -stable separately as that's no longer needed in mainline after 5.19. -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel