From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Johansen Subject: Re: [PATCH security-next v3 04/29] LSM: Remove initcall tracing Date: Mon, 1 Oct 2018 14:07:55 -0700 Message-ID: References: <20180925001832.18322-1-keescook@chromium.org> <20180925001832.18322-5-keescook@chromium.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20180925001832.18322-5-keescook@chromium.org> Content-Language: en-GB Sender: linux-kernel-owner@vger.kernel.org To: Kees Cook , James Morris Cc: "Serge E. Hallyn" , Abderrahmane Benbachir , Steven Rostedt , linux-security-module@vger.kernel.org, Casey Schaufler , Tetsuo Handa , Paul Moore , Stephen Smalley , "Schaufler, Casey" , Jonathan Corbet , linux-doc@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: linux-arch.vger.kernel.org On 09/24/2018 05:18 PM, Kees Cook wrote: > This partially reverts commit 58eacfffc417 ("init, tracing: instrument > security and console initcall trace events") since security init calls > are about to no longer resemble regular init calls. > > Cc: James Morris > Cc: "Serge E. Hallyn" > Cc: Abderrahmane Benbachir > Cc: Steven Rostedt (VMware) > Cc: linux-security-module@vger.kernel.org > Signed-off-by: Kees Cook Reviewed-by: John Johansen though I do think it would be a good idea to add a new set of trace points, but that can come as a separate patch > --- > security/security.c | 8 +------- > 1 file changed, 1 insertion(+), 7 deletions(-) > > diff --git a/security/security.c b/security/security.c > index 892fe6b691cf..41a5da2c7faf 100644 > --- a/security/security.c > +++ b/security/security.c > @@ -30,8 +30,6 @@ > #include > #include > > -#include > - > #define MAX_LSM_EVM_XATTR 2 > > /* Maximum number of letters for an LSM name string */ > @@ -47,17 +45,13 @@ static __initdata char chosen_lsm[SECURITY_NAME_MAX + 1] = > > static void __init do_security_initcalls(void) > { > - int ret; > initcall_t call; > initcall_entry_t *ce; > > ce = __start_lsm_info; > - trace_initcall_level("security"); > while (ce < __end_lsm_info) { > call = initcall_from_entry(ce); > - trace_initcall_start(call); > - ret = call(); > - trace_initcall_finish(call, ret); > + call(); > ce++; > } > } > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from youngberry.canonical.com ([91.189.89.112]:51015 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725936AbeJBDrm (ORCPT ); Mon, 1 Oct 2018 23:47:42 -0400 Subject: Re: [PATCH security-next v3 04/29] LSM: Remove initcall tracing References: <20180925001832.18322-1-keescook@chromium.org> <20180925001832.18322-5-keescook@chromium.org> From: John Johansen Message-ID: Date: Mon, 1 Oct 2018 14:07:55 -0700 MIME-Version: 1.0 In-Reply-To: <20180925001832.18322-5-keescook@chromium.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-arch-owner@vger.kernel.org List-ID: To: Kees Cook , James Morris Cc: "Serge E. Hallyn" , Abderrahmane Benbachir , Steven Rostedt , linux-security-module@vger.kernel.org, Casey Schaufler , Tetsuo Handa , Paul Moore , Stephen Smalley , "Schaufler, Casey" , Jonathan Corbet , linux-doc@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <20181001210755.7wR-hR3ejUxnikltU2kZO_1nWFlRb-Q2-XlS14ZL_eM@z> On 09/24/2018 05:18 PM, Kees Cook wrote: > This partially reverts commit 58eacfffc417 ("init, tracing: instrument > security and console initcall trace events") since security init calls > are about to no longer resemble regular init calls. > > Cc: James Morris > Cc: "Serge E. Hallyn" > Cc: Abderrahmane Benbachir > Cc: Steven Rostedt (VMware) > Cc: linux-security-module@vger.kernel.org > Signed-off-by: Kees Cook Reviewed-by: John Johansen though I do think it would be a good idea to add a new set of trace points, but that can come as a separate patch > --- > security/security.c | 8 +------- > 1 file changed, 1 insertion(+), 7 deletions(-) > > diff --git a/security/security.c b/security/security.c > index 892fe6b691cf..41a5da2c7faf 100644 > --- a/security/security.c > +++ b/security/security.c > @@ -30,8 +30,6 @@ > #include > #include > > -#include > - > #define MAX_LSM_EVM_XATTR 2 > > /* Maximum number of letters for an LSM name string */ > @@ -47,17 +45,13 @@ static __initdata char chosen_lsm[SECURITY_NAME_MAX + 1] = > > static void __init do_security_initcalls(void) > { > - int ret; > initcall_t call; > initcall_entry_t *ce; > > ce = __start_lsm_info; > - trace_initcall_level("security"); > while (ce < __end_lsm_info) { > call = initcall_from_entry(ce); > - trace_initcall_start(call); > - ret = call(); > - trace_initcall_finish(call, ret); > + call(); > ce++; > } > } >