Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp253950pxb; Wed, 3 Feb 2021 04:56:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmm0vaiXJP4pQjYl9z7ASgxBQCuuJvSspsOr5dZaud+V8X0tnq0FBr8Q/9KLIBlDXmcRl8 X-Received: by 2002:a50:e40d:: with SMTP id d13mr2710771edm.286.1612356968058; Wed, 03 Feb 2021 04:56:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612356968; cv=none; d=google.com; s=arc-20160816; b=wbzFbe5tR5p9vyqInpYxi/ljrySkffvcHbN6rqgRxrdpz1v5xoMz/2URQueISuFYE8 cOnsZWKC1jh9nbYnIJoit7gTMbRX/xwBvpaROdgGu6NWaGQYtAOESKfDcXNTSiInrXs9 uItEB50r6Oqs174X+FXneKEPyEUVnIAmNjOajnYLlZm7B0rUkti0yrtBqYwLzl6GhVQB 8dM3tOOYfEEVzjXHC/Z+l807WAeCuRDaVRQkfqoMtKwrF6g8JXLyArxPwEMyotdl0uUA H+RMmsf313cbBxQxUO9OJMDpKHidkBlgTf1OqDisIsquptDwxq7llKbTE6u1N12RMuCa hTow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=vN8VV3SiW017Flw3cWMLsWCWi5Gjgx4nLvUvnYpX95s=; b=yl3zbEx8TwmEdblcKradpM0yeBUwe+7i/tflg9VU6ryfcIfY7n0sh/QlDczvXuc0Fw 9yVSV4WQGmwvQLNEIgGIkdltKHog6g7NNNpBlnMNBOsf/LlThvs1DEUpd7SAKvDSRuiB qb/M9Sfr02O3q1qLURxhXEJbjZi/4WIeuNwWlG7z2tPT6VsIFQVnyx0Wq/xnBxpag2ka 38451LlwD8ynf3zBGWZOEuvAahW+N6GFnIM0t8l/4IyrMgyK7zblKDoiOklyvbxJ3+Y0 fsYY6/oQevlH1aX2FqmbRE4LdY8nyMO+feALyPqqJdbLFTwnNCu+5uMPR1bRdlFkPhDC D/GA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f11si1310555ejw.77.2021.02.03.04.55.43; Wed, 03 Feb 2021 04:56:08 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231587AbhBCMwi (ORCPT + 99 others); Wed, 3 Feb 2021 07:52:38 -0500 Received: from verein.lst.de ([213.95.11.211]:51025 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229753AbhBCMuH (ORCPT ); Wed, 3 Feb 2021 07:50:07 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 3E31267357; Wed, 3 Feb 2021 13:49:23 +0100 (CET) Date: Wed, 3 Feb 2021 13:49:22 +0100 From: Christoph Hellwig To: Martin Radev Cc: Christoph Hellwig , konrad.wilk@oracle.com, m.szyprowski@samsung.com, robin.murphy@arm.com, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, joro@8bytes.org, kirill.shutemov@linux.intel.com, thomas.lendacky@amd.com, robert.buhren@sect.tu-berlin.de, file@sect.tu-berlin.de, mathias.morbitzer@aisec.fraunhofer.de, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org Subject: Re: [PATCH] swiotlb: Validate bounce size in the sync/unmap path Message-ID: <20210203124922.GB16923@lst.de> References: <20210113113017.GA28106@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 18, 2021 at 12:44:58PM +0100, Martin Radev wrote: > Your comment makes sense but then that would require the cooperation > of these vendors and the cloud providers to agree on something meaningful. > I am also not sure whether the end result would be better than hardening > this interface to catch corruption. There is already some validation in > unmap path anyway. So what? If you guys want to provide a new capability you'll have to do work. And designing a new protocol based around the fact that the hardware/hypervisor is not trusted and a copy is always required makes a lot of more sense than throwing in band aids all over the place.