Re: [PATCH v5] kptr_restrict for hiding kernel pointers

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dan Rosenberg
Date: Wednesday, December 22, 2010 - 10:35 am

On Wed, 2010-12-22 at 18:13 +0100, Ingo Molnar wrote:

I don't see a reason to ever use %pK to print to the syslog, since
reading it is now optionally protected with dmesg_restrict, and
stripping pointers from the syslog will cripple any post-mortem
debugging for everyone.  I understand the desire to prevent things from
breaking even if it's used incorrectly, but I'm not really convinced
that this would break anything even in this scenario.  The WARN_ONCE
will prevent any unbounded recursion.  I'm just not clear on how this
could cause a crash.


If it's used in IRQ context and its output needs to be read by a
userspace utility using %p to parse, this will break it.

-Dan


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v5] kptr_restrict for hiding kernel pointers, Dan Rosenberg, (Wed Dec 22, 10:00 am)
Re: [PATCH v5] kptr_restrict for hiding kernel pointers, Ingo Molnar, (Wed Dec 22, 10:13 am)
Re: [PATCH v5] kptr_restrict for hiding kernel pointers, Dan Rosenberg, (Wed Dec 22, 10:17 am)
Re: [PATCH v5] kptr_restrict for hiding kernel pointers, Dan Rosenberg, (Wed Dec 22, 10:19 am)
Re: [PATCH v5] kptr_restrict for hiding kernel pointers, Dan Rosenberg, (Wed Dec 22, 10:35 am)
Re: [PATCH v5] kptr_restrict for hiding kernel pointers, Valdis.Kletnieks, (Wed Dec 22, 2:43 pm)