From patchwork Fri Nov 4 15:02:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emekcan Aras X-Patchwork-Id: 290 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E382C43217 for ; Fri, 4 Nov 2022 15:02:51 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web12.12185.1667574164104675504 for ; Fri, 04 Nov 2022 08:02:44 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: emekcan.aras@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C4E1A1FB; Fri, 4 Nov 2022 08:02:49 -0700 (PDT) Received: from cassini-003.cambridge.arm.com (cassini-003.cambridge.arm.com [10.1.198.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A3EC23F703; Fri, 4 Nov 2022 08:02:42 -0700 (PDT) From: emekcan.aras@arm.com To: meta-arm@lists.yoctoproject.org, Jon.Mason@arm.com, Ross.Burton@arm.com Cc: nd@arm.com, Emekcan Subject: [PATCH 0/2] arm-bsp/trusted-services: smm gateway fixes for Date: Fri, 4 Nov 2022 15:02:32 +0000 Message-Id: <20221104150234.26800-1-emekcan.aras@arm.com> X-Mailer: git-send-email 2.17.1 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 04 Nov 2022 15:02:51 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arm/message/4085 From: Emekcan The SMM gateway in trusted-services does not return the right error values in negative cases. This patchset fixes those issues as expected in EDK2-tests. Emekcan (2): arm-bsp/trusted-services: add checks for null attributes in smm gateway arm-bsp/trusted-services: Fix GetNextVariable max_name_len in smm gateway ...teway-add-checks-for-null-attributes.patch | 35 +++++++++++++++++++ .../0022-GetNextVariableName-Fix.patch | 33 +++++++++++++++++ .../trusted-services/ts-corstone1000.inc | 2 ++ 3 files changed, 70 insertions(+) create mode 100644 meta-arm-bsp/recipes-security/trusted-services/corstone1000/0021-smm_gateway-add-checks-for-null-attributes.patch create mode 100644 meta-arm-bsp/recipes-security/trusted-services/corstone1000/0022-GetNextVariableName-Fix.patch