Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp633942pxp; Fri, 11 Mar 2022 11:10:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtHIbn6AzWO6aKWWkapxTm6xonaEO3FHMWm9cSuQirNrxBNyBGnZLjSeuc+a1YqQhmePDI X-Received: by 2002:a17:906:a213:b0:6b5:b0f9:7567 with SMTP id r19-20020a170906a21300b006b5b0f97567mr10018251ejy.129.1647025822516; Fri, 11 Mar 2022 11:10:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647025822; cv=none; d=google.com; s=arc-20160816; b=UXJY5QT+KgBpxBo8v/EAezUuSjSlvDVfjLx3neLXXU2xLP8Wj69Sui79v6Urqn6lPM olw7f5aeeMcvSpYqJMvWB0eqlM5gRiAgxUWHqAVZyCN5DosA9PLAwKzLeEcP7jy/qsT0 /mrcaAgr3Kou2lIDgZGCCJox/ZFDp0cnndxBz4TfdCyZRIKXIO+fpu8wAAeawd49NO0p AOtxId5WYzrVdWqDA4TxmrUizQORpsueHXcIveV/b5U9p4aXJkXOyfby9qzo0zedbyWO 451uziF2qUUN55V1cU6bXkjmtr+6gAyN6Y3/qRJ15bEu9HIZeIhxUJCIAHqhpmOGxvSi d8yA== 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 :message-id:date:subject:cc:to:from; bh=X7FPqoa9vRzhpHBtFI2qh5JrAoDkcjK8NutYyIJYLfM=; b=Oop+V8AAx5OhHdREU1/cTWzdbx0FG5N5ROy8T9zhFS0QKcrh1kxc0Syt8eJfz+CDEQ bMYuLVY1OLiRzs1zlPaVOEPaCKlORYyM6zCVEt7i3mh2jtTwk/7LJmexWa31DF+XYqze bvlCgNwEFaEDpKNJcm5ucu9j6JlJGqA2QbGRXy8XQoei52LwxaeHv0a6tKb/zQTOjVTj yF4dhv6NX1iKG92yJePUxwXJXJZTtizz2VNFlzhNhYjxLrRknXp2Aj6sFeOWc05fd+fy SOqupsfOYllyP+4ZahwgGV/MlNxg/OtcqDEzGOGPOcBQa56ZQtTx4hufhUByGdXM7Fht GOwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j18-20020a170906411200b006cfffe0553asi5476421ejk.133.2022.03.11.11.09.44; Fri, 11 Mar 2022 11:10:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242755AbiCKRst (ORCPT + 99 others); Fri, 11 Mar 2022 12:48:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344100AbiCKRss (ORCPT ); Fri, 11 Mar 2022 12:48:48 -0500 Received: from smtp-bc09.mail.infomaniak.ch (smtp-bc09.mail.infomaniak.ch [IPv6:2001:1600:3:17::bc09]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A1AB48324 for ; Fri, 11 Mar 2022 09:47:40 -0800 (PST) Received: from smtp-3-0000.mail.infomaniak.ch (unknown [10.4.36.107]) by smtp-2-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4KFYKy5vmNzMppQX; Fri, 11 Mar 2022 18:47:34 +0100 (CET) Received: from localhost (unknown [23.97.221.149]) by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4KFYKy1GL6zlj4cF; Fri, 11 Mar 2022 18:47:34 +0100 (CET) From: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= To: David Howells , David Woodhouse , Jarkko Sakkinen Cc: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , "David S . Miller" , Eric Snowberg , =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , Paul Moore , keyrings@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 0/2] Remove panic() from keyring init calls Date: Fri, 11 Mar 2022 18:47:39 +0100 Message-Id: <20220311174741.250424-1-mic@digikod.net> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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-crypto@vger.kernel.org As suggested by Jarkko [1], let's remove the panic() calls from the keyring initializations. This series applies on top of commit c9e54f38976a ("integrity: Only use machine keyring when uefi_check_trust_mok_keys is true"), which also includes 50c486fe3108 ("certs: Allow root user to append signed hashes to the blacklist keyring"). [1] https://lore.kernel.org/r/Yik0C2t7G272YZ73@iki.fi [2] https://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git/commit/?id=c9e54f38976a1c0ec69c0a6208b3fd55fceb01d1 Regards, Mickaël Salaün (2): certs: Remove panic() calls from blacklist_init() certs: Remove panic() calls from system_trusted_keyring_init() certs/blacklist.c | 27 +++++++++++++++++++++------ certs/system_keyring.c | 26 ++++++++++++++++++++------ 2 files changed, 41 insertions(+), 12 deletions(-) base-commit: c9e54f38976a1c0ec69c0a6208b3fd55fceb01d1 -- 2.35.1