public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Printk specifiers for __user pointers
@ 2020-11-20 16:44 Alan Stern
  2020-11-20 18:42 ` Steven Rostedt
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Stern @ 2020-11-20 16:44 UTC (permalink / raw)
  To: Petr Mladek, Steven Rostedt, Sergey Senozhatsky; +Cc: Kernel development list

To the VSPRINTF maintainers:

Documentation/core-api/printk-formats.rst lists a large number of format 
specifiers for pointers of various sorts.  Yet as far as I can see, 
there is no specifier meant for use with __user pointers.

The security implications of printing the true, unmangled value of a 
__user pointer are minimal, since doing so does not leak any kernel 
information.  So %px would work, but tools like checkpatch.pl don't like 
it.

Should a new specifier be added?  If not, should we simply use %px?

Alan Stern

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-11-24 21:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-20 16:44 Printk specifiers for __user pointers Alan Stern
2020-11-20 18:42 ` Steven Rostedt
2020-11-23  9:53   ` Petr Mladek
2020-11-23 14:11     ` Steven Rostedt
2020-11-24 21:53     ` Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox