From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4DEF8A0548 for ; Tue, 9 Nov 2021 23:46:27 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3FB9F41103; Tue, 9 Nov 2021 23:46:27 +0100 (CET) Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by mails.dpdk.org (Postfix) with ESMTP id 7BCD44068B; Tue, 9 Nov 2021 23:46:25 +0100 (CET) Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1A9LB8lx007594; Tue, 9 Nov 2021 22:46:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=R3cGrhVmBOIeySeWc/Z92V4LO2CByL6W5Vpvn/Hhx5U=; b=DLlJasHK23fLRIJxL6sf/ygh9amyQaBbJJedxMokgmVohtkSO+Zce0e/EdN1XyFWsSIP m2tdeL2bNcgNOvdxMa+bbM4iRBEDDzD+nuzz90efFBuVryHLWdUa1JDCAYtRBYw337wG JM7Wwju0ty2119rEPfoMkXcvsB//VLImgQUx/hZaLeQU/6of1Lqf7R2SVzOQinZCFTib V6x2Iv8o5NrI+W/jYALQrddM3xl29hoUXhcftzqh7yGP0uelUDjOizsj0Ly5dKXMUpyS w9Ws0aoUfydboxO72FCEvkft6dllIHYMYbWN4FMUtvNLJ4jI4NeZ+pPB8z8maT9/9TdI gg== Received: from ppma05wdc.us.ibm.com (1b.90.2fa9.ip4.static.sl-reverse.com [169.47.144.27]) by mx0a-001b2d01.pphosted.com with ESMTP id 3c808xswq0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Nov 2021 22:46:24 +0000 Received: from pps.filterd (ppma05wdc.us.ibm.com [127.0.0.1]) by ppma05wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 1A9MhRSC025223; Tue, 9 Nov 2021 22:46:23 GMT Received: from b01cxnp22034.gho.pok.ibm.com (b01cxnp22034.gho.pok.ibm.com [9.57.198.24]) by ppma05wdc.us.ibm.com with ESMTP id 3c5hbbsnj4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Nov 2021 22:46:23 +0000 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 1A9MkMuv62980528 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 9 Nov 2021 22:46:22 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D8169AE06A; Tue, 9 Nov 2021 22:46:22 +0000 (GMT) Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 89076AE066; Tue, 9 Nov 2021 22:46:21 +0000 (GMT) Received: from [9.211.132.130] (unknown [9.211.132.130]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP; Tue, 9 Nov 2021 22:46:21 +0000 (GMT) Message-ID: <336ae629-679e-0c18-58c4-a3efa302de9a@linux.vnet.ibm.com> Date: Tue, 9 Nov 2021 14:46:19 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Content-Language: en-US To: "Zhang, Qi Z" , "dev@dpdk.org" , "Xing, Beilei" Cc: "stable@dpdk.org" , "Yigit, Ferruh" References: <20211014190500.2657413-1-drc@linux.vnet.ibm.com> <6b454551353a409b8c5c661462b7d329@intel.com> From: David Christensen In-Reply-To: <6b454551353a409b8c5c661462b7d329@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: l4JKy0UripzNNtkes4_ZHfhvcYS5TZZ3 X-Proofpoint-ORIG-GUID: l4JKy0UripzNNtkes4_ZHfhvcYS5TZZ3 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-11-09_07,2021-11-08_02,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 mlxlogscore=999 clxscore=1015 malwarescore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 lowpriorityscore=0 impostorscore=0 priorityscore=1501 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2111090122 Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] net/i40e: fix gcc 11 build warning on POWER architecture X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" > Not sure if below patch also help to solve the issue you met on power arch, > Looks like the error is same: "writing 1 byte into a region of size 0" > would you help to check? > > commit 1b0f3a18145468c309bb5a8cb98a8aa29af059e7 > Author: Ferruh Yigit > Date: Fri Oct 29 11:37:01 2021 +0100 > > net/i40e: fix build for 32-bit > > Got error with: gcc 11.2.1 "cc (GCC) 11.2.1 20210728 (Red Hat 11.2.1-1)" > > Build error: > In function 'i40e_flow_parse_fdir_pattern', > inlined from 'i40e_flow_parse_fdir_filter' > at ../drivers/net/i40e/i40e_flow.c:3274:8: > ../drivers/net/i40e/i40e_flow.c:3052:69: > error: writing 1 byte into a region of size 0 > [-Werror=stringop-overflow=] > 3052 | filter->input.flow_ext.flexbytes[j] = > | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ > 3053 | raw_spec->pattern[i]; > | ~~~~~~~~~~~~~~~~~~~~ > In file included from ../drivers/net/i40e/i40e_flow.c:25: > ../drivers/net/i40e/i40e_flow.c: > In function 'i40e_flow_parse_fdir_filter': > ../drivers/net/i40e/i40e_ethdev.h:638:17: > note: at offset 16 into destination object 'flexbytes' of size 16 > 638 | uint8_t flexbytes[RTE_ETH_FDIR_MAX_FLEXLEN]; > | ^~~~~~~~~ > > Fixing by adding range checks. > > Fixes: 6ced3dd72f5f ("net/i40e: support flexible payload parsing for FDIR") > Cc: stable@dpdk.org Yep, definitely fixed it for POWER as well with the latest GCC compiler (Advanced Toolchain 15.0 in my case). I'll withdraw by other patch. Thanks for the heads up. Dave