Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3576368pxb; Mon, 21 Feb 2022 00:49:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzd/EUxPF+/mFZBJvC/4V1Ip+inVbo2OEwmNPzp3YAIdi/ymSkCF7/OCIRNGmInl4hcghxW X-Received: by 2002:a05:6402:4309:b0:410:db71:b5ce with SMTP id m9-20020a056402430900b00410db71b5cemr20380447edc.432.1645433379019; Mon, 21 Feb 2022 00:49:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645433379; cv=none; d=google.com; s=arc-20160816; b=Fs/MLvYAm66k0bAs4HPZJhsj1Ge2lM1n2AxxKLH+fFpK+NW6up1VxlQaa3GPA7aXrK PSDwaHGqbC3N++/A3WswQhVjqTqsACnyQ3ntMozHUws0XmYsJ2s5D1oztP5yIRERej+C x0Sc5FnNM0bBtWfbJXMzXFWeHElzJ8FoAgfhNKa4PzTACiVNB/Aj9/l1PRTaSNPg8dZu Y+cBFvRGpauuLsxgpoSF8h4Idj0llJhiCRUr+lb5WYAs337r4cFNqiJ5xlRR41+TqmxQ r2jWwOZNPaFHlClcA5Xw2II0TY0pCUQpRkwpBZs2Xs5mDr3QvCmkQar2j2Enm7I2lwxg +04g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yHUxeqbhE19GMY+P5EVwx2JTSdcjaDi6h+oeuIfp3/g=; b=yCjz5T77RFBp0dn2Xz7ZUnajRBOPQzO0m77w7QBvtfnRmvrK0y8gQg6BmE/c46Jy9g 83SgBTLy6LJ+qeY+LIjlgswRSdv84l5vLZg1Cy8O163Vn/cJFYU4A2G/LanxLdns1C9B +kyekZe+oxudddNsBoxBgRQynJztDegSOO3IYCQZ+Yuuse3V9JQpN/LTlWSXO/fPHGSY biR920V3zj0orGhPx2rbs9yMPJuiGUqmbuAvryFEhFm2LlXAPXFVzG1CLjSU8OyplCZQ +bxI3Obnc1y32k36rY9ztr4qLLGXLDIZPyzVT0srqxjnNQLEvimZ19mYOGfpbb8OZTxQ quGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gC1VEDne; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c19si4328408ejz.353.2022.02.21.00.49.15; Mon, 21 Feb 2022 00:49:39 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=gC1VEDne; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245543AbiBUB5D (ORCPT + 99 others); Sun, 20 Feb 2022 20:57:03 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:38662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245530AbiBUB5B (ORCPT ); Sun, 20 Feb 2022 20:57:01 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5744F100C; Sun, 20 Feb 2022 17:56:39 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E71F261003; Mon, 21 Feb 2022 01:56:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBDE7C340E8; Mon, 21 Feb 2022 01:56:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645408598; bh=yq/OsN2UPgPqkLWDnB90Fn+UbNTw+6x3zjF9s9FDhHc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gC1VEDneoqZafgZU9gPv/kjrpPE2aYhKDXHjRda0CzsDlYrlPKRz/afdK5Wfvp4Hp 5/VYBmczFIQ9ec5pgbcLkhNT699e4rqY75++9l+EOHp0eaQFECBA0IbIKbRafiEZwN A9lTUjj7PRL3x6py6peO6hiigXCVLbz5KFl1s14NOs+ZqNp6oYAzAsKq0j0awIjPnR cKEn1X88kEp+v6zixbbTdrkjAxGDo/ZkPJRotBc85wPMn5EtM6wlTXN/4trJRhQXML elIy55vz3FZa2YbWYi2SHZROEU2dZ0wnLlRm7TBI/Wb4ZH+X8xm4LQWeIPbgwrwBLd H9jlp9Ijkcx2A== Date: Mon, 21 Feb 2022 02:57:16 +0100 From: Jarkko Sakkinen To: Dave Kleikamp Cc: linux-kernel@vger.kernel.org, Sumit Garg , James Bottomley , Mimi Zohar , David Howells , James Morris , "Serge E. Hallyn" , linux-integrity@vger.kernel.org, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] KEYS: trusted: Avoid calling null function trusted_key_exit Message-ID: References: <20220126184155.220814-1-dave.kleikamp@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Mon, Feb 07, 2022 at 11:40:23AM -0600, Dave Kleikamp wrote: > On 1/26/22 2:21PM, Jarkko Sakkinen wrote: > > On Wed, Jan 26, 2022 at 12:41:55PM -0600, Dave Kleikamp wrote: > > > If one loads and unloads the trusted module, trusted_key_exit can be > > > NULL. Call it through static_call_cond() to avoid a kernel trap. > > > > > > Fixes: 5d0682be3189 ("KEYS: trusted: Add generic trusted keys framework") > > > > > > Signed-off-by: Dave Kleikamp > > > > Please re-send with cc stable and the empty line removed and I'll pick it. > > I re-sent a v2, but haven't seen any response from you. > > I can send it again, or feel free to clean up those lines yourself. > > Thanks, > Shaggy I've applied the patch. Thank you, and apologies for the latency. BR, Jarkko