From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030964Ab2CANG7 (ORCPT ); Thu, 1 Mar 2012 08:06:59 -0500 Received: from mail-bk0-f46.google.com ([209.85.214.46]:56782 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030944Ab2CANG4 convert rfc822-to-8bit (ORCPT ); Thu, 1 Mar 2012 08:06:56 -0500 Authentication-Results: mr.google.com; spf=pass (google.com: domain of kjwinchester@gmail.com designates 10.204.143.151 as permitted sender) smtp.mail=kjwinchester@gmail.com; dkim=pass header.i=kjwinchester@gmail.com MIME-Version: 1.0 In-Reply-To: References: <1330041476-719-1-git-send-email-kjwinchester@gmail.com> <20120227115905.GB9943@elte.hu> <4F4C4D5C.70908@zytor.com> <20120228082422.GG21106@elte.hu> Date: Thu, 1 Mar 2012 09:06:55 -0400 Message-ID: Subject: Re: [PATCH v4 0/5] x86: Cleanup and simplify cpu-specific data From: Kevin Winchester To: "H. Peter Anvin" Cc: Ingo Molnar , Thomas Gleixner , Borislav Petkov , Randy Dunlap , Nick Bowler , linux-kernel@vger.kernel.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28 February 2012 04:31, H. Peter Anvin wrote: > Better yet, fix the problem... > It appears that some attempts have been made at fixing this problem already: https://lkml.org/lkml/2011/7/6/6 https://lkml.org/lkml/2011/7/7/480 So perhaps I can just turn off that config setting for now. I'm going away for a few days, but I'll try to fix up the patch series next week. > Ingo Molnar wrote: > >> >>* H. Peter Anvin wrote: >> >>> >In function ‘copy_from_user’, >>> >     inlined from ‘pktgen_if_write’ at net/core/pktgen.c:877:20: >>> >>>/home/kevin/linux/linux-2.6/arch/x86/include/asm/uaccess_32.h:211:26: >>> >error: call to ‘copy_from_user_overflow’ declared with attribute >>> >error: copy_from_user() buffer size is not provably correct >>> >make[2]: *** [net/core/pktgen.o] Error 1 >>> > >>> >On: >>> > >>> >gcc (GCC) 4.6.2 20120120 (prerelease) >>> > >>> >Is that my fault, or something else? >>> > >>> >Kevin >>> > >>> >>> That comes from compiling with warnings as errors.  Not that someone >>> shouldn't look at that kind of problem. >> >>Can probably be worked around by disabling: >> >>CONFIG_DEBUG_STRICT_USER_COPY_CHECKS >>