Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5342035pxv; Wed, 28 Jul 2021 08:33:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKXUheyOj5kmHD6TAm9WwdGq1qVyorGrgB4LgkthwNE1aaiFw9ktOikSnB2Mbu4qgm42wo X-Received: by 2002:a92:7b08:: with SMTP id w8mr300920ilc.190.1627486413220; Wed, 28 Jul 2021 08:33:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627486413; cv=none; d=google.com; s=arc-20160816; b=ceTpFLYR/8f3to4nYDBUc6UjsFZ0fhW2FkAof4UfFkc2/p99m2u5EPOR27yM35ktPW b0JMupcW3tPTqsf2C1n9TLXvWvWP9WDPRb04laWrhJgY2KWKpMAkiDZOPfJKFLh0NE6b B/IzoOl07okZSJv5s7yvQE7UThdZXg4tpTC3NixCxU00BtTpZy1qvjn0zMwP6/HH4+oc 8EIwuuwftjWiXY6dDw51g4hyzKoUqfzAPr2icnFQB/BMjWQtXGG1XWoc3pburtbcv/81 xRyPZWWJvCiK5+cere3Om3Wy3rLB1tP+JLOsSeexD+POCL7y3rT58wP4mjB1NgZiveJB q/cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :dkim-signature; bh=woxBdtlGB6zB1Cvm58/DELTClL+Pi4ueOkLDe2VMF2M=; b=e945ZNJQra1abTxL/msCeWhDNEXIZTtnI8zK+do9Zy7j0Zt+ZXVGa4lOSOd9pp+yTu AApHV0JhVrYcmV27cZr/6iUQoP2LwEV8k27TMsXs1x/L/ExGA/ii85N2uQmm1p75XS3L hTTxJXB0BcJMYmDtQBcsRHojl+P7B0zmih2ZorAJnfuXJJdqT7j/dJGZLeMX18jqBirb YdPaVWWMfr+w7BF6YKq0i+/VP5eBqGOBhu3Ae6BXVNQa3lx8Y6YCD3/afTcZ05EQCbkX jHQHgiVtzZSadS226HzW5OTP4snY5QfJb09pX3y+J5PfiKuYvODIbLGAE+RnaLQIawDR Ra4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=epz07g1E; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l20si196509ion.36.2021.07.28.08.33.21; Wed, 28 Jul 2021 08:33:33 -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=@google.com header.s=20161025 header.b=epz07g1E; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236993AbhG1Pco (ORCPT + 99 others); Wed, 28 Jul 2021 11:32:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235622AbhG1Pcn (ORCPT ); Wed, 28 Jul 2021 11:32:43 -0400 Received: from mail-wm1-x349.google.com (mail-wm1-x349.google.com [IPv6:2a00:1450:4864:20::349]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1317C061757 for ; Wed, 28 Jul 2021 08:32:41 -0700 (PDT) Received: by mail-wm1-x349.google.com with SMTP id j204-20020a1c23d50000b029024e75a15714so1088543wmj.0 for ; Wed, 28 Jul 2021 08:32:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=woxBdtlGB6zB1Cvm58/DELTClL+Pi4ueOkLDe2VMF2M=; b=epz07g1EaavCivdoVuxcYOGCNXaoqnHhC/UGhLJRF+Pky/IvXdl3JWJ/nFWpj1Ynvf KjegyFAa2rqJf5VkvBzIf5tCpmdFnEuEi+3GKS+sfYVz+flelYUipvnrD5flmnVoNSdp HYObj4QGfiMOQmAIe3/I4itJkSqJwj8bKMkVQhbx8UQejc84bFjgnN//b2YSK0Shovvv 3TSYIRoZRvbXhh+oXXVNHCOqLH/Neby0qKwUGuDd+xPKZOK21+GKxBiI4nRE4D8Ba8dS O7SJsrFOZwe9huviD1vNwjgYFKYApbdca566DIHnHOgoMQmwf7QVMBBFhB6CARGzEuDw sotQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=woxBdtlGB6zB1Cvm58/DELTClL+Pi4ueOkLDe2VMF2M=; b=kEXl0v8u7qqqzkuRL2y0v6LB40jQ5zv88EpKH0G6hX2Vxh0Dj5VwOk6CASzUOrSZWB HvUprURyTyQyyv1MOeZJqC8Dvz4paSq+wyPqq6pEbxS4vZutYw6EsAbWKF/D2E4apm7x hnEKYM3H8yb1MZHrcqdQx8O5swg0HH70Y84jmkKNKV3avoXj7M2vGs9OIXezmQxS6vXI ubkkp/VJcfqyvIvJyHLGbQjfFTByFlFVhMf8MLF+x252cfV+4DeguC6tJeNeM4CCQ874 kOn9nM5GhDYg5l8jBeYdq/KKtixDy1sm6lJlszrSwIfRs8LMIo1cUB47fGLuW+Y+e1VI HRRg== X-Gm-Message-State: AOAM53168FptbpIskvRAazRUR0MT56UEQTgZT+eFeql5bB1cWyX04Tid ItkETK6f3f4weE7BgHIvt8VFR2BDxPt+EQ== X-Received: from dbrazdil.c.googlers.com ([fda3:e722:ac3:10:28:9cb1:c0a8:7f9b]) (user=dbrazdil job=sendgmr) by 2002:a1c:7c04:: with SMTP id x4mr331814wmc.48.1627486360245; Wed, 28 Jul 2021 08:32:40 -0700 (PDT) Date: Wed, 28 Jul 2021 15:32:30 +0000 Message-Id: <20210728153232.1018911-1-dbrazdil@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.32.0.432.gabb21c7263-goog Subject: [PATCH 0/2] Fix off-by-one in range_is_memory From: David Brazdil To: kvmarm@lists.cs.columbia.edu Cc: Marc Zyngier , James Morse , Alexandru Elisei , Suzuki K Poulose , Catalin Marinas , Will Deacon , Quentin Perret , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, David Brazdil Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, here is an off-by-one bug fix and a very minor improvement for the range_is_memory function in hyp. David Brazdil (2): KVM: arm64: Fix off-by-one in range_is_memory KVM: arm64: Minor optimization of range_is_memory arch/arm64/kvm/hyp/nvhe/mem_protect.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) -- 2.32.0.432.gabb21c7263-goog