From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.70.43.22 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795441338; b=qNKolRcziIsmtcPhjFbRHpPvUMYX6leMxLhgnmFCAMp0aMFqPB6idWe3nWZMdVZSw/xx /miwdMBvAci+lTQ31+i5+0K4sUOGDvT8J1B9a0hmH2XXVxEuj7tXa8hbgMUtkPwHnxaQL RSx2LWcpEhanLdJJOPP4y6Zdlv/YJTinBnoD+rjE0EvH3fkIc2NJiIPFIzBGJfMIbQX7Q UDD+DbH0LDGj0kFa/fo6csGLIPXZV+7E8DSq5JOI3EuoTjHOMT9jX0/9bmlm9jkq64oFl JRLurpTAtxJ/814BKvFXZeaCrXxqyCh5yDEPjztL35prz3BWJGOGsn5dSIhGOxj9EAA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795441338; h=DMARC-Filter:DKIM-Signature:Date:To:From:Cc:Subject:Message-ID: In-Reply-To:References:Feedback-ID:X-Pm-Message-ID:MIME-Version: Content-Type:Content-Transfer-Encoding; bh=/59dkLXw7fWA0046VR7tU5oUR0oxbfp1PkFwPJklpDE=; b=o2nNkljgbDaVUSZzGo25Q156yK6/KAHHPhtoVQWKi2xYPnucOEoTVdk0N4B5Zp7KE2Ne HZD81tvJHmfZsGxB1tVhaC/AN3whvIV0aXnMPjrzder/uPhsmUL7askHKT9d2Dvd3nQWw J3H0vP4SLq6W2i0uANyN8XLAywloMP7NyEirwANy9dvglnhmFtmn6n+ComR9Z3Ad+3Gyf ivk1SDuyGEcY13fJBBvYyn6pR9pybxNM4YGMTefgvDlJ6GwomZ2qU3WddhF7HOwr5JQbZ 4GXOiFyiAuAqUVxOsvK6rp6q6Kol+FUL4UQXicEpXwKRBTfk9IfEt1nDvNRGiNJmfHg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass header.d=protonmail.com header.i=@protonmail.com header.a=rsa-sha256 header.s=protonmail3 header.b=OiIDMKGV; arc=none smtp.remote-ip=185.70.43.22 Received: from mail-4322.protonmail.ch (mail-4322.protonmail.ch [185.70.43.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 608F8606A338; Mon, 23 Nov 2026 13:42:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 608F8606A338 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=protonmail.com header.i=@protonmail.com header.a=rsa-sha256 header.s=protonmail3 header.b=OiIDMKGV DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1795441335; x=1795700535; bh=/59dkLXw7fWA0046VR7tU5oUR0oxbfp1PkFwPJklpDE=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=OiIDMKGVPGqiHMt0HzbnYrdFL0Ix7mCahLPMEvDPzkejuUGRBSZGwJPyLYolIBJzJ WM21XyiQI21B+gdtd9OQBscSJaZgBARnfzHGd3BOexXcaQqJTp/rmU55AZt9Fk35+w uC07mDrLlOeSsxVtXV+86AXcTua7groW/t2H/RdAaI6jE25IOvhr7Hfr+DzZvhqey3 hfWz6bkrwGn1wKG6nxAuIpvfUVGlKXNEuzpM4Vvka0hZ+dSb65oo0/0XzPAtKVFAgl r7HR+/G8FlDKfS/C8o8wwUPCykVEed4e6WXjVxaGp6N8wZNI5D8Lj4rSYJLWljjvBG Pmuk/rIMFjR5A== Date: Mon, 23 Nov 2026 13:42:08 +0000 To: netdev-bot+sashiko@kernel.org From: Ryan Prinz Cc: Alexander Aring , "David S . Miller" , Eric Dumazet , Simon Horman , Jakub Kicinski , linux-kernel@vger.kernel.org, linux-wpan@vger.kernel.org, Miquel Raynal , netdev@vger.kernel.org, Paolo Abeni , Ryan Prinz , Stefan Schmidt Subject: Re: [PATCH net v2] ieee802154: 6lowpan: validate fragment offset against datagram size Message-ID: <20261123134144.1637522-1-rc4d5a@protonmail.com> In-Reply-To: <179484385868.3136.2031122352295651681@kernel.org> References: <20261112153034.1015181-1-rc4d5a@protonmail.com> <179484385868.3136.2031122352295651681@kernel.org> Feedback-ID: 190731814:user:proton X-Pm-Message-ID: a2e358e272c572a2df39823e2b2e87b4a279f6f9 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks again, these are correct, and I've made the adjustments. - [High] Zero-length fragments: agreed, the new check doesn't reject skb->len =3D=3D 0. lowpan_get_cb() only checks !skb->len on the FRAG1 branch, and that check runs before lowpan_rx_h_ipv6() pulls the dispatch byte, so a FRAG1 whose only payload is that byte, or a FRAGN carrying nothing but its header, both reach lowpan_frag_queue() empty. Adding !skb->len to the bounds check, and dropping the "a zero-length final fragment is accepted" wording from the commit message. It shouldn't be accepted, and won't be. - [Medium] Commit message mechanism: agreed, and it follows from your next point. Reworded the impact description to stop asserting one specific mechanism (the overlap-eviction splice), since that isn't reliable given the issue below. The new wording just states what the fix itself guarantees: no out-of-range or empty fragment is accepted into the queue. - [High, pre-existing] end =3D d_size passed to inet_frag_queue_insert() instead of the fragment's own offset + skb->len: confirmed by tracing both of your examples against the actual insert logic. This predates this patch and isn't something this bounds-check patch should carry. I'm tracking it as a separate issue to address on its own rather than folding it in here. v4 incoming with the zero-length check added and the commit message reworded to not overstate the mechanism. pw-bot: cr