From mboxrd@z Thu Jan 1 00:00:00 1970 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 242CDC19F2A for ; Thu, 11 Aug 2022 12:18:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234164AbiHKMR7 (ORCPT ); Thu, 11 Aug 2022 08:17:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234961AbiHKMRp (ORCPT ); Thu, 11 Aug 2022 08:17:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FD6390C7C for ; Thu, 11 Aug 2022 05:17:44 -0700 (PDT) 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 154E961387 for ; Thu, 11 Aug 2022 12:17:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18CD2C433C1; Thu, 11 Aug 2022 12:17:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660220263; bh=KH4mObGhRms5ZZ50BNpULdlzIav57A1QFB5Ry2HO0Hg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tB81CCw1NtvAKaPW5bE7dqev2lMhAPiLkv3G35zzOxauAwsld5rK0AjEH8uj3FqMo zhNA0bGMhbZ79F9CY5+ONB5bs99XACCZUu4Zt7itCTFhrBF0ERyrEqRSGsse3xxb5B kUghSRcbxWnbdCOmvkvPazHvdshVndYDpFJ2HBTY= Date: Thu, 11 Aug 2022 14:17:40 +0200 From: Greg KH To: Alexander Grund Cc: stable@vger.kernel.org, Tetsuo Handa Subject: Re: [PATCH 4.9 1/1] LSM: Initialize security_hook_heads upon registration. Message-ID: References: <20220811115340.137901-1-theflamefire89@gmail.com> <20220811115340.137901-2-theflamefire89@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220811115340.137901-2-theflamefire89@gmail.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Thu, Aug 11, 2022 at 01:53:40PM +0200, Alexander Grund wrote: > From: Tetsuo Handa > > commit 3dfc9b02864b19f4dab376f14479ee4ad1de6c9e upstream. > > "struct security_hook_heads" is an array of "struct list_head" > where elements can be initialized just before registration. > > There is no need to waste 350+ lines for initialization. Let's > initialize "struct security_hook_heads" just before registration. > > Signed-off-by: Tetsuo Handa > Acked-by: Kees Cook > Cc: John Johansen > Cc: Kees Cook > Cc: Paul Moore > Cc: Stephen Smalley > Cc: Casey Schaufler > Cc: James Morris > Signed-off-by: James Morris > [ bp: 4.9 backported: Adjust for changed hooks and missing __lsm_ro_after_init ] > Signed-off-by: Alexander Grund > --- > security/security.c | 359 +------------------------------------------- > 1 file changed, 7 insertions(+), 352 deletions(-) As this fixes no bug or real issue that anyone is having with 4.9, why is this needed? What devices and users would benefit from this that would need it for the next 5 months only before they move to 4.14.y? And why aren't those users on 4.14.y already? thanks, greg k-h