Re: [PATCH v2 3/3] strscpy: zero any trailing garbage bytes in the destination

2015-10-07 Thread Ingo Molnar
* Chris Metcalf wrote: > It's possible that the destination can be shadowed in userspace > (as, for example, the perf buffers are now). So we should take > care not to leak data that could be inspected by userspace. > > Signed-off-by: Chris Metcalf Please always preserve credits for who foun

[PATCH v2 3/3] strscpy: zero any trailing garbage bytes in the destination

2015-10-06 Thread Chris Metcalf
It's possible that the destination can be shadowed in userspace (as, for example, the perf buffers are now). So we should take care not to leak data that could be inspected by userspace. Signed-off-by: Chris Metcalf --- lib/string.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff