diff options
author | Geert Uytterhoeven <[email protected]> | 2018-10-11 10:42:49 +0200 |
---|---|---|
committer | Petr Mladek <[email protected]> | 2018-10-12 11:26:55 +0200 |
commit | 431bca24308c5a82575571023a7128a881f716b2 (patch) | |
tree | d6292005fad5736aac758907ae6b1f8370b95efb /tools/perf/scripts/python/net_dropmonitor.py | |
parent | ec12bc2909f9759747ab5ad3709472353c43a750 (diff) |
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/[email protected]
To: "Tobin C . Harding" <[email protected]>
To: Andrew Morton <[email protected]>
To: Jonathan Corbet <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions