From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [dpdk-stable] [PATCH] drivers/net: fix shifting 32-bit signed variable 31 times Date: Fri, 1 Mar 2019 17:18:25 +0000 Message-ID: References: <1550582690-29533-1-git-send-email-andrius.sirvys@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: stable@dpdk.org, stephen@networkplumber.org, shaguna@chelsio.com, rasesh.mody@qlogic.com, ophirmu@mellanox.com To: Andrius Sirvys , dev@dpdk.org, Ravi Kumar , Rasesh Mody , Shahed Shaikh , Ajit Khaparde , Somnath Kotur , Rahul Lakkireddy , Wenzhuo Lu , Alejandro Lucero , Keith Wiles Return-path: In-Reply-To: Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 2/26/2019 10:31 AM, Ferruh Yigit wrote: > On 2/19/2019 1:24 PM, Andrius Sirvys wrote: >> Shifting signed 32-bit values by 31-bits has the potential for >> unexpected outcomes as compiler can overwrite a bit. >> Specified that values are unsigned. >> >> Errors are observed from running cppcheck. >> >> Bugzilla ID: 58 >> Fixes: 69e209be5464 ("net/axgbe: add register map and related macros") >> Fixes: b5bf7719221d ("bnx2x: driver support routines") >> Fixes: ed2ced6fe927 ("net/bnxt: check initialization before accessing stats") >> Fixes: 6fda3f0ddda9 ("net/cxgbe: add API to program hardware MPS table") >> Fixes: bdb244b96920 ("e1000: whitespace changes") >> Fixes: 5a32a257f957 ("e1000: more NICs in base driver") >> Fixes: 2fe669f4bcd2 ("net/nfp: support MAC address change") >> Fixes: defb9a5dd156 ("nfp: introduce driver initialization") >> Fixes: ec94dbc57362 ("qede: add base driver") >> Fixes: d2e7d931d0ad ("net/qede/base: formatting changes") >> Fixes: cdc07e83bb24 ("net/tap: add eBPF program file") >> Cc: stable@dpdk.org >> >> Signed-off-by: Andrius Sirvys > > Reviewed-by: Ferruh Yigit > Applied to dpdk-next-net/master, thanks.