Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755249AbcKVEQn (ORCPT ); Mon, 21 Nov 2016 23:16:43 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:55185 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755067AbcKVEQi (ORCPT ); Mon, 21 Nov 2016 23:16:38 -0500 From: Mehmet Kayaalp To: David Howells Cc: Mehmet Kayaalp , Mimi Zohar , Stefan Berger , George Wilson , LSM , keyrings@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Date: Mon, 21 Nov 2016 23:11:16 -0500 X-Mailer: git-send-email 2.7.4 X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16112204-0004-0000-0000-000010E8931E X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006120; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000189; SDB=6.00783714; UDB=6.00378504; IPR=6.00561333; BA=6.00004898; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013404; XFM=3.00000011; UTC=2016-11-22 04:16:36 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16112204-0005-0000-0000-00007AC8B8F4 Message-Id: <1479787880-31811-1-git-send-email-mkayaalp@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-11-22_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1611220076 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1596 Lines: 38 >From e8196ab86d10c24a9ebc87a1007a4047dc77bab8 Mon Sep 17 00:00:00 2001 From: Mehmet Kayaalp Date: Mon, 21 Nov 2016 15:46:20 -0500 Subject: [PATCH v3 0/4] Certificate insertion support for x86 bzImages These patches add support for modifying the reserved space for extra certificates in a compressed bzImage in x86. This allows separating the system keyring certificate from the kernel build process. After the kernel image is distributed, the insert-sys-cert script can be used to insert the certificate for x86. Changes: v3: * Rewrote 1/4 to insert incompressible bytes are at build time. Previous solution required changes to /boot/Makefile's for modifying the vmlinux file after linking, and did not work well with cross compilation. * Added 2/4 for ELF class-independent processing of vmlinux file, in case the script was compiled for 64-bit and the kernel was compiled for 32-bit. * Reordered 3/4, added x86 bzImage boot version (>=2.08) verification. v2: * Rebased arch/boot/x86/Makefile patch (removed in v3) Mehmet Kayaalp (4): KEYS: Insert incompressible bytes to reserve space in bzImage KEYS: Add ELF class-independent certificate insertion support KEYS: Support for inserting a certificate into x86 bzImage KEYS: Print insert-sys-cert information to stdout instead of stderr certs/Makefile | 21 +- certs/system_certificates.S | 2 +- scripts/Makefile | 1 + scripts/insert-sys-cert.c | 455 +++++++++++++++++++++++++++++++++----------- 4 files changed, 362 insertions(+), 117 deletions(-) -- 2.7.4