Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2542EC6FD1C for ; Mon, 13 Mar 2023 11:49:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231164AbjCMLtY (ORCPT ); Mon, 13 Mar 2023 07:49:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231154AbjCMLtL (ORCPT ); Mon, 13 Mar 2023 07:49:11 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D033217CCB for ; Mon, 13 Mar 2023 04:48:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678708125; x=1710244125; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=Wa9svA1I+8OZGsRu2QKTnWAj+EdcwmRsgApr32RKku8=; b=iVj6fGZqYMJnTNx/l9sjayaqySQtOiTgnhTQDn7eeNXbihBA0iNcjhEk mBo6WYqNMAjLbzisV8GmrtbD8iRcgK39W16UsF4QMecbwjU80wDFy+D9M IwpE/tZeBHXtjsvdzMauzOBy8Ybz241EIcN1EuuFy7Hy4aCSLcDgeSYG2 DrVapXVbHq9yErp5blIJCfMtrGDkWqTKTHkwp8plTAu71FhmlugKqN/WS jXmcy7nljjxEe+amv7uksq8ivGV62iyIozOEDcwbohIJ5oglaG1d1ByxB xu2Q0GTuul3keFL86CCmxEx5IJ2k69IHfXuRcxY9X6SOsMuBGKhnXW1Y/ w==; X-IronPort-AV: E=McAfee;i="6500,9779,10647"; a="337147059" X-IronPort-AV: E=Sophos;i="5.98,256,1673942400"; d="scan'208";a="337147059" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2023 04:48:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10647"; a="681011113" X-IronPort-AV: E=Sophos;i="5.98,256,1673942400"; d="scan'208";a="681011113" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga007.fm.intel.com with ESMTP; 13 Mar 2023 04:48:42 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pbgfQ-002bd5-08; Mon, 13 Mar 2023 13:48:40 +0200 Date: Mon, 13 Mar 2023 13:48:39 +0200 From: Andy Shevchenko To: Mirsad Goran Todorovac Cc: Paul Moore , Roberto Sassu , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Mimi Zohar , Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Casey Schaufler , Christian =?iso-8859-1?Q?G=F6ttsche?= , =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= , Frederick Lawler Subject: Re: [PATCH v1 1/2] LSM: add a release() hook for the clean exit cleanup of the LSM modules Message-ID: References: <20230310231107.10954-1-mirsad.todorovac@alu.unizg.hr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230310231107.10954-1-mirsad.todorovac@alu.unizg.hr> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 11, 2023 at 12:11:08AM +0100, Mirsad Goran Todorovac wrote: > The LSM modules, namely integrity, do not have a clean way to deallocate > resources allocated in the init() hook or later in their lifetime. The > resources are destroyed on kernel shutdown in an undefined order. > > This will allow a .release member per LSM module and calling proper > destructors in a well-behaved order. ... > Cc: Greg Kroah-Hartman > Cc: Mimi Zohar > Cc: Paul Moore > Cc: Thomas Wei?schuh > Cc: Casey Schaufler > Cc: Christian G?ttsche > Cc: Micka?l Sala?n > Cc: Frederick Lawler As I told you, try to use my script instead, run it as `ge2maintainer.sh -c 2 -v 2 HEAD~0 --annotate --cover-letter` (assuming your 2 patches are on the top of the current branch in the Git tree of Linux kernel source code). It will create a template for the cover letter, automatically applies To and Cc lists based on the MAINTAINERS database and sends them. -- With Best Regards, Andy Shevchenko