From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by mx.groups.io with SMTP id smtpd.web08.11491.1609953888081404611 for ; Wed, 06 Jan 2021 09:24:48 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=PMtLkubE; spf=pass (domain: gmx.de, ip: 212.227.15.18, mailfrom: xypron.glpk@gmx.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1609953876; bh=8as1CXl8avcXsrL6EMb5+12fsfJJeP312OB3nTfjXU4=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=PMtLkubEqB8dcFJjoNfNq/huLEP2KSzvKb4audoBi7crKTg8ltr6obELfp4QAtOlG uWASkWSPlT/kB6UreIn64MRKDfELS6v6xmjifOmYj1KBZ7YkcC7XZMjDixTH36vPfC RiZN3xUyJ5dGNhKZflL6Ryn29gUoeqP5Q04/+bzg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([62.143.246.89]) by mail.gmx.com (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MlNpH-1kFs7d0SoX-00lk6J; Wed, 06 Jan 2021 18:24:36 +0100 From: "Heinrich Schuchardt" To: devel@edk2.groups.io Cc: Dandan Bi , Liming Gao , Heinrich Schuchardt Subject: [PATCH 1/1] MdeModulePkg: correct TPL level check CoreCreateEventEx Date: Wed, 6 Jan 2021 18:24:27 +0100 Message-Id: <20210106172427.85250-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-Provags-ID: V03:K1:s5xv4P7ItbqMFtBtt+JwZ1QvSAGDbYwl9LK26A3//x/dcUtTYU1 5AGaHwaSYE7fQouk0FRgW417l5QKYOkzujGpwOq4428HAMEKr7wOULKx9qsM7cZFtB2UJx4 RYTHarjIofMEBAMxq+8ooPwGcm6mF6d0Jk8hLh7fCURAzvkaOxpPVacI1ZBVR2ApcTfbHSy OupH8Sra45TaF/6HtoE7Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Rfwm+wkAJ+k=:dyZgHiCuBoQdq6SKTk4IN5 Mdhk335qkClIto2FJ9cAfppZqloo3f/wWEIiEyaj6zdmzK29D+ShqkHXrOKlFIv5YrZBqoZ2h 2Hwr0C8aNH4VaMswoy6Q02ZfxNRI2EW5GOUYpTb0H8CHU6Cn3uNy5FhlFfFyZPGPbNcYOmGRY 0VIB+W//Dj6F296Ro7u2+43ap3QLJPjb8bB2VEFH6DFihmxk7hOYQg9/0Gde68nI+506WizvG zI5R4rgz18DyA7DbThs6jQ3QCwtcNwYAokRthPdjWB6b9WrXwriBYMX0qmehjK4LrSXTkX9Hk aKhQw/mNXcRvoogeffLZQGfC50vMfWrl9T6vm9duLNvtHrfM5tAdC0NJpeLd7F6CnP9jBwKF3 10RnEH4DbwhO3xH162wfqDZRf1N10eZtUeLQP1T0cZKG+EYqO1FB23ev4Rd28Ayk4K8bF1JMa jsUhn7gLFJIYDi/qt6dm53zzcZAHZIruVmYwnPeq6E0y5q45eqfmfcfexAkdR74p+yDBTSO2i uTNJsNmEu3xJ5nWbbeneekNSaJxi0YdP47aNEqYzBFs5DsMF9ZWV95i+wNQrK+FDNLktyqFz+ ouPaHp7oZFGdn/WKloW9hW5+HqMcOjY44RatKgB1HzDRw6Z4Psbr/7JIlplyJh16uc0tNEtd7 bNWgl+HRmWbX1b/y+5pod8lKPgmN1BTd+5C8/G+CzbCSo0zNmB7BiwmXli2t5pvtCoDxZkZrF ZUCs5VJGNwA/lMn/N1JkIJnmW1Pf/kxUMbyLwWD/JpB4WUSckCbAMPfvT4OaWNE1g86IwEyz/ E31taJkf2AencTbfz+jvK9mDY9wbQeq7efhTClxSi2dj2WsTHJtyj3OknXgHL5rU0Fd6YkM64 t2+S4zdd/QEsF/zDgH0w== Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3058 According to table Table 27. TPL Restrictions in UEFI spec 2.8 B: Event Notification Levels must be > TPL_APPLICATION and <=3D TPL_HIGH_LEVE= L. Adjust the test TPL level test. Signed-off-by: Heinrich Schuchardt =2D-- MdeModulePkg/Core/Dxe/Event/Event.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MdeModulePkg/Core/Dxe/Event/Event.c b/MdeModulePkg/Core/Dxe/E= vent/Event.c index c83c572c8f84..e25856eaaa5f 100644 =2D-- a/MdeModulePkg/Core/Dxe/Event/Event.c +++ b/MdeModulePkg/Core/Dxe/Event/Event.c @@ -339,9 +339,9 @@ CoreCreateEventEx ( // If it's a notify type of event, check for invalid NotifyTpl // if ((Type & (EVT_NOTIFY_WAIT | EVT_NOTIFY_SIGNAL)) !=3D 0) { - if (NotifyTpl !=3D TPL_APPLICATION && - NotifyTpl !=3D TPL_CALLBACK && - NotifyTpl !=3D TPL_NOTIFY) { + if (NotifyTpl !=3D TPL_CALLBACK && + NotifyTpl !=3D TPL_NOTIFY && + NotifyTpl !=3D TPL_HIGH_LEVEL) { return EFI_INVALID_PARAMETER; } } =2D- 2.29.2