lkml.org 
[lkml]   [2015]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86, cpuinfo x86_model_id whitespace cleanup
On Tue, May 19, 2015 at 01:16:23PM -0700, Andy Lutomirski wrote:
> It's not just chunk size; it's the direction. If the dest starts
> after the source but overlaps it and you copy forwards, then you can
> clobber the end of the source before you read it. memmove is

Some things should simply be done solely in userspace :-)

> specifically intended to avoid this.
>
> Would it be possible to just use memmove directly?

Yeah.

Prarit, care to send a v2?

Thanks.

--
Regards/Gruss,
Boris.

ECO tip #101: Trim your mails when you reply.
--


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