Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp2636501ybg; Fri, 5 Jun 2020 20:05:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9giWUu9+1T9bsoVQ+XcqTE16XKAPva94Talnaiz66JT1jiYgh1rUprEB26QPg//Nma1HS X-Received: by 2002:a17:907:42d5:: with SMTP id ng5mr11742045ejb.164.1591412733275; Fri, 05 Jun 2020 20:05:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591412733; cv=none; d=google.com; s=arc-20160816; b=MHQ6IXPmK5/Lq6MRyDKJ2rEOwyLC9jeIju15hRh2Iw/PneFjuqz2gva9Wby5Ii269x NCDJBPfdO0NPNoSxf845toHV+IDoXGuUfnq2Dr4fn8FLLuWeiti+hVBEOD7VSIbyXPAl R3in3FH/6V9UHGfGQhaQv2FjF5GoEl28vXE+nGh7lsGyljYTkfg6zo586aq2DG3JzhFe Un7PN/9sLDlG6gN6F7H9FZF0BjqQMv0JpxDNf+xx6Q1WKOgrnAVWwBSNV9WOEIl200d0 8KA+znB0Rkk4sBtgO7gUoEUhj1XVd9Clfc67kxTY6MYisKKRbwaMVhzZu26HY8DdZ1FZ IP1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=HBZilZKQbTdxmg68ehHNkCktRAwXXOSuxau7a+SfWQ8=; b=zviZKB5SAzi2luduJ4BVb6J6RsLlw8SPPUYBzjdilTQ1wFLavdc8PXkW7pqBjsNCs3 aiOM0P6I8QhxiCzZgJug+U8X732wqe2fBHPa+fAAHhrwv5eAdNQH5N/2wylg2KemWS5Y yO2aP8XXvn17c0xcl4Y24LzUf0W9I9xfNdIlesaAujDGOJyQwmUJwXJbxRmLX8YCLaC4 anWoS5AcxPnoYt93dsWrVHTnBM4j6BvufBafbot/4f5ag8A4RQlgmcW6Uy2Uxqk2p7fn ZZl6E2/1FLrkG/tQz1461B92UgPVa9i1wpclJHRLcFBa1FuGiepjAzB/ZUPDUhbpOVBA jMdw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e17si3220636edc.447.2020.06.05.20.05.10; Fri, 05 Jun 2020 20:05:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728561AbgFFDDS (ORCPT + 99 others); Fri, 5 Jun 2020 23:03:18 -0400 Received: from mga14.intel.com ([192.55.52.115]:15627 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728390AbgFFDDS (ORCPT ); Fri, 5 Jun 2020 23:03:18 -0400 IronPort-SDR: 1PBqU7sDNs4OOz5KaiqMstFDSwrFpOnYZ3UnHHTyPhlFXhFSBeL20t5YfceHktlcF/gT9fCsJ8 Qlbe5Uzea8pQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2020 20:03:18 -0700 IronPort-SDR: wEF+1kd51aRzfdSObmlDpRVOambjQk0OeFZRP2myEztEe1jvDy6ZrDWeWy22bg2VV21s7c7u/T UwKN/FYnPl2w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,478,1583222400"; d="scan'208";a="294885055" Received: from wdu1-mobl3.ccr.corp.intel.com (HELO [10.255.30.207]) ([10.255.30.207]) by fmsmga004.fm.intel.com with ESMTP; 05 Jun 2020 20:03:14 -0700 Subject: Re: [net] a6211caa63: dmesg.UBSAN:signed-integer-overflow_in_arch/x86/include/asm/atomic.h To: Peter Zijlstra , Eric Dumazet Cc: Yuqi Jin , "David S. Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , Jakub Kicinski , Jiri Pirko , Arvind Sankar , Jiong Wang , Shaokun Zhang , LKML , lkp@lists.01.org References: <20200605080929.GK12456@shao2-debian> <20200605140521.GD4117@hirez.programming.kicks-ass.net> From: "Chen, Rong A" Message-ID: Date: Sat, 6 Jun 2020 11:03:13 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200605140521.GD4117@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/5/2020 10:05 PM, Peter Zijlstra wrote: > On Fri, Jun 05, 2020 at 06:17:51AM -0700, Eric Dumazet wrote: >> On Fri, Jun 5, 2020 at 1:10 AM kernel test robot wrote: >> There you go. >> >> We decided this was a bogus report, and that UBSAN requires sane compilers. >> >> Please read the fine comment that was added in this commit and update >> your compiler or do not mess with compiler flags. >> >> + /* If UBSAN reports an error there, please make sure your compiler >> + * supports -fno-strict-overflow before reporting it that was a bug >> + * in UBSAN, and it has been fixed in GCC-8. >> + */ >> + return atomic_add_return(segs + delta, p_id) - segs; >>> make HOSTCC=gcc-4.9 CC=gcc-4.9 ARCH=i386 olddefconfig prepare modules_prepare bzImage > Rong, can you make sure to exclude gcc<8 for UBSAN reports ? Got it, thank's for your warning. Best Regards, Rong Chen