From nobody Sun Nov 24 21:18:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@eviden.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=eviden.com); dmarc=pass(p=reject dis=none) header.from=eviden.com ARC-Seal: i=2; a=rsa-sha256; t=1720505955; cv=pass; d=zohomail.com; s=zohoarc; b=bwMdAB4n7k47WOK5tCBqU+iyf1vozAcGDimcbLWpsR7lCoA/yYSAy4tFpNVbiQ0eZeiy0BZ0W2S9u1bfvy7qhct3z2IXGWDzRJxRvA8kJKGYwUYnMXqRv1AonPZVVlwvvffGWa4iFMX0w30+lgdALZTL1vYFmID0vyTkDNtQ4/Y= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720505955; h=Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=G2NEi8NswOhG6gPA68L8MYt7Ej/ubgwv0BLN5se4lzM=; b=VF2iqnBp8GbP7noo2izqB1hz93CCyahN0ViBiStebFnp+GgOciS0VSDXVAkuxtpSalp5Kbw9CH9xPDa2F2sGCJbFiYIjINYgi6upz5LsBb5USaA0bum7zh60BPvauHzuTtXxOIGyLZUr7kRgR2/jfIaTf222KlKqzYTOdYFDT90= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass header.i=@eviden.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=eviden.com); dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1720505955050639.6443628556405; Mon, 8 Jul 2024 23:19:15 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sR4BC-0000is-2T; Tue, 09 Jul 2024 02:18:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sR4B8-0000gl-1d for qemu-devel@nongnu.org; Tue, 09 Jul 2024 02:18:18 -0400 Received: from smarthost4.eviden.com ([80.78.11.85]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sR4B4-00080V-6v for qemu-devel@nongnu.org; Tue, 09 Jul 2024 02:18:16 -0400 Received: from mail-db8eur05lp2104.outbound.protection.outlook.com (HELO EUR05-DB8-obe.outbound.protection.outlook.com) ([104.47.17.104]) by smarthost4.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jul 2024 08:18:10 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by DU0PR07MB8466.eurprd07.prod.outlook.com (2603:10a6:10:355::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.19; Tue, 9 Jul 2024 06:18:09 +0000 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d]) by AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d%4]) with mapi id 15.20.7762.016; Tue, 9 Jul 2024 06:18:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720505894; x=1752041894; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=G2NEi8NswOhG6gPA68L8MYt7Ej/ubgwv0BLN5se4lzM=; b=juEYZr9I3mBKfqOWSrHKzLImIzTvDe1FM7ZO3tNHq2pXCsjjYBDxYVZM nNzbRIWJ99+m5TfCWnShrRPtK962k92FiLUyQAajUkFBHIHRigFCewLqX cREahPQxEpri16zJN2colvRpq7BehHf/nHlFduROBrpTg9pBzMqEcsTjv OmOevlw+xckXno/4z0yAKwzt5GR6OcHxAFNuLdrteK2/PomaAZdbJulcX qNX63uxzJeJHvH5vVkGdHU42Dp/lKidbYaIHE371Cfmu/MI34jK525Kl5 ol9/o68kJ+n/L7+3cbfHMnRpD8VnYImNQXUr9T/tKNjGWgyQafwO75nKy Q==; X-IronPort-AV: E=Sophos;i="6.09,194,1716242400"; d="scan'208";a="16237747" X-MGA-submission: =?us-ascii?q?MDG1AIf74Eo8cWCLJ70YioV9EfY0HnGQeKCH34?= =?us-ascii?q?zBqaG0aoM5+gIjvtu3QeT1jx3ilcRv0qo8y3OF1jCw6/23LCy+Y+2vdm?= =?us-ascii?q?NRpXbUJ5+Scq4udwkSqIw7LLgOnFkS7aDHcLCrJemKv253M7+Q6dz/6G?= =?us-ascii?q?3b3ZwwStrjLicr0+URBB+jLw=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wDnTm5BHBjuFr74LuKEDCVCosPFmIZ062xoeSGmPrbFwGuQtCuhnSUTjbmUP92bg9wMPVm9UC3CtqtDKHHXOFQCuBmRC7lSyHuqxfP25NJq/ipr5g22V9VZ2pt2kNxIK0/Etbj1VXj9Z82ChwX6+5KubgYmakQo2GMDtcIp7DqtqsjK751uVsdGgtzrcl1qqnrm60JGkruaQLrRl2zVRVukyB+gapd/WSXAqKbnx1YXXC19Rx+Rfml2cTtTMqF+Vq21TkO1Lg8CXJqgctR14UqOIsTuvhamPOuqiwfIoVBagvZLNPE/3uUbgC89LzilrIkMcYd4jC0dr73Bez2MtgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=G2NEi8NswOhG6gPA68L8MYt7Ej/ubgwv0BLN5se4lzM=; b=MUY1U6O8mtIKiPxyLYbTWx+siPJB7nwih+7/sIaBF+TviSqLXL8QWkGcs+vNYTGEpyffktY6dVBSB9v+HKUHKS7YqdoppHF13OOpZ+KO1FuFbODObCp/KfglO2YO8OYG0vzaU1nDl87nmoKckXuexrigT1IClsVIA12RVQGB2/RJgTrVxoBOQVMUbDCFXzrk/LmcrpQMRHS6kQ5wO8EhrEn9v9oowa5ioDJFGpqE2a4CZrkFJzdOCfqt5j2MNO9gc+7ZCYvZ84mJnXl7Oets39P45/uTGDFGMk6ppRCSP7AkE97aC7Xiy5mPG88aAk4YfXzS7PKkm4ySyQiijYFCTg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=eviden.com; dmarc=pass action=none header.from=eviden.com; dkim=pass header.d=eviden.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Eviden.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=G2NEi8NswOhG6gPA68L8MYt7Ej/ubgwv0BLN5se4lzM=; b=kevPtlBhRD7jjJ3ZC04vXXC39x/BDw52e79Q28S840M3U+mNi0badzvu+igEgJi3Bj3gyQZiqpeU29YYi5Lpf5Oxv+A6Yczm/yO51M0nU5JU7o4fmimd6MwgFvC1KcMjWSKG/zBMAeDCm51jYti6SCQUpmUKh/kmJeffD+3qTQkBS66Kh9qSsKSXYrIy/N2Ja7Sa8sJxRoYB6xoFX7PuzCMw9A8FMivvLq/EPEbIHPf4u4kX1FUqPcBUG7mOkgXdZQoXQ6Ie7EDQK93dHe38wiLXtGaJOmqmCWI9vZPxnhRu5V7OYaSHRS/jJ4GnvGXMxMAoiAAnhF7dy/PL7Mw/4w== From: CLEMENT MATHIEU--DRIF To: "qemu-devel@nongnu.org" CC: "jasowang@redhat.com" , "zhenzhong.duan@intel.com" , "kevin.tian@intel.com" , "yi.l.liu@intel.com" , "joao.m.martins@oracle.com" , "peterx@redhat.com" , "mst@redhat.com" , CLEMENT MATHIEU--DRIF , Minwoo Im Subject: [PATCH v6 3/4] intel_iommu: fix type of the mask field in VTDIOTLBPageInvInfo Thread-Topic: [PATCH v6 3/4] intel_iommu: fix type of the mask field in VTDIOTLBPageInvInfo Thread-Index: AQHa0cfEukGxrC/dLUmtiYAPj/jVWw== Date: Tue, 9 Jul 2024 06:18:09 +0000 Message-ID: <20240709061756.56347-4-clement.mathieu--drif@eviden.com> References: <20240709061756.56347-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240709061756.56347-1-clement.mathieu--drif@eviden.com> Accept-Language: en-GB, fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=eviden.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AM8PR07MB7602:EE_|DU0PR07MB8466:EE_ x-ms-office365-filtering-correlation-id: b7912557-9922-4d7c-e4fd-08dc9fdee76e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|1800799024|376014|38070700018; x-microsoft-antispam-message-info: =?utf-8?B?UVRob2l2aVdsNFI5a2VxQTFWUDVPdTRnVzFSNTQ0QVhmN3VWR0NFRlNUc1Vy?= =?utf-8?B?ek5zd0ptWXBLR3hPaHRkL1BEd0pCeXd5TVlqYWZZeERmZjRNNWFPamNaeWsy?= =?utf-8?B?UWxkQ1phY1lqeHNhWHhkYS8yVWN1UDl4Y2gwQ2lzZFFMWXNtY3JxTWJaTjg5?= =?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SFV:NSPM; H:AM8PR07MB7602.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?c3F3TUt3M2RnNm55TXRPcnp0Z0FXemdhS2xjVTdMZkQxemp3T3VVOWdTZFJz?= =?utf-8?B?RUM5L3A2RWZzOTlUc1YwUlQ5eTBlbFZTS3hiOXhFcWpKYXpPclY4NXNZQzVS?= =?utf-8?B?cnN2alpIYTZkeE12RUJsa3ZLWERCUkpPY2lPL0YvZENjMTlFQ1BiUkdqU29I?= =?utf-8?B?L2QxaHFqMDZJemxPTXdFVXhNOUZ6TTFaZENXYTJzQ2hmMGlkb1lhUWxFNThD?= =?utf-8?B?bW9GQ3dYSlpWbTFWUWpjNk95YUpKbzB3Qld3L3pmZWdQdTd5M0xDU3g1VThp?= =?utf-8?B?T0RrMDV4Q0lKR3ExaEtqRHRNeUVQdkw1QzhmTzhwK0pET09NSWpGcjd5V25X?= =?utf-8?B?ZUhRQ3EwNWZWQ25RNFN1aldRMy8xVDVaZGhlT0V4NjZTSHFrZnRRNTlvOXhh?= =?utf-8?B?RmZIdVBqWkc3aktaSUxuQUJ3cjZ6a3Y1VGpwR2R3TE5nVWJtakFrQlp6eVZJ?= =?utf-8?B?S3N3QTh4eTd6SnpDcThtTlNzVUwrZlpKRUVsaDV2OFY1eWlUWWtOeG1kYS9h?= =?utf-8?B?N3pqUlUrZ1FMMnYxUDV2bm5uQmNKM3JSa0dyWkh0TkVVTlF2WjY2c2RUQVZ1?= =?utf-8?B?UVgzY0w0MFc2QTNwYmxJYU5MbWt2VzFoSmxjN1V1bElRckkyT29PYk42TU5X?= =?utf-8?B?YUt0Um9rOElFWVVKdHlRWXhWcmsvVXZDWE1NVk5EWlU4WWo1WkZTZkk0dkpk?= =?utf-8?B?S1IyajE3a05nTC9kN1VUekJSekRHbk92WXEzZ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0Mmo0Rk1pQXdSR0pBdkYvenNBV0J1?= =?utf-8?B?NlA3MUlVaFQzUzFhbUM2UkZNMk5kS29TcjR2RU9lRmFvbzBrNy93SzE3S3ZF?= =?utf-8?B?bHpQVHJkTVhvY1hMdGJTempGVWZUcUVWWmp3dzF5UFVldjhmTHpGVmZITXRr?= =?utf-8?B?eTNkZ3U3ZzZrbGx2RStiMUUwZW9uY2xtVWV4RTJDQmJxdEJWbUorTnYxZ1BP?= =?utf-8?B?YzZLTWRIWHVhMkUzcFhJWWQ4b0xIQ1U0NEZ1M0Q2NHRacEYreWRzaElMb3ow?= =?utf-8?B?QW4ycThZcHRBTXg5aitadHhwVnZSUkJxNk9DQWhUZk40ZWdldlBuMmRNQ0ZW?= =?utf-8?B?dGY5cER2ck9udys5dUZsT2NxMlZaWWxLcDNHVzNZU2dKZVFoOTNXdEwrZnVh?= =?utf-8?B?R3d1OFBhVFozbGErdllJQ1dLdlNENi9aMzlCeDc0M1BXK3Qrd3Mrd2d1T0Qz?= =?utf-8?B?Y01XTnA4eUd3aldMdmcwQVNiQ2ltSmpjUnBhOG9HbkZLbHZyQUw5emU0Y1Ny?= =?utf-8?Q?3O55kvigRBx0QqDvkFVPUeY=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: eviden.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM8PR07MB7602.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b7912557-9922-4d7c-e4fd-08dc9fdee76e X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jul 2024 06:18:09.3790 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7d1c7785-2d8a-437d-b842-1ed5d8fbe00a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: sj3V35/kuJoXfeGYQMzDcWfOWKYu/55hogeO79ZpNuBNHxkqGmtraVh2pPKF74zoyIVHrCq3vIZQLRpZFG/9pH3wVFoOdBGjry3GsmgqNOYNWtBr6AjnzWmXtqkONQ8T X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR07MB8466 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=80.78.11.85; envelope-from=clement.mathieu--drif@eviden.com; helo=smarthost4.eviden.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @eviden.com) X-ZM-MESSAGEID: 1720505956786100003 From: Cl=C3=A9ment Mathieu--Drif The mask we are trying to store into VTDIOTLBPageInvInfo.mask might not fit in an uint8_t. Use uint64_t to avoid overflows. Per the below code, it can overflow as am can be larger than 8 according to the CH 6.5.2.3 IOTLB Invalidate. And you may want a fix tag as well. info.mask =3D ~((1 << am) - 1); CH 6.5.2.3 IOTLB Invalidate Address Mask (AM): For page-selective-within-domain invalidations, the Address Mask specifies the number of low order bits of the ADDR field that must be masked for the invalidation operation. This field enables software to request invalidation of contiguous mappings for size-aligned regions. Refer to Table 19 for encodings of this field. When invalidating a large-page translation, software must use the appropriate Address Mask value (0 for 4KByte page, 9 for 2-MByte page, and 18 for 1-GByte page). Hardware implementations report the maximum supported address mask value through the Capability register. Fixes: b5a280c00840 ("intel-iommu: add IOTLB using hash table") Signed-off-by: Cl=C3=A9ment Mathieu--Drif Reviewed-by: Minwoo Im Reviewed-by: Yi Liu --- hw/i386/intel_iommu_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/intel_iommu_internal.h b/hw/i386/intel_iommu_internal.h index faea23e8d6..5f32c36943 100644 --- a/hw/i386/intel_iommu_internal.h +++ b/hw/i386/intel_iommu_internal.h @@ -436,7 +436,7 @@ struct VTDIOTLBPageInvInfo { uint16_t domain_id; uint32_t pasid; uint64_t addr; - uint8_t mask; + uint64_t mask; }; typedef struct VTDIOTLBPageInvInfo VTDIOTLBPageInvInfo; =20 --=20 2.45.2