Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2540275pxf; Sun, 14 Mar 2021 03:14:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyr8f4ANcsBBbFIFw9rb/MpDQ/R6mdDAyPjUBJUr5XSE3uA14nsotqu8fbmcVQooGSXsyt4 X-Received: by 2002:aa7:c857:: with SMTP id g23mr24498616edt.86.1615716879295; Sun, 14 Mar 2021 03:14:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615716879; cv=none; d=google.com; s=arc-20160816; b=JbY+fCjN0de157Ot4bVxMDRsC4bTbTVaHnnutoimchnqR4X39tthjVpqb1ouQXHX5c ko3QBAqOCUBMFSRHQmpd4js8L4+ZJm/62+HEGbWR11EEloLORBGwZ9YEGOiGR82vRqpw mCQh8Q8co0KdFPZ3sZ+aSO35Dorn8BdBcF2A8Xj380isj7AurO35fAzi0+10taca37cn bS7NPy3oUYTcNiSxT0Z0r22pXGo1fmZZUxm4j1AKTSdaFMgZ3DN4kskXjT9mO7M74Ph3 kA2xaGSuG/nP9VNwdCtNb4ZruX83AbNqqFSxWxoMUpcz5Kr4ZMuNk78l6ebDyyAtzzSQ jC1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:subject:references:in-reply-to :cc:to:from; bh=181o6huJjxrWUy34unn5phzidu8rppowF/Cr8jxmOYw=; b=Akk2myPU2q8mbzuqXptydLVulzDgIN4eWnGXdYp1bec01jOZRXyQzPJ5qgUyOvIvRs 488ytdGvLAbhrB2euGLmsXzFIlwlG2Ao+P6rYI1PYYG7qxaaBQeI1wFq6aDLCPD1KyfM +QNgpWKOiSDMCDierCjTiVHsQtbnXKj9PZFmNcp7HG7dwd19enI6YSQ7H5NTdKXsiA4m ePxDRGHRAIRzdfT7OOyqcGGI0Ce61QjvzacxCPwU3+572z6w1srHmwKNHr7Czq0pNlSo YZmEnHAWQ2k8ztj9dLCeKXNS/RSBld+DQksIO40uKL+omLAcPBuc3ow2F+uGnrIbraZM 9WRw== 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 sb16si8576207ejb.715.2021.03.14.03.14.16; Sun, 14 Mar 2021 03:14:39 -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 S235126AbhCNKCF (ORCPT + 99 others); Sun, 14 Mar 2021 06:02:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbhCNKBW (ORCPT ); Sun, 14 Mar 2021 06:01:22 -0400 Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E951EC061574 for ; Sun, 14 Mar 2021 03:01:21 -0700 (PDT) Received: by ozlabs.org (Postfix, from userid 1034) id 4Dyw721Qwgz9sW5; Sun, 14 Mar 2021 21:01:18 +1100 (AEDT) From: Michael Ellerman To: Michael Ellerman , Paul Mackerras , Benjamin Herrenschmidt , Christoph Plattner , Christophe Leroy Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org In-Reply-To: <4a0c6e3bb8f0c162457bf54d9bc6fd8d7b55129f.1612160907.git.christophe.leroy@csgroup.eu> References: <4a0c6e3bb8f0c162457bf54d9bc6fd8d7b55129f.1612160907.git.christophe.leroy@csgroup.eu> Subject: Re: [PATCH] powerpc/603: Fix protection of user pages mapped with PROT_NONE Message-Id: <161571587047.138988.3119931595106306211.b4-ty@ellerman.id.au> Date: Sun, 14 Mar 2021 21:01:18 +1100 (AEDT) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 1 Feb 2021 06:29:50 +0000 (UTC), Christophe Leroy wrote: > On book3s/32, page protection is defined by the PP bits in the PTE > which provide the following protection depending on the access > keys defined in the matching segment register: > - PP 00 means RW with key 0 and N/A with key 1. > - PP 01 means RW with key 0 and RO with key 1. > - PP 10 means RW with both key 0 and key 1. > - PP 11 means RO with both key 0 and key 1. > > [...] Applied to powerpc/fixes. [1/1] powerpc/603: Fix protection of user pages mapped with PROT_NONE https://git.kernel.org/powerpc/c/c119565a15a628efdfa51352f9f6c5186e506a1c cheers