Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp116425rdb; Sun, 14 Jan 2024 08:50:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IG6zURRqAqIpUx45JoQvuK+WlFdYjIIe3A9m3+pN4Zf1Z51fXy/8vYV9Uwd6F1cbedy37IP X-Received: by 2002:a2e:9e10:0:b0:2cd:8f26:a1f4 with SMTP id e16-20020a2e9e10000000b002cd8f26a1f4mr1981086ljk.95.1705251035638; Sun, 14 Jan 2024 08:50:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705251035; cv=none; d=google.com; s=arc-20160816; b=WTy8Syf+xzje6pPm35c9CNaAxNEnJ+xgfjK7Sb5GH3/9FgROHZFU0eehfnFqFgVXo6 aAnFPbmFknHiOL33yMDX2DLmjktRy8qtKEHxxI2EYPSwa+ps60YpQY3HNz0czKzEt4p2 /4GIyqnHooZbVnZscK1Ny/XVSS5gtFVtI1Byl3EIZA3yeXR41mOiFE8IusIWw8cl1RBC vK750VCBQthwag7BE/lA9dH4wp/J/3lPuAMXdM7cDEmJ6dEBBWMQvkwmi7G8EMjgL0iB Kc8l142A2TKjotYPgTHFUYLAPhmtfHeFCdQoFDtwxccHhJ5rn/L9P2GuZ6Wy0Ks3+JFO +Xpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:date:message-id:from:subject :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=ol+Udz9LMdvkejhD5x4SD8Tj8WqpgxmRisdcvCvH9MU=; fh=KcyB/TI4Vm5eMFA3RGsyzljSpWr9ZTPEwa63rfm2rMQ=; b=ZLXQTX3Y+nwGjbj99UyqoQ9cAgfV9dliNWT81WcWcz/Pwuy9DI1O664baeYYnHlXrA EVSJsE5FRmVhX7XiriLe8W06VcV14mc1rx2XJ9KQPOXEmLoO8GmPyMQ7JBlL56LCm2Hk hXunST8kVuvonzLvl4BMOU402lG9x7i+nnkJtjBg/xK8jJG5YREFnmannfnsjow7FKMU qpmdWdeDTscPfL+F3QuSZLYOWA/O6BhvDEkdihL3TEhF3npOu08bUFysztGW+DbQlCSi 286Xf4eef03NjKaWcAH7rmbTzVFCsJhHFkBuCyOkVmqM/3Q9ytvjIZzukbdRXPmtqvB7 PwBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pDqC6zAi; spf=pass (google.com: domain of linux-kernel+bounces-25514-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25514-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f21-20020a056402195500b005592dc24251si539681edz.336.2024.01.14.08.50.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jan 2024 08:50:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25514-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pDqC6zAi; spf=pass (google.com: domain of linux-kernel+bounces-25514-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25514-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3AB4F1F21694 for ; Sun, 14 Jan 2024 16:50:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 96F38538D; Sun, 14 Jan 2024 16:50:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pDqC6zAi" 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 C1F795231; Sun, 14 Jan 2024 16:50:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 2E975C43390; Sun, 14 Jan 2024 16:50:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705251024; bh=aajpuL0N1FoVPG1DOrmuwPFeTeocdCnnlU8c+Mc11tk=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=pDqC6zAins4V9gxo86MlHsipGU6CoRoDy1yYSlZ4/rFYisLKf4/vww8JN3UOvNdk8 HLOoq+WZCKm1lpmA27gvmPqJVS5C6Rx73ydDaP2kKaYZRf7xm5H+HoRNp3Iug4zpiT obQLLLW2YoPukwPQDSsAa80utgQmTSPE3oSMjpQzra2615D0WXCZ0evFprL6oMRTDO P34rBZDxJCRN/HZnKjWyTGXXpL/pc9Y7A9a/3wxAO6nJdEBDI6BIc1TIZG2pTdn0TJ xPc0MyXgeQTHahr6CiMjLeqXAZLe02Dy/C1WSpoJHz7sdiP40BhKiDHFXmPA9VucxR 3SZXJFxIWyCwA== 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 1571ED8C96D; Sun, 14 Jan 2024 16:50:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] net: ravb: Fix dma_addr_t truncation in error case From: patchwork-bot+netdevbpf@kernel.org Message-Id: <170525102408.11320.1615500877884972571.git-patchwork-notify@kernel.org> Date: Sun, 14 Jan 2024 16:50:24 +0000 References: <20240113042221.480650-1-nikita.yoush@cogentembedded.com> In-Reply-To: <20240113042221.480650-1-nikita.yoush@cogentembedded.com> To: Nikita Yushchenko Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, s.shtylyov@omp.ru, claudiu.beznea.uj@bp.renesas.com, yoshihiro.shimoda.uh@renesas.com, wsa+renesas@sang-engineering.com, u.kleine-koenig@pengutronix.de, netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net.git (main) by David S. Miller : On Sat, 13 Jan 2024 10:22:21 +0600 you wrote: > In ravb_start_xmit(), ravb driver uses u32 variable to store result of > dma_map_single() call. Since ravb hardware has 32-bit address fields in > descriptors, this works properly when mapping is successful - it is > platform's job to provide mapping addresses that fit into hardware > limitations. > > However, in failure case dma_map_single() returns DMA_MAPPING_ERROR > constant that is 64-bit when dma_addr_t is 64-bit. Storing this constant > in u32 leads to truncation, and further call to dma_mapping_error() > fails to notice the error. > > [...] Here is the summary with links: - net: ravb: Fix dma_addr_t truncation in error case https://git.kernel.org/netdev/net/c/e327b2372bc0 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html