From nobody Mon Feb 9 10:28:25 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+91928+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+91928+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1658982714; cv=none; d=zohomail.com; s=zohoarc; b=QscmByx0lnFm6M2ohtaO6Y0hbVgV7x3bVztFUthczUaioPkxQKg0r+osfFzWJN4Bk+Z+S8TbptRH/ZCRhV+uZ2j25nFasUUb3io8hrcfS4FPfpqCdYSHtp05eoeuW4cFvz/UR4aQO8cdNPO+dsP+v/Sm11FFwEssmsEkGOjJVHY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1658982714; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=TYO+xgHGHhIu4eSOSzWXQgWvBSXGkOhSincqOh7ejpc=; b=dTQ3BuycLvuw7b/ASFvs0ztvuEpxLIFt8wV4E8zPXauFXr6BD3YD8or0pEHMNexdJRTqvMvXgQJekIRhVHm9fH3s9ZL3YKYDR+AT2Gm5V2HeF6pzrSKQf5hxvxaPAsrPBBp9W0PJw2N5O8ocSZvPRh3cNI0WOH3NuGLDT2qVUuo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+91928+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1658982714332723.12466911168; Wed, 27 Jul 2022 21:31:54 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 51vRYY1788612xpXu0HQ32gw; Wed, 27 Jul 2022 21:31:54 -0700 X-Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) by mx.groups.io with SMTP id smtpd.web08.29102.1658982713295405081 for ; Wed, 27 Jul 2022 21:31:53 -0700 X-Received: by mail-pj1-f54.google.com with SMTP id o20-20020a17090aac1400b001f2da729979so4208373pjq.0 for ; Wed, 27 Jul 2022 21:31:53 -0700 (PDT) X-Gm-Message-State: cyBqjq2rN4fLjiJsEPqaLwiUx1787277AA= X-Google-Smtp-Source: AGRyM1tHXla3dHgTFJOANbXE2/bxIuYCcYdzU8rygPPC4Hkclchm8ABJOuApwdpfskXnbynhUHpSJg== X-Received: by 2002:a17:902:e353:b0:16d:c10a:651a with SMTP id p19-20020a170902e35300b0016dc10a651amr2186324plc.146.1658982712614; Wed, 27 Jul 2022 21:31:52 -0700 (PDT) X-Received: from MININT-0U7P5GU.redmond.corp.microsoft.com ([2001:4898:80e8:36:7fef:12fc:943:d465]) by smtp.gmail.com with ESMTPSA id ik1-20020a170902ab0100b0016c48c52ce4sm14716392plb.204.2022.07.27.21.31.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jul 2022 21:31:52 -0700 (PDT) From: "Kun Qin" To: devel@edk2.groups.io Cc: Sami Mujawar , Alexei Fedorov , Joe Lopez , Sami Mujawar , Pierre Gondois Subject: [edk2-devel] [PATCH v2 2/6] DynamicTablesPkg: DynamicPlatRepoLib: Fix incorrect dereferencing Date: Wed, 27 Jul 2022 21:31:43 -0700 Message-Id: <20220728043147.395-3-kuqin12@gmail.com> In-Reply-To: <20220728043147.395-1-kuqin12@gmail.com> References: <20220728043147.395-1-kuqin12@gmail.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,kuqin12@gmail.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1658982714; bh=xYGebt1rPaV9Xux4RjzrkS2ym7J1Bg9akdKJvN8w63Q=; h=Cc:Date:From:Reply-To:Subject:To; b=ijeEKlGlSf8fO/XEJmWHxVAyW+Awiu1UpDzLYnQd/CggVIvZUSVWZ6gEOb5ZeGt6N5O Z9z3f8aeKKne4K4HIedZ71DjtaOpXjxrnaOwmCTH3iAjLw66FmbNGimjISpEHBE9Oh8sl oFfSFISUCthSjLBSotdsQmTCOedxwGFXY+I= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1658982715308100006 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3996 The content of token should be derived from the data section of the `CmObject` instead of the object itself. This change fixed the issue by dereferencing the token value from the data buffer of input CmObject. Cc: Sami Mujawar Cc: Alexei Fedorov Co-authored-by: Joe Lopez Signed-off-by: Kun Qin Reviewed-by: Sami Mujawar Reviewed-by: Pierre Gondois --- Notes: v2: - Added Reviewed-by tag [Sami] - Added Reviewed-by tag [Pierre] DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectTokenFixer.c | = 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectTok= enFixer.c b/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectToke= nFixer.c index 80d0aa17bc1a..84e4bb7e3bc8 100644 --- a/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectTokenFixer= .c +++ b/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectTokenFixer= .c @@ -60,7 +60,7 @@ TokenFixerItsGroup ( ) { ASSERT (CmObject !=3D NULL); - ((CM_ARM_ITS_GROUP_NODE *)CmObject)->Token =3D Token; + ((CM_ARM_ITS_GROUP_NODE *)CmObject->Data)->Token =3D Token; return EFI_SUCCESS; } =20 --=20 2.37.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#91928): https://edk2.groups.io/g/devel/message/91928 Mute This Topic: https://groups.io/mt/92664646/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-