From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751614AbbESUb6 (ORCPT ); Tue, 19 May 2015 16:31:58 -0400 Received: from mail.skyhub.de ([78.46.96.112]:48541 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750825AbbESUb5 (ORCPT ); Tue, 19 May 2015 16:31:57 -0400 Date: Tue, 19 May 2015 22:31:48 +0200 From: Borislav Petkov To: Andy Lutomirski Cc: "linux-kernel@vger.kernel.org" , Fenghua Yu , Dave Hansen , Thomas Gleixner , Denys Vlasenko , Ingo Molnar , Brian Gerst , "H. Peter Anvin" , Igor Mammedov , the arch/x86 maintainers , Prarit Bhargava Subject: Re: [PATCH] x86, cpuinfo x86_model_id whitespace cleanup Message-ID: <20150519203148.GO4641@pd.tnic> References: <1432050210-32036-1-git-send-email-prarit@redhat.com> <20150519181334.GM4641@pd.tnic> <20150519192206.GN4641@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. --