From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796381405; b=xaGPD3TjyliP4U9UZgOfOYcpG853aXLGdgAZCab2F4NPR695vJbqzuiUuPKJBb5IqzHI dPmThzZ7Wpy1t6OaYDrZ+YylKQA/meb2CzUEllmHwFal+z7Fu6ykg0wAWTbN6U134gR/L S1y6nJPYqOyB/vNRFEQ/h1wqFjDFdoKa3GkFCl0vZw1pnp26RQr9xBCuYsW54iIEA0iBb EemQq0eCDT0d+ZmeFkLHNaN1MJyEVECE48VUjtwfSN5/Y+GA6v4nlXVN0nNNgjwOmik+9 lkONQnvYV+E3Bir57QvvWJFbvjvJx8e19Lh2uD5HQjhosAxAu6tL8avEJFjv4neQJhQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796381405; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=/yYz3PWAH7C463TnTebb8vRlrHi0yEn8oyozm/y5lw4=; b=VD5NYN5EGZ6dN6lCQAC2nsdq94KhwsoyY6ZokX7vvBXg0uQjXLPzl+PbEHib9qLso8/j Yw8l/ggBrl5+RV02/I3Nv7SqavKz2b63kdAm6RkFKkxdh1dt33l0XKnVJDBIuzPcYJiCb W6eVuzRp+xNql4e6JdeOMqHoA3FficH+7zMjj0OYVqeqARNcFDQdikCd7t8idH/9Ej/fH cDryoTP6fu9cBukLpVusSZWklFy0OIUYocjAmKk7RLYeYrbZjcMnZnUBtMXFpmvT2LruM F2Ipo4Gz5eNp5/XsXE1npmcv/mHtvzR21gGhX3OIO+exu+rh7z4EmeUQo+/Wnd3Es5A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="SpydshQ/"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 93CCE606A333; Fri, 4 Dec 2026 10:50:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=SpydshQ/ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 637FB1F00935; Fri, 4 Dec 2026 10:50:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796381405; bh=/yYz3PWAH7C463TnTebb8vRlrHi0yEn8oyozm/y5lw4=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=SpydshQ/5wS8GzGW72PkS43WRMvsn+2EnOoVCDIqRKp59vlVNvZG4K8xWsTP/Rs+d CQ11N4u2kLdhuK7DgqGYUdthRCsirNtoCA3Wj613afMUKQfu6tj15AWc+FZwyHCO6U CK0UGxBYRX1oLL+3OOvOHNDfitsxn39ENCrHpaSDJpVQbYYzyGn82YUdSOOL+iKaka wtsxE82w7AbMDbN7IUiOL9txY1BmVdopldE5OaMlXxp9VfWuNqFylteySBDc6vmVrq WOj2fqA6Ppo/K1F4xpo2xPm+oOUHjiMktkmJTKVmOKpqz/AQdZ2VJ9wDJfZetdhQXK RAaBleHi6UJEw== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 59BDF3808236; Fri, 4 Dec 2026 10:50:05 +0000 (UTC) Content-Type: text/plain; charset="utf-8" X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net] geneve: fix out-of-bounds read in the DF inherit path From: patchwork-bot+netdevbpf@kernel.org Message-Id: <179638140415.1010180.4536316909640870809.git-patchwork-notify@kernel.org> Date: Fri, 04 Dec 2026 10:50:04 +0000 References: <20261125235524.4139551-1-xmei5@asu.edu> In-Reply-To: <20261125235524.4139551-1-xmei5@asu.edu> To: Xiang Mei Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, co+80332c538f1d1a9d@bugs.sh Hello: This patch was applied to netdev/net-next.git (main) by Paolo Abeni : On Wed, 25 Nov 2026 16:55:24 -0700 you wrote: > The GENEVE_DF_INHERIT branch of geneve_xmit_skb() decides the inner > packet is IPv4 from skb_eth_hdr(skb)->h_proto and then reads > ip_hdr(skb)->frag_off, but skb_vlan_inet_prepare() only pulled an IPv4 > header if skb_protocol(skb, true) is ETH_P_IP. For AF_PACKET/SOCK_RAW the > two are independent: a 14-byte frame with h_proto 0x0800 sent with > sll_protocol ETH_P_ARP passes the pull with only ETH_HLEN and the DF test > reads 6 bytes past skb->tail. The stale tailroom bit is copied into the > outer IPv4 DF bit on the wire, leaking one bit of slab memory per packet > to a user holding CAP_NET_ADMIN/CAP_NET_RAW in a user namespace. With > inner_proto_inherit there is no inner Ethernet header at all, so the > h_proto test is wrong there too. > > [...] Here is the summary with links: - [net] geneve: fix out-of-bounds read in the DF inherit path https://git.kernel.org/netdev/net-next/c/e5ba10df689a You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html