Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp18638883ybl; Fri, 3 Jan 2020 06:16:47 -0800 (PST) X-Google-Smtp-Source: APXvYqwxwNYzEHUGktYZ/TG+7sgkMZ+KuqhQ6apv9dDlV3gE0hp9bj4NGjCg8CN86LyRYpD0aXKu X-Received: by 2002:a9d:6211:: with SMTP id g17mr91655797otj.168.1578061007659; Fri, 03 Jan 2020 06:16:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578061007; cv=none; d=google.com; s=arc-20160816; b=XzVYwCV7GDuFkW0Wjd8qMp1tnnhC6xvjZWmo+YecMMvxAb4Nz2B/DHRZewPhk4EFjA IwY6ACrGXHvoKBVy18WiJff1iAQ303b9IVWwuSd3sm6qW3/UzgPc4p2cfCGS1yRz63R4 Z59OP8bKfwyeQlmJAHjeaKtE0shIQVK9V/tlPtTAV3PoqT7UvRYNxiAeH4ntrR1GlCYh u3wMXWpD0fT6Ns2k+fd1m1jlJQ2lPSq+9Xs57CMG+8iISTFE3KK3xVQJRWe4KMl/oOyW QUyQyNH4kLsxfEoEtNA3SY+UIgO4MsX6zCk/vkEejZQzwIauNtW3FD7cp5gRR/VD5g8N JMOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:cc:to:from:subject; bh=k8XDkD2JKlJlmue2y1R7lYQ7vCn0iF1azOBwxlj2zaI=; b=Yg3KZuQbPXMCN8G6y4GoiObEH01Xegyu/8QAnUkfwNsI7Ez3W3TPE890zUtoSprR3i fmWbTk4l7J5TiCp+Uoqsb8qDDfRaEePeLnYoSxJpp2GwQaGmqm4wAOGk/e+eCKeC1dMx DGRtQxkuQec4coagvbuwFJSOKcFcJG04k7QJI7pte4anlilkZ3DIcXLLLJqGiVzS+sOa BGj1xI9178b7nUbSJ87PxgSVH/IfuYjbIqnE5WjpjY9BSjW/z3R6vw1T2E5n1Nyn6Dg1 EQ+hZhHM/uMuBtkfgcMkPuzsVJRwhMROmoNVPghxc+XHTnaVNLR25zW3UsFSKYe9EL95 RREg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id b20si30887217otf.199.2020.01.03.06.16.34; Fri, 03 Jan 2020 06:16:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727813AbgACOPr (ORCPT + 99 others); Fri, 3 Jan 2020 09:15:47 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:60250 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727523AbgACOPr (ORCPT ); Fri, 3 Jan 2020 09:15:47 -0500 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 003ECJHI110425 for ; Fri, 3 Jan 2020 09:15:45 -0500 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0b-001b2d01.pphosted.com with ESMTP id 2x9wwve6rk-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 03 Jan 2020 09:15:44 -0500 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 3 Jan 2020 14:15:43 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 3 Jan 2020 14:15:40 -0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 003EFd7031523070 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 3 Jan 2020 14:15:39 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8976EA4040; Fri, 3 Jan 2020 14:15:39 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E7FB3A404D; Fri, 3 Jan 2020 14:15:37 +0000 (GMT) Received: from localhost.localdomain (unknown [9.80.213.69]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 3 Jan 2020 14:15:37 +0000 (GMT) Subject: Re: [PATCH v6 1/3] IMA: Define workqueue for early boot key measurements From: Mimi Zohar To: Lakshmi Ramasubramanian , James.Bottomley@HansenPartnership.com, linux-integrity@vger.kernel.org Cc: eric.snowberg@oracle.com, dhowells@redhat.com, mathew.j.martineau@linux.intel.com, matthewgarrett@google.com, sashal@kernel.org, jamorris@linux.microsoft.com, linux-kernel@vger.kernel.org, keyrings@vger.kernel.org Date: Fri, 03 Jan 2020 09:15:37 -0500 In-Reply-To: <20200103055608.22491-2-nramas@linux.microsoft.com> References: <20200103055608.22491-1-nramas@linux.microsoft.com> <20200103055608.22491-2-nramas@linux.microsoft.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-cbid: 20010314-0008-0000-0000-000003463B2B X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20010314-0009-0000-0000-00004A6674CA Message-Id: <1578060937.5874.140.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2020-01-03_04:2020-01-02,2020-01-03 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 mlxlogscore=800 malwarescore=0 impostorscore=0 adultscore=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 spamscore=0 phishscore=0 bulkscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001030133 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lakshmi, On Thu, 2020-01-02 at 21:56 -0800, Lakshmi Ramasubramanian wrote: > Measuring keys requires a custom IMA policy to be loaded. > Keys created or updated before a custom IMA policy is loaded should > be queued and the keys should be processed after a custom policy > is loaded. > > This patch defines workqueue for queuing keys when a custom IMA policy > has not yet been loaded. > > A flag namely ima_process_keys is used to check if the key should be > queued or should be processed immediately. > > Signed-off-by: Lakshmi Ramasubramanian > Reported-by: kernel test robot > Reported-by: kbuild test robot The changes based on "kernel test robot" reports are properly folded into this patch, but unless the tag - "Acked-by", "Reported-by" - is qualified, it refers to the entire patch.  Let's limit it as: Reported-by: kernel test robot # sleeping function called from invalid context Reported-by: kbuild test robot # sparse symbol ima_queued_key() should be static Mimi