Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4370789ybg; Mon, 8 Jun 2020 06:18:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjuju3i6vruswCN88Ecy6gZXRzXEnd63FeGYijMVFue8f4FfgyM9VFwlS6H8wf7fBP4Nu9 X-Received: by 2002:a17:906:2c44:: with SMTP id f4mr2795448ejh.183.1591622332406; Mon, 08 Jun 2020 06:18:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591622332; cv=none; d=google.com; s=arc-20160816; b=dSAZBFPo/PegKlGV1ED55R//K2DjIXXibuyhCHTkIWWNi89xM19F8xfnVbR1YBeE2P XDLyzrBMn1pWXlxsVWq4w0riRm3Tgz/Ph8PGE0U8OE8f0LvFLzUMFagAZQGndoKZ1OvE UyLkTaCUkP4FYfNxK7sXeROvhlzKdT3thnzZxw82EQeP8h2zBw7qvdyiVz34Qdvm4M0m 5cEwpLdayOlrQXagAAzOTGzAu8ijon4BBQPUwgH4SCRZqxfdQYwPHHsB0ut7c3d5gThd o6RQek/tXWPFT9LOd8lWGRdd/1jvyc3WikM/RnWrsevvxrB3lrjOrrrg752tmEtUqNN5 2KMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=r8AaNZjS5F7dWLoUkbj6X/sKvWuJnZayb/NtVqL7yow=; b=Q1UYvh1t1VozEhARy+oFPp6IPf0IvYrRDvSI4VdaX3s+i7UCz5XiFi8mn3eIl4Kl1h g3P/Uki1v1vZJYNpeQdVGhzbUQHHYt/yonjrPZskqHc1OOTW1KeBnZgNKDg8/pTmSzM6 noT2Jz0R0tT6xbCUNJtHDF13FMF+DVBWLD5GO9mjmHQxjqsNWczym1FQ2zqhY6qhXI3/ /jltCEMXdKUf0Thc6z2tDi9wpgWTeRSu+jfIDzdS8wfk1yrLayL5peOBp5rWYDofDVi2 pIwxnt8ul3WAdl+XwsU9Ohg3Q2crBhUq+10SQ6SDh0HDfRXpE5vpZZzDC0QhWz/ls+rG XuWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j11si9013927ejv.117.2020.06.08.06.18.25; Mon, 08 Jun 2020 06:18:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729129AbgFHNQX (ORCPT + 99 others); Mon, 8 Jun 2020 09:16:23 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:60246 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728955AbgFHNQW (ORCPT ); Mon, 8 Jun 2020 09:16:22 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 058D31Mh024598; Mon, 8 Jun 2020 09:15:05 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 31g77q4s53-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 08 Jun 2020 09:15:04 -0400 Received: from m0098404.ppops.net (m0098404.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 058D3hrN029505; Mon, 8 Jun 2020 09:15:04 -0400 Received: from ppma03fra.de.ibm.com (6b.4a.5195.ip4.static.sl-reverse.com [149.81.74.107]) by mx0a-001b2d01.pphosted.com with ESMTP id 31g77q4s3g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 08 Jun 2020 09:15:04 -0400 Received: from pps.filterd (ppma03fra.de.ibm.com [127.0.0.1]) by ppma03fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 058DAG8R011919; Mon, 8 Jun 2020 13:15:02 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma03fra.de.ibm.com with ESMTP id 31g2s81mc7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 08 Jun 2020 13:15:01 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 058DExbF59834450 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 8 Jun 2020 13:14:59 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B033B11C04C; Mon, 8 Jun 2020 13:14:59 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A1D6511C04A; Mon, 8 Jun 2020 13:14:58 +0000 (GMT) Received: from localhost.localdomain (unknown [9.85.178.150]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 8 Jun 2020 13:14:58 +0000 (GMT) Message-ID: <1591622098.4638.67.camel@linux.ibm.com> Subject: Re: [PATCH] ima: Remove __init annotation from ima_pcrread() From: Mimi Zohar To: Roberto Sassu , torvalds@linux-foundation.org Cc: linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, silviu.vlasceanu@huawei.com, stable@vger.kernel.org, Jerry Snitselaar , "Bruno E. O. Meneguele" Date: Mon, 08 Jun 2020 09:14:58 -0400 In-Reply-To: <20200607210029.30601-1-roberto.sassu@huawei.com> References: <20200607210029.30601-1-roberto.sassu@huawei.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.687 definitions=2020-06-08_12:2020-06-08,2020-06-08 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 impostorscore=0 mlxscore=0 adultscore=0 clxscore=1015 cotscore=-2147483648 malwarescore=0 spamscore=0 phishscore=0 bulkscore=0 mlxlogscore=984 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006080097 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Roberto, On Sun, 2020-06-07 at 23:00 +0200, Roberto Sassu wrote: > Commit 6cc7c266e5b4 ("ima: Call ima_calc_boot_aggregate() in > ima_eventdigest_init()") added a call to ima_calc_boot_aggregate() so that > the digest can be recalculated for the boot_aggregate measurement entry if > the 'd' template field has been requested. For the 'd' field, only SHA1 and > MD5 digests are accepted. > > Given that ima_eventdigest_init() does not have the __init annotation, all > functions called should not have it. This patch removes __init from > ima_pcrread(). > > Cc: stable@vger.kernel.org > Fixes: 6cc7c266e5b4 ("ima: Call ima_calc_boot_aggregate() in ima_eventdigest_init()") > Reported-by: Linus Torvalds > Signed-off-by: Roberto Sassu Thank you for fixing this so quickly!  Jerry, Bruno, thank you for the Reviews.  This patch is in Linus' tree as: 8b8c704d913b ("ima: Remove __init annotation from ima_pcrread()". Mimi