summaryrefslogtreecommitdiffstats
path: root/lib/seq_buf.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven2018-10-11 10:42:49 +0200
committerPetr Mladek2018-10-12 11:26:55 +0200
commit431bca24308c5a82575571023a7128a881f716b2 (patch)
treed6292005fad5736aac758907ae6b1f8370b95efb /lib/seq_buf.c
parentlib/vsprintf: Hash legacy clock addresses (diff)
downloadkernel-qcow2-linux-431bca24308c5a82575571023a7128a881f716b2.tar.gz
kernel-qcow2-linux-431bca24308c5a82575571023a7128a881f716b2.tar.xz
kernel-qcow2-linux-431bca24308c5a82575571023a7128a881f716b2.zip
lib/vsprintf: Hash printed address for netdev bits fallback
The handler for "%pN" falls back to printing the raw pointer value when using a different format than the (sole supported) special format "%pNF", potentially leaking sensitive information regarding the kernel layout in memory. Avoid this leak by printing the hashed address instead. Note that there are no in-tree users of the fallback. Fixes: ad67b74d2469d9b8 ("printk: hash addresses printed with %p") Link: http://lkml.kernel.org/r/20181011084249.4520-4-geert+renesas@glider.be To: "Tobin C . Harding" <me@tobin.cc> To: Andrew Morton <akpm@linux-foundation.org> To: Jonathan Corbet <corbet@lwn.net> Cc: linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'lib/seq_buf.c')
0 files changed, 0 insertions, 0 deletions