Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1240788 > unrolled thread

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

Started byChris Metcalf <cmetcalf@ezchip.com>
First post2015-10-06 19:40 +0200
Last post2015-10-06 19:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] strscpy: zero any trailing garbage bytes in the  destination Chris Metcalf <cmetcalf@ezchip.com> - 2015-10-06 19:40 +0200

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

FromChris Metcalf <cmetcalf@ezchip.com>
Date2015-10-06 19:40 +0200
SubjectRe: [PATCH] strscpy: zero any trailing garbage bytes in the destination
Message-ID<qgEnw-4wt-25@gated-at.bofh.it>
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()
before we can do this.  It's pretty trivial in general, but not all
platforms have it now.  I'll post a patch to fix this as needed,
which should be taken before this patch to avoid git bisect
failures.

I'll also see about fixing some skew in platforms that are
either newer than the patch (h8300) or added word-at-a-time.h
since the original patch (powerpc, tile).

-- 
Chris Metcalf, EZChip Semiconductor
http://www.ezchip.com

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web