Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp1549359lkv; Wed, 19 May 2021 12:31:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCmWUGNgMRUvitCNXgUyF8FOtZRvRHJu8yysrfK6bdqQVk15uZdLo5ZP+D3rG6nibtI8WN X-Received: by 2002:a17:906:aac8:: with SMTP id kt8mr734968ejb.402.1621452711707; Wed, 19 May 2021 12:31:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621452711; cv=none; d=google.com; s=arc-20160816; b=S67AEW3W74bIrQDkTc3Q31pH0X5XQMVpob4PbtVLs8owWnFp3yFQmD5e5hfWcmLhMW rYo8fiOeEy5puyy1kvNsCJROQN+X4aKZ6Mqde3SKu0pV+wxn5YVhQZZSk4uG75pMInPi 0u/aGJl2CYY+4TD2uLQmRUqZ+p6jKvfNt4hDB+gejEDyCRsSWn4s+qn4TpPLhXUT+Rkg uhGm1tQymiYXgUEKW/ctYUCI5BN9ZpAQ62DlJ0YyPpZ23rBmSA/X+H5NW49DFXjifMbx P431cvOLXgYScYWjuCOxXuMqitCCn5kiMYMVWNIzwQZM1anJTTXkILWDCtsXqhzEDYMg 6flA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Bm62SnXLYD1HxNIkHVvF1zYcQclrdit6UBm3SgEohGQ=; b=gN3VvjbjE4UHYWDDVr5iN1F+eHtI2G7bXBPfpwsDbAkG6oDKMITaecKQPnwIqB0aXT JG05Ahd9X9xF57YG9KYfxfJ5boshfMAO+FkXln+hsV342CcnrPDGoFgXQkkWJv4czHhm N4HIIN/peqtT0Yo382QJKtrisq9qV28qW7CgpGZLzc4OYCe9ZNV5BnX8TQ+PGqMXUpQL VspY3FbHiYB4/SCJaeqgQCh9o64J9FZaf0nW4GrnVShXay+YQkDvxF4wVCScpR8fmpCs EmNfmH6OY2yfxtW5+LsUsqzTQBL7WFi7u8fps77b5NVoG8DBtI5kF7+rutrN3d/iqff/ twbA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u7si78210eda.389.2021.05.19.12.31.26; Wed, 19 May 2021 12:31:51 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346354AbhESMYK (ORCPT + 99 others); Wed, 19 May 2021 08:24:10 -0400 Received: from 8bytes.org ([81.169.241.247]:39896 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241424AbhESMYK (ORCPT ); Wed, 19 May 2021 08:24:10 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id 562EB2FA; Wed, 19 May 2021 14:22:49 +0200 (CEST) Date: Wed, 19 May 2021 14:22:48 +0200 From: Joerg Roedel To: Sean Christopherson Cc: x86@kernel.org, Hyunwook Baek , Joerg Roedel , stable@vger.kernel.org, hpa@zytor.com, Andy Lutomirski , Dave Hansen , Peter Zijlstra , Jiri Slaby , Dan Williams , Tom Lendacky , Juergen Gross , Kees Cook , David Rientjes , Cfir Cohen , Erdem Aktas , Masami Hiramatsu , Mike Stunes , Martin Radev , Arvind Sankar , linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCH 4/6] Revert "x86/sev-es: Handle string port IO to kernel memory properly" Message-ID: References: <20210512075445.18935-1-joro@8bytes.org> <20210512075445.18935-5-joro@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 12, 2021 at 05:38:29PM +0000, Sean Christopherson wrote: > Alternatively, and probably even better, fold this revert into the switch to > the unchecked version (sounds like those will use kernel-specific flavors?). I folded this revert into the previous commit. But I kept the __get_user()/__put_user() calls and just added a comment explaining why they are used and why it is safe to use them. After all, even the get_kernel*() functions call __get_user_size() under the hood. Regards, Joerg