Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2430708imm; Sat, 15 Sep 2018 17:33:52 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY4xht5kWDwii+i/u8ttY8Kgu9eAkm8jX8jPB6cf3bKG+s5FGsKqR81mgcyLJdCjLYAvjak X-Received: by 2002:a63:3207:: with SMTP id y7-v6mr17820278pgy.101.1537058032853; Sat, 15 Sep 2018 17:33:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537058032; cv=none; d=google.com; s=arc-20160816; b=rJowEf/5vSzGGrtpcfV5kCUmDh1oWW1o2UQKkm5zMQ1nZcNDGMtFIlXu44K/FcD7oH 2jDnT6LamKOGsjxw/pI5edUULmXmL1Q/9tQmNume7R8H2BSLnnbrw+xxndTDYuyehdWz MwdWbs6xJ6KSo+bOSWfAmjMCwhGCZR5ZN9idS6O3CvxFiPzdouftxDNs9KtD0VlK/a5J 52l27O4YYdeqUaYNldVhoj6S+sZ/5GTtAZwzJW9QxxkJ5qruNdwbLt/cjSyOSWG0+Cka 8UU2t48qPCwB44w3h4JOdBcGnJjHyrMFHDhxVAcpqPeF5XB705m63KdSoZRnvL1PYNvA 885A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=jb16JJKYPrUkwwf+IIiV9x2fMWSaJBPCjHmkUCeoEUA=; b=ULUWFy75H3xlCAxqYw3S5b0ctegv4Npq/zMMPJxjdE2XCxk6kPkylek0RYoK9vu3zw 15Ps785OWBM1V2oK7euBEUMeoBhTSdRVZXQUn7ogeuNvYTI0rhrL2YrcNNNmiVMpM7Vl fRBElME8mTeKXx9VVrjKzeSXGQ2EtCDCuzr2zT4McszI1ej0u2uDJi+u43XaH5UVkeXF M4UBetHKbA3vVTXBNwUEH9hx9SL8eg4m6paMp1iQS/AkI4/FWB9o8KyCSB9I2vQIJUoZ xE7A8a7NltQx7nlY5Uw1xe3lrEdd+nULfsBOM+QU7sxHMXBmXgeYYRo9BhfM0qcyyWzU vNyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Dbo5EBYA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l63-v6si11710231plb.166.2018.09.15.17.33.38; Sat, 15 Sep 2018 17:33:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Dbo5EBYA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728134AbeIPFwD (ORCPT + 99 others); Sun, 16 Sep 2018 01:52:03 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:36456 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728020AbeIPFwC (ORCPT ); Sun, 16 Sep 2018 01:52:02 -0400 Received: by mail-pf1-f194.google.com with SMTP id b11-v6so5933600pfo.3 for ; Sat, 15 Sep 2018 17:31:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jb16JJKYPrUkwwf+IIiV9x2fMWSaJBPCjHmkUCeoEUA=; b=Dbo5EBYAImPBD30afpw2UwkLCmYG0+qSGkSoO1j88KP43fd8dvD1lMtqISHtIwgDLP owuLG44J3rybcFPZaeQTsbn1XY7Fykn93fno4oHTrcUJ9ZrZTd1zQBsw0a0CiXgWlKu1 F+5wDsTeC1uRGsiqOoBYEKBfRd5O7wCmyT5tI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jb16JJKYPrUkwwf+IIiV9x2fMWSaJBPCjHmkUCeoEUA=; b=kTFmDEWiqanJqf8ucdmHyb8uCs/fec4WVAACPIwskEOieCZGfj1BsiWmjLT211z7Zr 7+yqGG3xTzmRI3VXPkoQtzEfEyK9ZYDONmSpn5UYXJc37JIKj2n8LshtvTZ7aSbywutT q1XtcF2EcUtmM2rafFq2kaxgM/m2B3D5F/w0cCPXmHjw1JfeXWM2v1I13YMjHkmq5wLy dPuqeMEw2+jrlyiIK/JWMl7nUyQN6UbjQwfj8PTxiURtXQXo7UsPjbPpraKgyNXdGbuu 9pKhwQX2FL4tEPAc+4pMU5uPAv0+evm3MJkcaTn5fGqeqhtB6i6+VZFVZjdXkECvlu56 +scg== X-Gm-Message-State: APzg51BEgZe3IzKkzZrPDa421P55/NUpP3yRchrvE5Td8UacxtwTQ7P8 Y4GBFab8Svs4d36oGZQHjKtglg== X-Received: by 2002:a63:6385:: with SMTP id x127-v6mr17867638pgb.413.1537057866487; Sat, 15 Sep 2018 17:31:06 -0700 (PDT) Received: from www.outflux.net (173-164-112-133-Oregon.hfc.comcastbusiness.net. [173.164.112.133]) by smtp.gmail.com with ESMTPSA id w5-v6sm12814326pfn.44.2018.09.15.17.31.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 15 Sep 2018 17:31:03 -0700 (PDT) From: Kees Cook To: James Morris Cc: Kees Cook , Casey Schaufler , John Johansen , Tetsuo Handa , Paul Moore , Stephen Smalley , "Schaufler, Casey" , LSM , LKLM Subject: [PATCH 03/18] LSM: Remove initcall tracing Date: Sat, 15 Sep 2018 17:30:44 -0700 Message-Id: <20180916003059.1046-4-keescook@chromium.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180916003059.1046-1-keescook@chromium.org> References: <20180916003059.1046-1-keescook@chromium.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Kees Cook --- security/security.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/security/security.c b/security/security.c index d49d5ff8be4b..913eb73ff3f9 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++; } } -- 2.17.1