Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5545112pxb; Wed, 26 Jan 2022 14:39:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJz9R0UYh5/vPePka6pRVEQHr5LieUH8gOnskdaO21meKOR1HZ4EvPs8Q9T4e7ii0rURCZUr X-Received: by 2002:aa7:c6c8:: with SMTP id b8mr1063310eds.37.1643236755364; Wed, 26 Jan 2022 14:39:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643236755; cv=none; d=google.com; s=arc-20160816; b=PmWxNnG3SnyCg24yBcXRGqRg42biJbSw3vv9kKH6kl64i1b/oVuurHXkxzjB4llIbx JGdH3/diRtp+n3A/Ckj/M9J+GAqfJYZldoZYge2QSx+31CWr4g75CiF9nTU1xpX5sbR1 DKAwy4LT7FE41+87EdKp16aAxS+PAqOnj6b+Jm05VQyD+fqs8QaEeTRBDVenLx2C6pAH Bf0qTkn+S5I8XojnhwfIWKc4jLpHK1Bix0g1e/DanYfKf8PCImpFksg4OkS3+O14cxjf 1f3zshL5X0l7XnkvyJbW82gsaAy1XIrWyUfVERsZ2sYTIO3vzbvDYAOYiAhZVGRRQbki JT8Q== 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=dW4Xfm1RyKPHQDc8kPEDZPla/XqBs+PgxLbMYhtqi0w=; b=enk+II32Qo68iZgD5kQiUYHEuHBWav6PoMZ085T1MSCn9eRfSDAF5hLjLsfap8IzZr jqomBkhSBlq40t39NHTEu7jU+FnApmGrjuZ/EWOHBVxuB49SXsm5lAA6KfDKQfVAqKZv nwM/oQPlMf3UbF+kZlAnjDk6dEFx3cHz6eIPOHWe0s+M0YQOsclaljl0mVdyGNvDjpzD P5+NxJRlQGSeTyXvuEYLRU6Le7to8xW+8zUdnfNnay8DMWoY+jPBjVaLZy6jsFWcbq0Q LYp+uJ0dgohfHY4JtCfmjuu4t4QsgmCD+Z/YSGBv2DglQKntqi4lhomX235JYZ+Mtn3J V3Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sZQnxQfR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nb9si309614ejc.38.2022.01.26.14.38.50; Wed, 26 Jan 2022 14:39:15 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sZQnxQfR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230242AbiAZUWI (ORCPT + 99 others); Wed, 26 Jan 2022 15:22:08 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:54246 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229519AbiAZUWH (ORCPT ); Wed, 26 Jan 2022 15:22:07 -0500 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 ams.source.kernel.org (Postfix) with ESMTPS id 227D0B81B6E; Wed, 26 Jan 2022 20:22:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4EB97C340E3; Wed, 26 Jan 2022 20:22:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643228524; bh=WsTmQRB9nSjPKXIyrDKBXBV/01CDcV2wZlkbTor2q54=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sZQnxQfRT6oRIrPaJLsyrzjKl7MbDc6MfalqgEGWeQNHZxvjBn/HDO3eIKl7Hv3Cq /YzIDpWAgGR8J3RjiayHHqugCvAAqKY45N9na4Dv32naFibtphEx1tKwWa7HpEoxMv I70sIe3qO8oytCQ0UWBTUnUGeYZI9VezoxX3kgbvJNqfcy5YfudWYpDadNpS8wvwjK JCQl++vPkFzCByeVsKH7KB1Eebl2zdZyVrW+cKG6lreJ3duIBVgd8ZOxav2PSiiDG7 h9aOf3Z19DdsbVpBvd2yVsOERIb8ONpIqTqQDYcgt/zWaCDZJItOXTYyjvq74e13Zq AiR6NXFIq6QTw== Date: Wed, 26 Jan 2022 22:21:42 +0200 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: <20220126184155.220814-1-dave.kleikamp@oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. BR, Jarkko