lkml.org 
[lkml]   [2020]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectPrintk specifiers for __user pointers
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

\
 
 \ /
  Last update: 2020-11-20 17:44    [W:0.046 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site