Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4273193imw; Tue, 12 Jul 2022 05:15:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u8OJaLureOn1U62hXjUGNGHg5mFjlxq52AO61qjZaeQAaB2qDQYmwLN7Cb3rgRdiSMaqqt X-Received: by 2002:a05:6402:43c4:b0:43a:6309:6c9b with SMTP id p4-20020a05640243c400b0043a63096c9bmr31222427edc.91.1657628152804; Tue, 12 Jul 2022 05:15:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657628152; cv=none; d=google.com; s=arc-20160816; b=eN5b5TVKtewPBZrADKI03JJwLqmsjLN5Sl+PFrvA8ITZDOnDKSYz6eIKcp82zt06oC o+lftwF7fE7815yg32k1V0pHx23PwtVbQbIY9ubKw8g/+hvvrdbW+afBnXcq7n0l/VjO fiOIJ1URjroBmSVxqCCkn9eclRjeYeCKK8xvNmWr0GgVNinAVYpqLpRyzR9QWOpDyi6x oT3z8f6sAqiH0uq5F69vQqgMWENTYWfcms6tYwUSZl9/tF9c27RIagS2VRKWMpyXJBpy 50Y7NNAfxed6tAKBnvwnaffh5m2useSqZd+sWbAM5+7O++vgPnWyD3ZsQM5gZRJTcb2I 5HKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=dhuv8amPU1lpTuX2ldJ7QTJWQ9oLCQAbrXih6G3/CoQ=; b=y31uvvPfTOzE9Q6ArS3bJM0R70lVaNjpmKPv9OyajBe/aVEIUz6zmU3GLtlsdddGPc AGEllPjh7Dc2edem7G8e9VfRe30bBW38Ul/yO7ccPSQidOIZM4Xuu2pclyBCMat219+3 ziLCW1IKE1aGrMU/YFWuqfoaISedHb2ds34ts+1sJvdNnVzX0K6W4P2vt1wJluP4nCou ecDcSkKKiKmRuYDIxopDfjkVFb9G57OYwE+DT/fCL2HzEULC0NupcHJuSiJsQuwg9Vzi 3qMtqY1iM31049yk0MWjPJJOZnLLYZyZa05Cqn6z2PTt9C00N56+M+SOTjf5AGIlef9D kN8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=JFo2H1ui; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go31-20020a1709070d9f00b0072b3cd7beb8si17214055ejc.938.2022.07.12.05.15.25; Tue, 12 Jul 2022 05:15:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=JFo2H1ui; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232738AbiGLLlU (ORCPT + 99 others); Tue, 12 Jul 2022 07:41:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231790AbiGLLlA (ORCPT ); Tue, 12 Jul 2022 07:41:00 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7003FAE3B5; Tue, 12 Jul 2022 04:40:59 -0700 (PDT) Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 26CAcQrw010704; Tue, 12 Jul 2022 11:40:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : mime-version : content-transfer-encoding; s=pp1; bh=dhuv8amPU1lpTuX2ldJ7QTJWQ9oLCQAbrXih6G3/CoQ=; b=JFo2H1ui6Rp8//87qRRT5By4ovEmOzdU9Z8giCHuBcKIeR3fHRaxbWBMxE7MWF6QXCoc vW72Z7aIc9Ywm8H9rIkfuN4PR79DSMWLYEV6zXgr0NOHdqa3NCPCT3ArGYtfUR5hMIzt YWFWE6Xm8c44yyo144Y2nxlHWIIq5TqWC5OxO5eWYs/fRHqwwNtcS1l4PeYJgcZ+PaJW YVQ5/Hue4nZ0MEOJlmHiRx41zWmrNw8FicYfLBfI0bGw8sS/XbmcoOUyhhyDp+WEnu3a ixcPu7OGLmx7eslRrKySPS4XqVRBFMd3AkYVcIioKHNDxRI4zERYekBYntLIeYAr7SQe 0w== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3h96qfaex9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Jul 2022 11:40:51 +0000 Received: from m0098419.ppops.net (m0098419.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 26CAlMNl012943; Tue, 12 Jul 2022 11:40:50 GMT Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3h96qfaewh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Jul 2022 11:40:50 +0000 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 26CBa5g7016842; Tue, 12 Jul 2022 11:40:48 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma03ams.nl.ibm.com with ESMTP id 3h71a8v3ka-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Jul 2022 11:40:48 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 26CBdHtY23134658 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 12 Jul 2022 11:39:17 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8AE94A404D; Tue, 12 Jul 2022 11:40:46 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0980EA4040; Tue, 12 Jul 2022 11:40:44 +0000 (GMT) Received: from li-f45666cc-3089-11b2-a85c-c57d1a57929f.ibm.com (unknown [9.211.147.132]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 12 Jul 2022 11:40:43 +0000 (GMT) Message-ID: Subject: Re: [PATCH] ima: force signature verification when CONFIG_KEXEC_SIG is configured From: Mimi Zohar To: Coiby Xu , linux-integrity@vger.kernel.org Cc: kexec@lists.infradead.org, Baoquan He , Eric Biederman , Dmitry Kasatkin , James Morris , "Serge E. Hallyn" , David Howells , Jiri Bohac , Matthew Garrett , open list , "open list:SECURITY SUBSYSTEM" Date: Tue, 12 Jul 2022 07:40:43 -0400 In-Reply-To: <20220712093302.49490-1-coxu@redhat.com> References: <20220712093302.49490-1-coxu@redhat.com> Content-Type: text/plain; charset="ISO-8859-15" X-Mailer: Evolution 3.28.5 (3.28.5-18.el8) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: MpkPlNP-s9Sa8RtSTtN_o1O_-BVg1fUX X-Proofpoint-GUID: 8apTZIbzd9VOJ2kDjloc8eODXVgG-4vP X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-07-12_08,2022-07-12_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 bulkscore=0 impostorscore=0 spamscore=0 clxscore=1011 suspectscore=0 mlxscore=0 mlxlogscore=999 phishscore=0 adultscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2207120044 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2022-07-12 at 17:33 +0800, Coiby Xu wrote: > Currently, an unsigned kernel could be kexec'ed when IMA arch specific > policy is configured unless lockdown is enabled. Enforce kernel > signature verification check in the kexec_file_load syscall when IMA > arch specific policy is configured. > > Fixes: 99d5cadfde2b ("kexec_file: split KEXEC_VERIFY_SIG into KEXEC_SIG and KEXEC_SIG_FORCE") > Reported-by: Mimi Zohar > Suggested-by: Mimi Zohar > Signed-off-by: Coiby Xu Thanks, Coiby. This patch is now queued in next-integrity/next- integrity-testing. Mimi