From patchwork Thu Jul 22 06:49:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasant Hegde X-Patchwork-Id: 1508548 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=skiboot-stable-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=j5eWn9G6; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GVjkG04LYz9sW8 for ; Thu, 22 Jul 2021 16:49:57 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4GVjkF4SDSz304h for ; Thu, 22 Jul 2021 16:49:57 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=j5eWn9G6; dkim-atps=neutral X-Original-To: skiboot-stable@lists.ozlabs.org Delivered-To: skiboot-stable@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=linux.vnet.ibm.com (client-ip=148.163.158.5; helo=mx0b-001b2d01.pphosted.com; envelope-from=hegdevasant@linux.vnet.ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=j5eWn9G6; dkim-atps=neutral Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4GVjkB55Jyz2yP4; Thu, 22 Jul 2021 16:49:53 +1000 (AEST) Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16M6YcBT063995; Thu, 22 Jul 2021 02:49:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=to : cc : from : subject : message-id : date : content-type : content-transfer-encoding : mime-version; s=pp1; bh=pyXihhDhT4KxqXU/qy2a4gXqg/w7c+SmT6UhLPPDxDU=; b=j5eWn9G6qyoWXIuac9JgBRRZ2dMmfhqdixvhV7n21TM3px6qmcDe04MLY+6wMvC7cgRr JnhbROJf6pIetj6HNB/VcDhf8WzPdJobJNfO8xvhyKDggEuuvqnzsUbAmnnsCPACFKp9 YIfFBGe9AehnW2NoYl+U0L1HcWQhFQalUu1f2jsLz3j7CcgMioeTh4oWMen6jMps+Dnm 5sg/ftMpGSZPztWoEDXkM3V+UxLBNiyeH+ZcYde50CFVnLXgTINqAbj4XjzbUNgSPcjz /cka/BCpd50KVwb5ZRbFsTF27L/tDJlqiIRBuDh6lZ9sFwrVV2viIr/9KhmS5Xk4Za6R bw== Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com with ESMTP id 39y2wd9519-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 22 Jul 2021 02:49:51 -0400 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 16M6ksIU003984; Thu, 22 Jul 2021 06:49:49 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma06ams.nl.ibm.com with ESMTP id 39vng71wgu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 22 Jul 2021 06:49:49 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 16M6nkVO23396848 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 22 Jul 2021 06:49:46 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 05B214C075; Thu, 22 Jul 2021 06:49:46 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 180EC4C062; Thu, 22 Jul 2021 06:49:45 +0000 (GMT) Received: from [9.77.195.92] (unknown [9.77.195.92]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 22 Jul 2021 06:49:44 +0000 (GMT) To: skiboot stable list From: Vasant Hegde Message-ID: <535341c9-3251-ec3e-aede-0426ff3246c9@linux.vnet.ibm.com> Date: Thu, 22 Jul 2021 12:19:43 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 Content-Language: en-US X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: US79YBBXoU4pFJDVdTTBMEDG8581sgJ5 X-Proofpoint-GUID: US79YBBXoU4pFJDVdTTBMEDG8581sgJ5 X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-22_03:2021-07-22, 2021-07-22 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 spamscore=0 impostorscore=0 bulkscore=0 clxscore=1015 mlxlogscore=999 mlxscore=0 adultscore=0 malwarescore=0 suspectscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2107220039 Subject: [Skiboot-stable] [git pull] skiboot v6.8.1 X-BeenThere: skiboot-stable@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Patches, review, and discussion for stable releases of skiboot" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: skiboot list Errors-To: skiboot-stable-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot-stable" The following changes since commit 1cdde9466ab658fb5b5a53af8c4e6a8929eef698: skiboot v6.8 release notes (2021-05-28 17:38:53 +0530) are available in the Git repository at: https://github.com/hegdevasant/skiboot.git tags/v6.8.1 for you to fetch changes up to 0c077e6a538e72edd429857610a95ef611732481: skiboot v6.8.1 release notes (2021-07-22 12:13:21 +0530) ---------------------------------------------------------------- v6.8.1 ---------------------------------------------------------------- Daniel Axtens (4): secvar/backend: Don't overread data in auth descriptor secvar/backend: fix an integer underflow bug secvar/backend: fix a memory leak in get_pkcs7 pkcs7: pkcs7_get_content_info_type should reset *p on error Nayna Jain (1): secvar: fix endian conversion Nick Child (4): secvar: ensure ESL buf size is at least what ESL header expects secvar: Make `validate_esl_list` iterate through esl chain secvar: return error if validate_esl has extra data secvar: return error if verify_signature runs out of ESLs Vasant Hegde (1): skiboot v6.8.1 release notes doc/release-notes/skiboot-6.8.1.rst | 31 +++++++++ libstb/crypto/pkcs7/pkcs7.c | 4 +- libstb/secvar/backend/edk2-compat-process.c | 32 +++++++--- libstb/secvar/test/Makefile.check | 5 +- libstb/secvar/test/data/KEKeslcorrupt.h | 161 +++++++++++++++++++++++++++++++++++++++++++++++ libstb/secvar/test/data/KEKpkcs7corrupt.h | 161 +++++++++++++++++++++++++++++++++++++++++++++++ libstb/secvar/test/data/multipletrimmedKEK.h | 225 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ libstb/secvar/test/data/trimmedKEK.h | 161 +++++++++++++++++++++++++++++++++++++++++++++++ libstb/secvar/test/secvar-test-edk2-compat.c | 124 ++++++++++++++++++++++++++++++++++++ libstb/secvar/test/secvar-test-pkcs7.c | 32 ++++++++++ 10 files changed, 926 insertions(+), 10 deletions(-) create mode 100644 doc/release-notes/skiboot-6.8.1.rst create mode 100644 libstb/secvar/test/data/KEKeslcorrupt.h create mode 100644 libstb/secvar/test/data/KEKpkcs7corrupt.h create mode 100644 libstb/secvar/test/data/multipletrimmedKEK.h create mode 100644 libstb/secvar/test/data/trimmedKEK.h create mode 100644 libstb/secvar/test/secvar-test-pkcs7.c