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

2018-10-12 Thread Petr Mladek
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 l

[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 betwee