From patchwork Thu Oct 15 11:50:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 11839091 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3635A1580 for ; Thu, 15 Oct 2020 11:55:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1E838218AC for ; Thu, 15 Oct 2020 11:55:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730160AbgJOLyd (ORCPT ); Thu, 15 Oct 2020 07:54:33 -0400 Received: from mga06.intel.com ([134.134.136.31]:30479 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728839AbgJOLvJ (ORCPT ); Thu, 15 Oct 2020 07:51:09 -0400 IronPort-SDR: awrGrhFq3bLkfZ/8oM9MpYUsyHNiMkZZ9hjaUtcUCt0xelzMqaYo4+lMgxKPmXnP+6o4XxJf4I YbOfMLD0TZAg== X-IronPort-AV: E=McAfee;i="6000,8403,9774"; a="227974480" X-IronPort-AV: E=Sophos;i="5.77,378,1596524400"; d="scan'208";a="227974480" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Oct 2020 04:50:30 -0700 IronPort-SDR: 0iHbdXvvEp4TY5M5iECt1suWmz50f/BTnDXYkB061r858IraoLzC3njImmXBfcfJ2cxql9E+Bq Lxtqzh0u6qcA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,378,1596524400"; d="scan'208";a="346825992" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga008.jf.intel.com with ESMTP; 15 Oct 2020 04:50:29 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id B103E163; Thu, 15 Oct 2020 14:50:28 +0300 (EEST) From: Andy Shevchenko To: James Morris , "Serge E. Hallyn" , linux-security-module@vger.kernel.org Cc: Andy Shevchenko Subject: [PATCH v1] efi: Don't use knowledge about efi_guid_t internals Date: Thu, 15 Oct 2020 14:50:28 +0300 Message-Id: <20201015115028.81857-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Precedence: bulk List-ID: When print GUIDs supply pointer to the efi_guid_t (guid_t) type rather its internal members. Signed-off-by: Andy Shevchenko --- security/integrity/platform_certs/efi_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/integrity/platform_certs/efi_parser.c b/security/integrity/platform_certs/efi_parser.c index 18f01f36fe6a..d98260f8402a 100644 --- a/security/integrity/platform_certs/efi_parser.c +++ b/security/integrity/platform_certs/efi_parser.c @@ -55,7 +55,7 @@ int __init parse_efi_signature_list( memcpy(&list, data, sizeof(list)); pr_devel("LIST[%04x] guid=%pUl ls=%x hs=%x ss=%x\n", offs, - list.signature_type.b, list.signature_list_size, + &list.signature_type, list.signature_list_size, list.signature_header_size, list.signature_size); lsize = list.signature_list_size;