From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E50551D2EB for ; Wed, 12 Jul 2023 23:00:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id B61A7C433C8; Wed, 12 Jul 2023 23:00:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689202821; bh=qvHHbl0p2tQLedpUeZ4QhvF8czKekLbTODRAToIkIms=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=WlTh2Kr8bbNq7xMuMZ0KXRJ+l9XPMPRQlUF4k6Bw+E4jnpWIslkC3r/IJOBkN1r4s c4LU45HwYmFoiIrufGH9F0Px+lrCRplSlfG+Zx2zx7NiBpAV+ko66JlIFkYrcIg7lD aWx92y7PrCCH2Bze3ForhnrmzWoyHC9+9VF/FBqBkjZmLIPg7K+lscgaP1tz+gw0EU gNL3Ji+Qcc+OWdqf8Zxet4TXucihxrdiWCDwHgBDkENYGfgWa/b7H/dGhTZ7WbLgPH t9m8pt/kQ0nGZ/w4qYi2/adNDpTMOscoc31u5QZDy9Ff2veP1Em/I9l74Wqbe3JRQZ aLRWIz+dMNaoQ== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 9C8F1C04E32; Wed, 12 Jul 2023 23:00:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net] net: ena: fix shift-out-of-bounds in exponential backoff From: patchwork-bot+netdevbpf@kernel.org Message-Id: <168920282162.4587.10421020284292608288.git-patchwork-notify@kernel.org> Date: Wed, 12 Jul 2023 23:00:21 +0000 References: <20230711013621.GE1926@templeofstupid.com> In-Reply-To: <20230711013621.GE1926@templeofstupid.com> To: Krister Johansen Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, shayagr@amazon.com, akiyano@amazon.com, darinzon@amazon.com, ndagan@amazon.com, saeedb@amazon.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Mon, 10 Jul 2023 18:36:21 -0700 you wrote: > The ENA adapters on our instances occasionally reset. Once recently > logged a UBSAN failure to console in the process: > > UBSAN: shift-out-of-bounds in build/linux/drivers/net/ethernet/amazon/ena/ena_com.c:540:13 > shift exponent 32 is too large for 32-bit type 'unsigned int' > CPU: 28 PID: 70012 Comm: kworker/u72:2 Kdump: loaded not tainted 5.15.117 > Hardware name: Amazon EC2 c5d.9xlarge/, BIOS 1.0 10/16/2017 > Workqueue: ena ena_fw_reset_device [ena] > Call Trace: > > dump_stack_lvl+0x4a/0x63 > dump_stack+0x10/0x16 > ubsan_epilogue+0x9/0x36 > __ubsan_handle_shift_out_of_bounds.cold+0x61/0x10e > ? __const_udelay+0x43/0x50 > ena_delay_exponential_backoff_us.cold+0x16/0x1e [ena] > wait_for_reset_state+0x54/0xa0 [ena] > ena_com_dev_reset+0xc8/0x110 [ena] > ena_down+0x3fe/0x480 [ena] > ena_destroy_device+0xeb/0xf0 [ena] > ena_fw_reset_device+0x30/0x50 [ena] > process_one_work+0x22b/0x3d0 > worker_thread+0x4d/0x3f0 > ? process_one_work+0x3d0/0x3d0 > kthread+0x12a/0x150 > ? set_kthread_struct+0x50/0x50 > ret_from_fork+0x22/0x30 > > > [...] Here is the summary with links: - [net] net: ena: fix shift-out-of-bounds in exponential backoff https://git.kernel.org/netdev/net/c/1e9cb763e9ba You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html