Re: [PATCH v2 2/3] lib/vsprintf: Hash legacy clock addresses
From: Petr Mladek <pmladek@suse.com>
Date: 2018-10-12 10:39:48
Also in:
lkml
From: Petr Mladek <pmladek@suse.com>
Date: 2018-10-12 10:39:48
Also in:
lkml
On Thu 2018-10-11 10:42:48, Geert Uytterhoeven wrote:
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")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Petr Mladek <pmladek@suse.com>I have pushed this patch into printk.git, branch for-4.20-vsprintf-hash-fixes. Best Regards, Petr