lkml.org 
[lkml]   [2018]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4 7/9] vsprintf: Factor out %pO handler as kobject_string()
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

\
 
 \ /
  Last update: 2018-04-05 01:44    [W:0.084 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site