Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3129448pxf; Mon, 15 Mar 2021 02:04:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1xJv+sSUKTK38s+GbuaIVe/RTiPgzwzZeusLz5wwdYK2Gf1PN3JbJqeL2DMDIa1hJDPqo X-Received: by 2002:a17:906:d94:: with SMTP id m20mr21901955eji.511.1615799052375; Mon, 15 Mar 2021 02:04:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615799052; cv=none; d=google.com; s=arc-20160816; b=NoDVFMzNqAkDCwrOFJEqvpju5DqnksJMYo5Gahl/yDqFfmATDqiAdgdVR8EPfTiPr1 6mJFXLqUW5W7qLTigEr9UOEHAkUfrGoOOx2ntbavxxCTvah1FkA7MraikZ+5SoBiKgVn 0G7gc5+3VanIYVaJcsmvSSjzPEvYNCuEeQnzAUsDiFcH1vtLmyUC7Q+NN54oNYlwUK17 xIkQ+hvesrFEiA/NiPa7213aPTuUalHB41Ip0p0Z8pdrhkTnSa5ooc/iwMY1RAJ/dZMn VGDPmG8pHILVIt2EovCty+5caVoXZAWIC0UBBTf4RdiaKHGTbWYPf/m6JO8y9Rct76qV k3Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=CEcbGr+YCKnFXAfof14yzdOmyvXMYVWwN86bTpugi84=; b=S/8GQv1AsQUrfKcK8RJ/nn+KeB+sO1imemeYSkVNtTj5Paed3B0udrdA/IvdcjavNW ofvOlPQczmUectbqShYls2j95Fs0yNh5vXps57jnoHZHJAsBSTcOm5rvn5B4gFeGXriA lcLwcVgv/tl4wbh4y5cOb3qAgfeIR5HkPYq7RGR6HgfqBumSOsy9GQmCSfeOzz7IuaAe ef8c+lE1oti7KbFiN4u1iRlWEVGkyJrRYROD+OusBxbfm9xajuh4GqSYlxehO52LvxQc /Awoe5L9iRaQY7J9cT5OgKTj/DwRhTAMNFonucnyPeDORzO/HSfqHZNBvsm05+husgP3 lNVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@thalesgroup.com header.s=xrt20181201 header.b=ez0wUFY3; 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=pass (p=NONE sp=NONE dis=NONE) header.from=thalesgroup.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x12si9908995edd.423.2021.03.15.02.03.49; Mon, 15 Mar 2021 02:04:12 -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; dkim=pass header.i=@thalesgroup.com header.s=xrt20181201 header.b=ez0wUFY3; 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=pass (p=NONE sp=NONE dis=NONE) header.from=thalesgroup.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229614AbhCOJCC (ORCPT + 99 others); Mon, 15 Mar 2021 05:02:02 -0400 Received: from thsbbfxrt01p.thalesgroup.com ([192.54.144.131]:55614 "EHLO thsbbfxrt01p.thalesgroup.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229558AbhCOJB6 (ORCPT ); Mon, 15 Mar 2021 05:01:58 -0400 X-Greylist: delayed 367 seconds by postgrey-1.27 at vger.kernel.org; Mon, 15 Mar 2021 05:01:58 EDT Received: from thsbbfxrt01p.thalesgroup.com (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 4DzVcx25Zhz466m; Mon, 15 Mar 2021 09:55:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thalesgroup.com; s=xrt20181201; t=1615798545; bh=CEcbGr+YCKnFXAfof14yzdOmyvXMYVWwN86bTpugi84=; h=From:To:Subject:Date:Message-ID:References:In-Reply-To: Content-Transfer-Encoding:MIME-Version:From; b=ez0wUFY3ZEWMwre815DtHVyvhPu/7mUJhykxep7ES3by+KWUklOx+j59h1MZDLgQM Dl2LBArZO7SwK7Xynhdq6X2VRr2in+e6HFmhd9AMPo9oX0gdKUT65mYNuJa7W6i8XV Yjw2GuMdZbpJl7wYi7YuwJUmt1vA+vs/+AbNtL3eHgBjrb+f3MAlbiWjElSmqNn3kd apFWRIfUCBpMiszczcO5zBAVZVcu1eE2UthqXHB3JKts5MwS3Pw3tesRKbnRMPWWjj 7CAod++6LrG5fWQKt5Zd3whbf7c5TCAGcOgGttHsyG6nDTEXzBbrZrRg+a6wx5cFh6 36k5v+uvYuWaQ== From: PLATTNER Christoph To: Michael Ellerman , Michael Ellerman , Paul Mackerras , "Benjamin Herrenschmidt" , Christophe Leroy CC: "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "PLATTNER Christoph" Subject: RE: [PATCH] powerpc/603: Fix protection of user pages mapped with PROT_NONE Thread-Topic: [PATCH] powerpc/603: Fix protection of user pages mapped with PROT_NONE Thread-Index: AQHW+GOl2yWYuEbTpkiT/C3KqD+6EaqDcGkAgAGQiOA= Date: Mon, 15 Mar 2021 08:55:39 +0000 Message-ID: <921d9e7e-6680-4f83-8652-a88ebb64650f@THSDC1IRIMBX11P.iris.infra.thales> References: <4a0c6e3bb8f0c162457bf54d9bc6fd8d7b55129f.1612160907.git.christophe.leroy@csgroup.eu> <161571587047.138988.3119931595106306211.b4-ty@ellerman.id.au> In-Reply-To: <161571587047.138988.3119931595106306211.b4-ty@ellerman.id.au> Accept-Language: en-US, fr-FR Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-pmwin-version: 4.0.3, Antivirus-Engine: 3.80.1, Antivirus-Data: 5.82 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thank you for maintenance and for following this request. Regards Christoph -----Original Message----- From: Michael Ellerman =20 Sent: Sonntag, 14. M=E4rz 2021 11:01 To: Michael Ellerman ; Paul Mackerras ; Benjamin Herrenschmidt ; PLATTNER Christoph ; Christophe Leroy Cc: linux-kernel@vger.kernel.org; linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] powerpc/603: Fix protection of user pages mapped with = PROT_NONE 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=20 > which provide the following protection depending on the access keys=20 > 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. >=20 > [...] Applied to powerpc/fixes. [1/1] powerpc/603: Fix protection of user pages mapped with PROT_NONE https://git.kernel.org/powerpc/c/c119565a15a628efdfa51352f9f6c5186e50= 6a1c cheers