Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1119720pxj; Thu, 17 Jun 2021 23:20:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoAW6xOvx82Ds1u0P353KGkZ8fThR53HxVABdcuuwY8uF0eP/EfI+Gy8umGlyN13+G1it8 X-Received: by 2002:aa7:cf0f:: with SMTP id a15mr2754029edy.313.1623997242698; Thu, 17 Jun 2021 23:20:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623997242; cv=none; d=google.com; s=arc-20160816; b=cP6goBQnZZhFB3NjJmfPlzM4d6Nq0vHz4zBnJ4w4O1sqUAzlyUWZ4gh62ylzxRLA5B Nqi8lWDsYf5GMpHJ+FxpFkw14obaHlqd3VUCJeaYWf026KHgb/iWZg6xgorrHPjfTFlg NF8lvFMn9Jcs0fwy0m8ylyzSnxQuzw/r+cV8Ejphe3EwEjX7EuLkpJeS9zBt9M6KhUo6 QHWTVUy9pMpIr81skOtENx3cgVTbJrmhVT4G0i0kcbW6MOJVY0DvpOeKADLY8TRnNZ3B i6bjbJgnwrod3UnsFHWegMHEjgO1cwi3G4XU0/Pb8B6PWOIU79u0qTd61FzYCDKEkuIV tTSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from; bh=eW/80KOr1bIDheFQM6x+R9IOKYQ0JLhy86VobZhI67U=; b=XUxBbvchr1QyPkVh2LYflNwiz3K2+A/zxai6DNAvFKU0sAUBjQ/gigytkoE/ecbdzW 0iGQrl37Nv2YjQec3ahpJqWv7w8A0iuAwkRM/4vwYrsfpUSpSwfHy1DBKC3cA0msiovn F3QRC2ZMRznfbPOBiGoGw/vrjY6RvE2CSwZYrEKkh5S2tTKGoBJcaESarHl4fWyxtKjk c16J/PcquP+LM1vXfzi9nvfkRZdoqB/WV/nQcxdMt4D2OxyFN+UUiQPeKWjpQPLlQ0F5 Jf3xVBccDXg9qwoM7qtQHYFAooH99DTX/aWdJrFQgESxB1EAsjIOrgE3jTBpjG34ZfpX iJEw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f17si8156525eds.78.2021.06.17.23.20.20; Thu, 17 Jun 2021 23:20:42 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231617AbhFREZL (ORCPT + 99 others); Fri, 18 Jun 2021 00:25:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231289AbhFREY6 (ORCPT ); Fri, 18 Jun 2021 00:24:58 -0400 Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D77BCC061574 for ; Thu, 17 Jun 2021 21:22:49 -0700 (PDT) Received: by ozlabs.org (Postfix, from userid 1034) id 4G5m472Xzhz9sXL; Fri, 18 Jun 2021 14:22:47 +1000 (AEST) From: Michael Ellerman To: Paul Mackerras , Michael Ellerman , Benjamin Herrenschmidt , Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: <169310e08152aa1d96c979770291d165ec6896ae.1622616032.git.christophe.leroy@csgroup.eu> References: <169310e08152aa1d96c979770291d165ec6896ae.1622616032.git.christophe.leroy@csgroup.eu> Subject: Re: [PATCH] powerpc/44x: Implement Kernel Userspace Exec Protection (KUEP) Message-Id: <162398829401.1363949.16143408531538336640.b4-ty@ellerman.id.au> Date: Fri, 18 Jun 2021 13:51:34 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2 Jun 2021 06:42:10 +0000 (UTC), Christophe Leroy wrote: > Powerpc 44x has two bits for exec protection in TLBs: one > for user (UX) and one for superviser (SX). > > Clear SX on user pages in TLB miss handlers to provide KUEP. Applied to powerpc/next. [1/1] powerpc/44x: Implement Kernel Userspace Exec Protection (KUEP) https://git.kernel.org/powerpc/c/10248dcba1205042a3a0ea65eb441030702d97cd cheers