Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1184481pxa; Thu, 13 Aug 2020 02:45:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxD69bFmtsxtSajB74Dj9xKPdjHNxQfW//+5IUNJJajX49ZXG+hqCxwtmSPz91XJOdG6SNj X-Received: by 2002:aa7:c30b:: with SMTP id l11mr3803910edq.253.1597311926990; Thu, 13 Aug 2020 02:45:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1597311926; cv=pass; d=google.com; s=arc-20160816; b=Weq7fOIw74WPZURo8yGpSDgBf9Z1/eiWKPavwGrPPcaIn/eKrbrG9g+OOYHsPFiO+I E4yp70HDDW9gSkFYeC4ZBioBZq+MqyyItFkCU4seChUrsunmgfSvrW4SRFNvWydKsmcl dpId69VO8pFu8+lfKCHWI+IoUEmFi5fSAZZJwVwGRX2dd3Gl2wHNzshcalkY1KNH15OI n0e98hPfaQCsnAutQt6n6DqB6/2ufNwp8x6E2WT7WxAj29CsOaac6owNdF2L2k9xHAUz 7RK3rlb8EIQ+rdrfpQA4CreytSiChELbgaa5dsyqP3/1yc4b4wQiHLl4gjJ41WoZSXXh mmyw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-product:dlp-version:dlp-reaction:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:ironport-sdr :ironport-sdr; bh=p9CTG4BQBaG38Ux45c2YNFu08/xOfOHaukk+3h9Ipno=; b=nV+HI4YXOyCWX+LhoqdTsnw6NIJ8otkxCk1NBISkgyFkApnilvS9duwp3eAvz/TYAN fHdb7VN7ROi32gOOdA0M9gXzjq0fVk6AHwgIBOLKMS/zjLtPXhOGniLijx9orQUyxHSC 4UtLZAKdIMoUsmTjeO3NZ54SKMn+8Vhh5fYwqbaFvGWLTfhCFUMxa274dQfIeitf/0J4 jtNSP8QQsZmYYuk7fK9Wpy6xr4PeZHG3VO8mklflNWLfft420cDlPOCaqBXgaVJT9Pkc BYEIiKhmEb3U1MkBw2KNoR0n/egkGAW8CPW6c418g/Hm66gMS2QYvLidpmELqpg7rDd4 T29Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=bQPjAsK7; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lc20si2880857ejb.468.2020.08.13.02.45.03; Thu, 13 Aug 2020 02:45:26 -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=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=bQPjAsK7; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726102AbgHMJoE (ORCPT + 99 others); Thu, 13 Aug 2020 05:44:04 -0400 Received: from mga04.intel.com ([192.55.52.120]:10472 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726048AbgHMJoD (ORCPT ); Thu, 13 Aug 2020 05:44:03 -0400 IronPort-SDR: 2keTmgeMSj6ysKTv/ifc4LSZl+mAW+hQsCsErJUfI2o4G4IEAalJA0PBdta5jncTWAWvPZAftT 7mpw/qIVa0hw== X-IronPort-AV: E=McAfee;i="6000,8403,9711"; a="151608664" X-IronPort-AV: E=Sophos;i="5.76,307,1592895600"; d="scan'208";a="151608664" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Aug 2020 02:38:59 -0700 IronPort-SDR: Dk6wZPpNEWssrKy3GKhUftVWwmOhrQFnAEptQCmc2YlkB7cm0KF90i2Iy6zj3+0fOtPeUZvKBL YdumVhhwlRUg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,307,1592895600"; d="scan'208";a="495334614" Received: from fmsmsx603-2.cps.intel.com (HELO fmsmsx603.amr.corp.intel.com) ([10.18.84.213]) by fmsmga006.fm.intel.com with ESMTP; 13 Aug 2020 02:38:59 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 13 Aug 2020 02:38:58 -0700 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 13 Aug 2020 02:38:58 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.172) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 13 Aug 2020 02:38:57 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hLYHM8rk7pp3SVXgANRWTiqwjyWxFulPUbs+hdTPT2D3f2FXxNKx2UDvERXEVs/YCA38fDrDdd3KvA4x9slDSGXTI7q8su929n/qAOShHKFy7EZlA7sPJthJLgbsDkKU3Flw9AGX7ovCqvXoPXbToUr3IIvTZ6xI4rNQe0YySvdmazMzMXY0oVyznABWCsqhrxMnku2cJwgG8ddxuMk/h8JbFAB2LMEtks4oDlFnBtc3MUj8fVd/PjuTvkIjWAN6dF/jX8YO/N5mff97YHwtZ8AeSSoJjKkTPr6oPvnWN/U1OlYjGPdYzMCqu6OUOEJuXDqD8eakKv0fCbgFFhx/yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p9CTG4BQBaG38Ux45c2YNFu08/xOfOHaukk+3h9Ipno=; b=jouPd8fmOizPMsCbU4edNiqAYP2lFPtgj/6bbLVEm+7oKBLHHjlNbkYSR7HgT+4bRpGT/t40GTFXMj+xUel9HqtSh70UhSaNF2TKoa70rTOdR1qr3x2t69njWZXXRoxSx0SC8MugJDXgQ7oRJYPz1Efm2I7Y5X7pZSWffwUSA6E5RmHrt9Q+0c3YwySAnjNbEnk8ChqBWZq0JunayOGmD0p3Ty3pgkotgjMdNvSqPIMkUHC1IqFpeRsM7K9HDnfIp8qM9iYdG+VcIJV3O+PJXFK4l/FyevnawEdOlpowA3IFTFBl6HuNc1iNwek2Gmts2Ksp4RTb/xoMCw6cyFkm+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p9CTG4BQBaG38Ux45c2YNFu08/xOfOHaukk+3h9Ipno=; b=bQPjAsK769LCjn/fNzSzQXrJo9Y2OoeFxiZpZi71snrGBUB7C2oznyvtPtrI4j8lsHz3THwniDeF+AvcyQB29T1/kyeMQa8ubqD/qEGJAmLJqYwP0wQgecSeh/mJsHXA+hQvJ6+ppjVYgh+HYP5wHv9/SGfUjU1NRiwJXas6J5M= Received: from DM5PR11MB1435.namprd11.prod.outlook.com (2603:10b6:4:7::18) by DM6PR11MB4201.namprd11.prod.outlook.com (2603:10b6:5:200::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.19; Thu, 13 Aug 2020 09:38:47 +0000 Received: from DM5PR11MB1435.namprd11.prod.outlook.com ([fe80::9002:97a2:d8c0:8364]) by DM5PR11MB1435.namprd11.prod.outlook.com ([fe80::9002:97a2:d8c0:8364%10]) with mapi id 15.20.3261.026; Thu, 13 Aug 2020 09:38:47 +0000 From: "Liu, Yi L" To: Auger Eric , Jacob Pan , "iommu@lists.linux-foundation.org" , LKML , Joerg Roedel , Alex Williamson CC: Lu Baolu , David Woodhouse , "Tian, Kevin" , "Raj, Ashok" , Christoph Hellwig , "Jean-Philippe Brucker" , Jonathan Corbet Subject: RE: [PATCH v7 6/7] iommu/uapi: Handle data and argsz filled by users Thread-Topic: [PATCH v7 6/7] iommu/uapi: Handle data and argsz filled by users Thread-Index: AQHWcVHR6nRtyLJ8mkqF35ykXhEOrak1w2qQgAAC0ICAAAHbYA== Date: Thu, 13 Aug 2020 09:38:47 +0000 Message-ID: References: <1596068467-49322-1-git-send-email-jacob.jun.pan@linux.intel.com> <1596068467-49322-7-git-send-email-jacob.jun.pan@linux.intel.com> <55dc3e4c-2717-2c96-d676-708b94e8cf1f@redhat.com> In-Reply-To: <55dc3e4c-2717-2c96-d676-708b94e8cf1f@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows authentication-results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.147.220] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4ada50da-0cfd-43d0-d266-08d83f6cad9a x-ms-traffictypediagnostic: DM6PR11MB4201: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: mtH5dLjsP6yNqKZOBa0Tu5OELRw+tc/zyNyBiuyrg7KLqHaE0tV4bXtMbet4tOx1mFU1g5RVym9Yj62KYuGuB8HYw/grPzbpSRvR5jptk1u0MYeoxvXNztSksohnDmmD+/QiMY3/+loL/yYcTnqyNE07ph8+ZpLvwlSvFd739rNxsYH7zYwHtyQn5YnnTEmscOaJE7sE5/lOmLSSn31Aj7e07y5lVTNdWhAFBoLxMCeMkzMnJpt3P6dsNv9xsFweJZCwlG0G9ESxUfa75crPiZa2tqItzN8woPn+BQrJ2ytes7760ETZbi1L9pUqE8em/o4Rc6qvXLiXV9onJVmRjqQ7axs9A57B6br7SwcwidcTkcovhp3JLC5fyIjfA7TCSNSdhs3pMxHl0/ipdMWA3cbAmsm/F/z2xI+Uv0ArfLE7cjiohZe8VQKzUUEd7alLVv8g7osayunbkED/JuZYT20sro3oEKy5aRFlW9wxoWTo2qQjbvgnQkQvKXavCGzG x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR11MB1435.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(376002)(366004)(346002)(136003)(396003)(39860400002)(7416002)(54906003)(55016002)(9686003)(86362001)(2906002)(83380400001)(30864003)(966005)(52536014)(76116006)(33656002)(71200400001)(110136005)(66556008)(66446008)(64756008)(66476007)(478600001)(66946007)(8936002)(5660300002)(186003)(8676002)(26005)(6506007)(53546011)(4326008)(316002)(7696005)(26730200005)(19860200003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: RPaMU1xPUlYfTcQpAtig3A1mvPvqaYmHkJ610zPKIc8yPtpWCZ9+TLME7pITyYgv0aDLY5WOO6VAKMF0atCrheYqW2sIXz3rtCvAC/xi5ta+GDIoN4xUqLIjGkfmazNDEByasjXQk13mWREs3ytV/lkwXm+ALQUi0xA/DqxHFEojOveq+gwRtgnRd5QbKop3gjjlJcHtwQFAmAZ9QhM4k9Q+3a/adz6Q65Im+EHl7JIDyBBntRCfb9/4pUjDM3Kp+N+d3YaxxqheYuxIk8sJ7mKS9tecGn0I2+NYWNISGYeX3yKgHRBbFXAE6Ji09yiXlPQdUqPxNj9C/XTPBZ64hNPhdIMb2/NG9YGLa68FcWnlGAMcLdG+Rgzo3QePwDZAkBW45iqarRJ3a28HUieqO28GP7UCR1kvjFyiZt4kjB0G9w5brp5v2epwUnfTBM6HDM5qvZA2zR8U3867+ZtW2rd7aVxr0KrbBnOOGtDHcwlJkTPqd4Hxgw4HvblqFr0kUwNRpXWqo7gf71iWksJ653/TE9PNqKd8vzqZNFPLiY+0GLBk+d/u4GYJy6kkjlExE6gu9mlLtKOJE5tuG/zOH2m1zaZEAc1FcBX+xJEW64ueoKEDWmrptkUiSJQnTTWJ+rk/TLXFjIL1Qwhe2ia3AA== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM5PR11MB1435.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4ada50da-0cfd-43d0-d266-08d83f6cad9a X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Aug 2020 09:38:47.1829 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: E03tQQW/iWVRiqnn1nIxeOG09ptHt+EQR2r3lConNln37hrzmsgZLSBNULpO2Ku2KH8Q8k9pToDyb7cRqO+4zg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4201 X-OriginatorOrg: intel.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiBGcm9tOiBBdWdlciBFcmljIDxlcmljLmF1Z2VyQHJlZGhhdC5jb20+DQo+IFNlbnQ6IFRodXJz ZGF5LCBBdWd1c3QgMTMsIDIwMjAgNTozMSBQTQ0KPiANCj4gSGkgWWksDQo+IA0KPiBPbiA4LzEz LzIwIDExOjI1IEFNLCBMaXUsIFlpIEwgd3JvdGU6DQo+ID4gSGkgRXJpYywNCj4gPg0KPiA+DQo+ ID4+IEZyb206IEF1Z2VyIEVyaWMgPGVyaWMuYXVnZXJAcmVkaGF0LmNvbT4NCj4gPj4gU2VudDog VGh1cnNkYXksIEF1Z3VzdCAxMywgMjAyMCA1OjEyIFBNDQo+ID4+DQo+ID4+IEhpIEphY29iLA0K PiA+Pg0KPiA+PiBPbiA3LzMwLzIwIDI6MjEgQU0sIEphY29iIFBhbiB3cm90ZToNCj4gPj4+IElP TU1VIHVzZXIgQVBJcyBhcmUgcmVzcG9uc2libGUgZm9yIHByb2Nlc3NpbmcgdXNlciBkYXRhLiBU aGlzIHBhdGNoDQo+ID4+PiBjaGFuZ2VzIHRoZSBpbnRlcmZhY2Ugc3VjaCB0aGF0IHVzZXIgcG9p bnRlcnMgY2FuIGJlIHBhc3NlZCBpbnRvDQo+ID4+PiBJT01NVSBjb2RlIGRpcmVjdGx5LiBTZXBh cmF0ZSBrZXJuZWwgQVBJcyB3aXRob3V0IHVzZXIgcG9pbnRlcnMgYXJlDQo+ID4+PiBpbnRyb2R1 Y2VkIGZvciBpbi1rZXJuZWwgdXNl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