diff options
author | Geert Uytterhoeven <[email protected]> | 2018-10-11 10:42:48 +0200 |
---|---|---|
committer | Petr Mladek <[email protected]> | 2018-10-12 11:24:41 +0200 |
commit | ec12bc2909f9759747ab5ad3709472353c43a750 (patch) | |
tree | 7c3bca08162b8d12fc2aa26557ded249c1f1ac4e /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 9073dac14e397f26603b14d5c0929186a0404a53 (diff) |
lib/vsprintf: Hash legacy clock addresses
On platforms using the Common Clock Framework, "%pC" prints the clock's
name. On legacy platforms, it prints the unhashed clock's address,
potentially leaking sensitive information regarding the kernel layout in
memory.
Avoid this leak by printing the hashed address instead. To distinguish
between clocks, a 32-bit unique identifier is as good as an actual
pointer value.
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