Re: [PATCH v4 7/9] vsprintf: Factor out %pO handler as kobject_string()
From: Sergey Senozhatsky
Date: Wed Apr 04 2018 - 19:43:43 EST
On (04/05/18 08:35), Sergey Senozhatsky wrote:
>
> Was this your intention?
>
Ah, it was. You mentioned it in the commit message
: In fact, this avoids leaking the address when invalid %pO format
: specifier is used. The old code fallen back to printing the
: non-hashed value.
Is it so? The default is
/* default is to _not_ leak addresses, hash before printing */
return ptr_to_id(buf, end, ptr, spec);
-ss