Re: [PATCH] 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 > --- > Ingo, can you test this change in yo

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

2015-10-06 Thread Chris Metcalf
On 10/06/2015 12:47 PM, 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. Oops, we need to ensure platforms all have zero_bytemask() bef

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

2015-10-06 Thread kbuild test robot
Hi Chris, [auto build test ERROR on v4.3-rc4 -- if it's inappropriate base, please ignore] config: alpha-defconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.c

[PATCH] 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 --- Ingo, can you test this change in your Fedora+strlcpy boot test? I think it'