From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 11B40371860; Sun, 21 Jun 2026 21:40:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782078024; cv=none; b=FItqXo7HQ8yTXPieeMvwXjYuKBi8zO4yt+X/T7bXgvBtUFZLeehzpetgLQKoLVjvUW6bxybK1vHh4E+mEItN8PWoWm7LRYtTqJECvwwLaug2PokVwpx9U7Q620VfFpXk2CN1QwiUi77+QiqqtkJUzhQ6S+lYlqKJ4wCSvbHrBJ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782078024; c=relaxed/simple; bh=s4/W59PERcbEb+bn87wtkHL52L8sN5RXARYgJjVdlTo=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=GkpEbEAStVyH2rqhbOqthMamEkjnSthLpNeDMyfrd085irjIuSj97Cq66AC48vsLeTvnlVJRH/6C41MQV3QjCc0NDyIFGV/OkVhgm/f2kRrZqdr92nNKU0BiPWCVNv3+/228TBMBGhFfV4X6zZ9h+jQZZmqGyZ4qEGxM4vN6Sow= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jvIjE25U; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jvIjE25U" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C954F1F000E9; Sun, 21 Jun 2026 21:40:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1782078022; bh=DUajjUcW97DEdz6Nsz6jAt2jo/oscLX1HvKOjZWvze0=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=jvIjE25UVjQ+Vj+aZJrEey+FIw05Zgykui8FhDa7LXvwBDrSyZbY1R8DPfBSXrpA9 fXh9PVh1TpEm724VvprNAY6Bgb45pCIKO24aU9mFESBmL79nVFKaqasTwP9iz4riyy Jqh/UlsL5GHZREcA1i8ylwDSE2bUA4E8aXCWd6SUOewB/WcatrcR8neu6rCUKnpaLb khY7UpDArIx1ilFbus99ubbcxfux3rxM/2r+punYeB2yBBeahIqbEgOf7dpQ23te9l 9BAwAtBnheMNN15SUrrmlcVTTCvtNKov0chTlv4u20+G9M1ej6l2X21IsqwmV30c1S yL6yDPmDGTFMw== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 569AE3AAA6E4; Sun, 21 Jun 2026 21:40:15 +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: dst_metadata: fix false-positive memcpy overflow in tun_dst_unclone From: patchwork-bot+netdevbpf@kernel.org Message-Id: <178207801400.510072.6522219475902983121.git-patchwork-notify@kernel.org> Date: Sun, 21 Jun 2026 21:40:14 +0000 References: <20260616100332.1308294-1-i.maximets@ovn.org> In-Reply-To: <20260616100332.1308294-1-i.maximets@ovn.org> To: Ilya Maximets Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, kees@kernel.org, gustavoars@kernel.org, nathan@kernel.org, nick.desaulniers+lkml@gmail.com, morbo@google.com, justinstitt@google.com, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, llvm@lists.linux.dev, write@ownrisk.dk Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Tue, 16 Jun 2026 12:03:29 +0200 you wrote: > kmalloc_flex() in metadata_dst_alloc() sets __counted_by for the > structure to the options_len, which is then initialized to zero. > Later, we're initializing the structure by copying the tunnel info > together with the options, and this triggers a warning for a potential > memcpy overflow, since the compiler estimates that the options can't > fit into the structure, even though the memory for them is actually > allocated. > > [...] Here is the summary with links: - [net] net: dst_metadata: fix false-positive memcpy overflow in tun_dst_unclone https://git.kernel.org/netdev/net/c/4c6d43db2a4d You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html