From: Steven Rostedt <rostedt@goodmis.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Kees Cook <keescook@chromium.org>,
"Tobin C. Harding" <me@tobin.cc>,
"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>,
Andy Lutomirski <luto@kernel.org>, Joe Perches <joe@perches.com>,
Network Development <netdev@vger.kernel.org>,
David Miller <davem@davemloft.net>,
"kernel-hardening@lists.openwall.com"
<kernel-hardening@lists.openwall.com>,
"Jason A. Donenfeld" <Jason@zx2c4.com>,
"Theodore Ts'o" <tytso@mit.edu>,
Paolo Bonzini <pbonzini@redhat.com>,
Tycho Andersen <tycho@docker.com>,
"Roberts, William C" <william.c.roberts@intel.com>,
Tejun Heo <tj@kernel.org>,
Jordan Glover <Golden_Miller83@protonmail.ch>,
Greg KH <gregkh@linuxfoundation.org>,
Petr Mladek <pmladek@suse.com>, Ian Campbell <ijc@hellion.org.uk>,
Sergey Senozhatsky <serg
Subject: Re: [PATCH v3] scripts: add leaking_addresses.pl
Date: Tue, 7 Nov 2017 17:44:13 -0500 [thread overview]
Message-ID: <20171107174413.00e51a3f@gandalf.local.home> (raw)
In-Reply-To: <CA+55aFw-GgR7DmXsD1dmYWbxuVhg+u0oKwuwNEM4RnuVyA0NDw@mail.gmail.com>
On Tue, 7 Nov 2017 13:44:01 -0800
Linus Torvalds <torvalds@linux-foundation.org> wrote:
> > Looking other places that stand out, it seems like
> > /proc/lockdep_chains and /proc/lockdep (CONFIG_LOCKDEP=y) has a ton of
> > %p usage. It's unclear to me if a hash is sufficient for meaningful
> > debugging there?
>
> Maybe not, but that is also _so_ esoteric that I suspect the right fix
> is to just make it root-only readable.
Also note, I don't believe anyone should be running a LOCKDEP
configured kernel in a production (secured) environment. As it adds
quite a bit of overhead. It's something you run on test environments to
make sure it doesn't detect any possible deadlocks.
>
> I've never used it, we should check with people who have. I get the
> feeling that this is purely for PeterZ debugging.
I've used it. But then again, I also debug lockdep ;-)
>
> The very first commit that introduced that code actually has a
>
> (FIXME: should go into debugfs)
>
> so I suspect it never should have been user-readable to begin with. I
> guess it makes some things easier, but it really is *very* different
> from things like profiling.
Want me to whip up a patch to move the file?
-- Steve
>
> Profiling you often *cannot* do as root - some things you profile
> really shouldn't be run as root, and might even refuse to do so. So
> requiring you to be root just to get a kernel profile is very bad.
>
> But looking at lockdep stats? Yeah, 'sudo' isn't so big of a deal.
>
>
next prev parent reply other threads:[~2017-11-07 22:44 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1509945567-11801-1-git-send-email-me@tobin.cc>
2017-11-06 17:27 ` [PATCH v3] scripts: add leaking_addresses.pl Linus Torvalds
2017-11-06 17:41 ` Linus Torvalds
2017-11-06 21:15 ` Tobin C. Harding
2017-11-06 18:25 ` [kernel-hardening] " Pavel Vasilyev
2017-11-06 21:03 ` Tobin C. Harding
2017-11-07 21:22 ` Kees Cook
2017-11-07 21:44 ` Linus Torvalds
2017-11-07 22:08 ` Kees Cook
2017-11-07 22:44 ` Steven Rostedt [this message]
2017-11-08 8:20 ` Peter Zijlstra
2017-11-08 3:06 ` Tobin C. Harding
2017-11-08 2:05 ` Tobin C. Harding
2017-11-08 4:18 ` Tobin C. Harding
2017-11-08 3:24 ` Tobin C. Harding
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171107174413.00e51a3f@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=Golden_Miller83@protonmail.ch \
--cc=Jason@zx2c4.com \
--cc=davem@davemloft.net \
--cc=gregkh@linuxfoundation.org \
--cc=ijc@hellion.org.uk \
--cc=joe@perches.com \
--cc=keescook@chromium.org \
--cc=kernel-hardening@lists.openwall.com \
--cc=luto@kernel.org \
--cc=me@tobin.cc \
--cc=netdev@vger.kernel.org \
--cc=paulmck@linux.vnet.ibm.com \
--cc=pbonzini@redhat.com \
--cc=pmladek@suse.com \
--cc=tj@kernel.org \
--cc=torvalds@linux-foundation.org \
--cc=tycho@docker.com \
--cc=tytso@mit.edu \
--cc=william.c.roberts@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).