Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1124844rwd; Tue, 13 Jun 2023 05:21:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7u3lG2Ii6IG8XF1vzNgM3rh1xc/gF/d6iNQicEAAbJzuysw3JBFWinYdwKPJhRlc9v45kK X-Received: by 2002:a17:906:fd88:b0:966:4d75:4a44 with SMTP id xa8-20020a170906fd8800b009664d754a44mr13472068ejb.24.1686658868307; Tue, 13 Jun 2023 05:21:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686658868; cv=none; d=google.com; s=arc-20160816; b=nv9q6ey/CWm8NCo8ht5G+MqOdzablZfgIKpISvRwmZWkTlHQv6DCzdVKHbTlqWtftW tlWYNguxzfQ/7Nho0eIgiVxTNYntAyG1WiBoMvsvC3yaiGlWZ3gIjYjB3d01hjByaLCb rEF6TJUhkl2yBxuboNXWy+FNI41WuoxMc8TsTzsKGEDLogKuIZ8EMzzY9BwiInd5H7Xr pAUyu9egt2fWcgiB1Y5AXgrTwDn0tN58T8Xyu5QRIVlLhBZhVnK82TGbJeiRV/c3nFgc UE8bpbaSk/aAKSg78hMkf4/agEhdXYd70bWDRJ1kIrw4sPnt6YrkGXXOcXcjDh8Rqmf7 Gklg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mBZSAkJAmjdtGZukyV0Gel5hklORumrE8fQLoKUpCwU=; b=MJGCjlmgGzX2C0LVKIbY7Sp6maSNVHJiBNbTKFXvznF0nbvVzyggXcWIu4p/dTy3eF IC6RZPLQOuszgRTbsZdPV1TVQZ5rlxjaawKZuskiMlvT/BjpJVI6StwdmqVHSloLDhef MOS+9IPFtlHJx3PYkRQmxZjwzrrmxFsbHwnPgt1o1yiHwHOshp2p1HGZ5oNARNE+UddL pyc0dTf+ZIMxQ+e4VyssFUj0F9eReuVodOsTZXyqRx41u/Yxzbqa8okJLEWJfWEuM2Un IsdBXFdrDavdjfWmD/8AZgh3AoS/BlZMpLFzLWdEM3EJaDMCMzITtzj6La7fxoBC7ak5 Kynw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=sFCltlm5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt26-20020a170906f21a00b0097073aafa92si3620561ejb.908.2023.06.13.05.20.43; Tue, 13 Jun 2023 05:21:08 -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; dkim=pass header.i=@linux.dev header.s=key1 header.b=sFCltlm5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242084AbjFMMQ2 (ORCPT + 99 others); Tue, 13 Jun 2023 08:16:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242066AbjFMMQ0 (ORCPT ); Tue, 13 Jun 2023 08:16:26 -0400 Received: from out-39.mta1.migadu.com (out-39.mta1.migadu.com [IPv6:2001:41d0:203:375::27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4373410C6 for ; Tue, 13 Jun 2023 05:16:25 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1686658583; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mBZSAkJAmjdtGZukyV0Gel5hklORumrE8fQLoKUpCwU=; b=sFCltlm5AhnbFv4QFXD/QC5q7yMPfKrNOErbqYwG6Xy7f+NkHWrjtmVA7STa65u6PGvw/s xJMDtoRZhHsT9hIvRbJlaNw/SHRa0ElwjULMihHNChia3ft70gTF0gR55TWVLmm8yEVS23 h2ClNu/t8BNLU53ZLQcNBdNTYMvkhB8= From: Oliver Upton To: Mostafa Saleh , kvmarm@lists.linux.dev, maz@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Oliver Upton , suzuki.poulose@arm.com, kaleshsingh@google.com, tabba@google.com, yuzenghui@huawei.com, catalin.marinas@arm.com, james.morse@arm.com, will@kernel.org Subject: Re: [PATCH] KVM: arm64: Use different pointer authentication keys for pKVM Date: Tue, 13 Jun 2023 12:16:02 +0000 Message-ID: <168665854178.2681974.13725664134174024912.b4-ty@linux.dev> In-Reply-To: <20230516141531.791492-1-smostafa@google.com> References: <20230516141531.791492-1-smostafa@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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, 16 May 2023 14:15:31 +0000, Mostafa Saleh wrote: > When the kernel is compiled with CONFIG_ARM64_PTR_AUTH_KERNEL, it > uses Armv8.3-Pauth for return address protection for the kernel code > including nvhe code in EL2. > > Same keys are used in both kernel(EL1) and nvhe code(EL2), this is > fine for nvhe but not when running in protected mode(pKVM) as the host > can't be trusted. > > [...] Applied to kvmarm/next, thanks! [1/1] KVM: arm64: Use different pointer authentication keys for pKVM https://git.kernel.org/kvmarm/kvmarm/c/fb737685beee -- Best, Oliver