[PATCH v2 2/3] lib/vsprintf: Hash legacy clock addresses

2018-10-11 Thread Geert Uytterhoeven
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

[PATCH v2 2/3] lib/vsprintf: Hash legacy clock addresses

2018-10-11 Thread Geert Uytterhoeven
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