Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp86411ybt; Thu, 18 Jun 2020 19:05:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyFLKsJpgsYSxBtaa0mocP3751bVsuwq8AYTdDaJl/y8/efMW9QfpD5Eg75dBGwAF0A4hW X-Received: by 2002:a17:906:22cc:: with SMTP id q12mr1275459eja.485.1592532357180; Thu, 18 Jun 2020 19:05:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592532357; cv=none; d=google.com; s=arc-20160816; b=ZJkWOzyMOyO/jiLVje1NYD/d4XI7Fi9zEhQ0TT3NT1rNakr1ZVWZ1/r/Eh8WNrWSfl OZ4YOL5vA7BcvMkhuV3IX4+ZvndLy+7MTYBauJ3gR/1qfCbG6tHhM4CqOAYnY+esJ7Ff YGKpqtaYyjHTNeKIgvXlJZVwZ/bJOYWKI9fiU46r2L8cO1Fe9868TB6KfbefDgJ0mkR/ A3hknG7g+jndi/yjfjfHnMZRNTynILmDfD+bldux8Ulsk8Ofd/xt5UECiHeb/5xiIIx/ m6tQqP6e2OVH15Xqdwr3wnQ65JZnIcB3F1X2qQ27CUjxtM8mhcvuFHuIbmBv91daImsy 3sjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:mail-followup-to:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=OzO0DZvXOyrs2UoWemzcvke5bgA0xlYm3qpRtsparnk=; b=OBwylclFIHjUpjt0/VLrhwkwxaoZRfPsWFZzN3x5qo29QlVUycdm+iyXtbQ6CrQJQd W0a1/a1VXCohWsOlLqW73OuwKfE+nrN5rN7p/7WQcbEZjuvjdwLYO8sfFsiNn7KcqV1F YeTJPjHWWNE2yvfOulOtnhJR8q2ci9/ke3A8eaNILKZ2iCptAKusFsWzJl9piVo+SyJb SCND+ZGT1M6jEFmR+JMaUMhMUUTPsA3q5HemFDAfFkIzlqZrNMeC9SZ7/TvqwJV8jz+0 GsTgjSEAPcuupZavMqCtmyiz9xweAuxeaZ1mlrJQOvdpp/X4+z/qPRkwfNXW7DmfZDL2 p8fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="TBI/P+6P"; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p13si2872756ejf.178.2020.06.18.19.05.34; Thu, 18 Jun 2020 19:05:57 -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=@redhat.com header.s=mimecast20190719 header.b="TBI/P+6P"; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728125AbgFSAxw (ORCPT + 99 others); Thu, 18 Jun 2020 20:53:52 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:47244 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726926AbgFSAxv (ORCPT ); Thu, 18 Jun 2020 20:53:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592528030; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=OzO0DZvXOyrs2UoWemzcvke5bgA0xlYm3qpRtsparnk=; b=TBI/P+6P3KO3sM8YAQiKhC61le5W4Z6id5z42aAvGxN+WrHiM8K2eyU+dMUn+ff4H/HwCK y6h+WhiKZFtd6CGCvjYFOkz/z8YuzVzoPX4vB2MVLSwpqYQSKDpkMRWRqF8iEM3ozQUe8A 9C3851v8ha0JZ4Z1G6bPCiSRAYuQ+no= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-54-h2Yb40AUNjWauPfmd-LYGw-1; Thu, 18 Jun 2020 20:53:49 -0400 X-MC-Unique: h2Yb40AUNjWauPfmd-LYGw-1 Received: by mail-qv1-f69.google.com with SMTP id j4so5433226qvt.20 for ; Thu, 18 Jun 2020 17:53:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=OzO0DZvXOyrs2UoWemzcvke5bgA0xlYm3qpRtsparnk=; b=g0wtl2JEDrS2KEa/zwX0HgLZBRaLhJOXc88hsfMla8tFyMyqQf5eJOnidB2lJZTUlU vhj0v+B/zOyYXJ0+MrtAmO1VWjQonhcKLH3StkXuUvLa7XNvxUNgA5Jj6xi45QEP0FIT wAPernGsVVYugsB8DW0jxMnzJ7no1G9peZm4Q1lZcur1krS5fUQl85JJrB6AFI/lTTyn ghQ7Uuyzruw4TeU0As09/VGWJknSHryjUm54wl0CieJVgvDE3FSk7fTtDVNDuCYqSNE+ gK1yVKrxagH8TLaChuk37S+qzvRsETat6U/w3Yw/bywY3sChXJpnrEBnlLmClNMvOFTF sqxQ== X-Gm-Message-State: AOAM532e2YSpY6/9JCRB7z/+sTipeFjj4f/eiOPViTY9grVweOOzUCjQ 58/8IPMMF4kNv/wNXhbJQWp7h4TzQKhQOmNSiRWFSPShTjAcbFDR9ZVUIdtJXUvdC6q6Cfas412 /I14o4BS/aSbLKmfY06RfKtD/ X-Received: by 2002:a37:8fc4:: with SMTP id r187mr866379qkd.101.1592528028648; Thu, 18 Jun 2020 17:53:48 -0700 (PDT) X-Received: by 2002:a37:8fc4:: with SMTP id r187mr866367qkd.101.1592528028392; Thu, 18 Jun 2020 17:53:48 -0700 (PDT) Received: from localhost (ip70-163-223-149.ph.ph.cox.net. [70.163.223.149]) by smtp.gmail.com with ESMTPSA id f3sm4364250qta.44.2020.06.18.17.53.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2020 17:53:47 -0700 (PDT) Date: Thu, 18 Jun 2020 17:53:46 -0700 From: Jerry Snitselaar To: Lu Baolu Cc: Joerg Roedel , Alex Williamson , iommu@lists.linux-foundation.org, Tom Murphy , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] iommu/vt-d: Fix misuse of iommu_domain_identity_map() Message-ID: <20200619005346.2myy4lwbquxuch76@cantor> Reply-To: Jerry Snitselaar Mail-Followup-To: Lu Baolu , Joerg Roedel , Alex Williamson , iommu@lists.linux-foundation.org, Tom Murphy , linux-kernel@vger.kernel.org References: <20200618233650.9214-1-baolu.lu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: <20200618233650.9214-1-baolu.lu@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri Jun 19 20, Lu Baolu wrote: >The iommu_domain_identity_map() helper takes start/end PFN as arguments. >Fix a misuse case where the start and end addresses are passed. > >Fixes: e70b081c6f376 ("iommu/vt-d: Remove IOVA handling code from the non-dma_ops path") >Cc: Tom Murphy >Reported-by: Alex Williamson >Signed-off-by: Lu Baolu Reviewed-by: Jerry Snitselaar