Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp23849imw; Mon, 4 Jul 2022 04:40:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tAWo0NejnNSbn8zLeuxs4p6AIPBRdH7Ze9/2ZEYlhr/IU6BvILIvwTxcY+HjijbHMH18wq X-Received: by 2002:a17:902:ecd0:b0:16a:2c0f:3a1a with SMTP id a16-20020a170902ecd000b0016a2c0f3a1amr35540870plh.108.1656934807778; Mon, 04 Jul 2022 04:40:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656934807; cv=none; d=google.com; s=arc-20160816; b=MFPUJZC19p6Ree9paz4ncSoz7bQtAY3l/7apELlE9wNDOmuvVXvlZOoW7QlXgbNMpX 2SleOb79CyyEaA9MG2ThEGJh9WGppEiQMyeJ4NaD5v58ew6EC0TRTTjuAZKg8zwYsOA8 09VszP0rDwf0/dB5NW7Cd79RO+8/HPzD2t5Q1SXS5burBmjzq7Kz4agelGe/bMCoHcwx k8JEj26NTVRiejqX3Touc+ZfD+AD7JWqp79nuXYXyZ41psBNMSo5pDcmfeBWJMSmni4S LLk4SPXb3gMJckXLd5s+gKmzI/UEX43CfO7wq6BeUYkiDXImXIX7hxccyFNRRBI/1GuJ 2tEA== 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=MLRBOibyZdtn0QjlOCx9zU/lJ4EqeH4u+GDeJNlwZ6U=; b=NydzEUQt7SUM5+Ki38N8+d0UVVeqX23kclSjZ+SbTMSHn8T8BZdib3611uzOO0Mli5 2qfRopKLqMjZjPcvJO2WVETgskbmIm5afJ2oGcPvoxRCL0FhnXNTgPJUs7M6F6n3WtQD adwqF42z8gRDsQC/k/8Zi2Df30kOCynLM4Xa53QBihb13Yt9vAnT8c4gFLasUitkzoMG C168Flg9RHU/D4QAhPAeQRVQJsAVW830gEWPmWIRpYxW+1qcyu35se0NNrTlMVct7WVw 5p1Z+7SWK3Q05I5D3ArY980Dtg3VOU6DTkgMAq7cLNrSerum7VrphZd7cKh27VzDhCJD 9T/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f2-20020a17090a638200b001ec7c15ed7esi12733778pjj.106.2022.07.04.04.39.56; Mon, 04 Jul 2022 04:40:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234349AbiGDLge (ORCPT + 99 others); Mon, 4 Jul 2022 07:36:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234271AbiGDLgU (ORCPT ); Mon, 4 Jul 2022 07:36:20 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B79F1180A; Mon, 4 Jul 2022 04:36:09 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Lc3fH6D7Lz4xZq; Mon, 4 Jul 2022 21:36:07 +1000 (AEST) From: Michael Ellerman To: Christophe Leroy , dja@axtens.net, Michael Ellerman , Paul Mackerras , Benjamin Herrenschmidt Cc: stable@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: <8d6c5859a45935d6e1a336da4dc20be421e8cea7.1656427701.git.christophe.leroy@csgroup.eu> References: <8d6c5859a45935d6e1a336da4dc20be421e8cea7.1656427701.git.christophe.leroy@csgroup.eu> Subject: Re: [PATCH v1 1/6] powerpc/64e: Fix early TLB miss with KUAP Message-Id: <165693442393.9954.10279523167895642919.b4-ty@ellerman.id.au> Date: Mon, 04 Jul 2022 21:33:43 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 28 Jun 2022 16:48:54 +0200, Christophe Leroy wrote: > With KUAP, the TLB miss handler bails out when an access to user > memory is performed with a nul TID. > > But the normal TLB miss routine which is only used early during boot > does the check regardless for all memory areas, not only user memory. > > By chance there is no early IO or vmalloc access, but when KASAN > come we will start having early TLB misses. > > [...] Applied to powerpc/next. [1/6] powerpc/64e: Fix early TLB miss with KUAP https://git.kernel.org/powerpc/c/09317643117ade87c03158341e87466413fa8f1a [2/6] powerpc/64e: Remove MMU_FTR_USE_TLBRSRV and MMU_FTR_USE_PAIRED_MAS https://git.kernel.org/powerpc/c/3adfb457b84bd6de4e78a99814038fbd7205f253 [3/6] powerpc/64e: Remove unused REGION related macros https://git.kernel.org/powerpc/c/b646c1f7f43c13510d519e3044c87aa32352fc1f [4/6] powerpc/64e: Move virtual memory closer to linear memory https://git.kernel.org/powerpc/c/128c1ea2f838d3031a1c475607860e4271a8e9dc [5/6] powerpc/64e: Reorganise virtual memory https://git.kernel.org/powerpc/c/059c189389ebe9c4909d849d1a5f65c53115ca19 [6/6] powerpc/64e: KASAN Full support for BOOK3E/64 https://git.kernel.org/powerpc/c/c7b9ed7c34a9f5dbf8222d63e3e313cef9f3150b cheers