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 X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36799C432C0 for ; Mon, 2 Dec 2019 23:54:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0D754206E1 for ; Mon, 2 Dec 2019 23:54:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725899AbfLBXy3 (ORCPT ); Mon, 2 Dec 2019 18:54:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:44048 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725775AbfLBXy3 (ORCPT ); Mon, 2 Dec 2019 18:54:29 -0500 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C3F2E2054F; Mon, 2 Dec 2019 23:54:27 +0000 (UTC) Date: Mon, 2 Dec 2019 18:54:26 -0500 From: Steven Rostedt To: Matthew Garrett Cc: dann frazier , Linux Kernel Mailing List , LSM List , Seth Forshee , James Morris , Linux API , Ben Hutchings , Al Viro , Linus Torvalds Subject: Re: tracefs splats in lockdown=confidentiality mode Message-ID: <20191202185426.432ca21b@gandalf.local.home> In-Reply-To: References: <20191101210803.GA9841@xps13.dannf> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: On Mon, 2 Dec 2019 15:31:52 -0800 Matthew Garrett wrote: > On Fri, Nov 1, 2019 at 2:08 PM dann frazier wrote: > > > [ 1.763630] Lockdown: swapper/0: use of tracefs is restricted; see man kernel_lockdown.7 > > This is expected. > > > [ 2.913934] ------------[ cut here ]------------ > > [ 2.918435] Could not register function stat for cpu 0 > > [ 2.923717] WARNING: CPU: 1 PID: 1 at kernel/trace/ftrace.c:987 ftrace_init_tracefs_toplevel+0x168/0x1bc > > This is not. I'll look into it. I think it has to do with ftrace triggering WARN_ON() if it fails to create files. We don't want this to happen if it fails because of lockdown. I'm already looking into it. Thanks! -- Steve