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=1796418577; b=PvA0QPYGSl3ve0Byy5bpwfjPEIHKyvndxGLnryDr+xOwc4qaZf75lTyNrHAn/pvR9MCK bCrAJs8TA/Zl1PkUX7nnRyaWv3p1J0qP3HTJVEp1C735mxqnvxYYRGbazyShT+Tu4zcRL pA1h8YD1gPGK7pv+zFihuxUKtSSwWOme8l9r7yI1emR+MmsZOqbl5xZDJLyzXQqnSv/Vl bDYbmqZVU7UTu3DwcWji7yDFgDCoHcM4sciHKJcHp81v7VHAAYyNE4S/6ZQ0D1P4tI25K QMcLTrDZDl6WBlzEOzgwCc5tV2szfjLatNPmaAlDLC2bW950WLhwSc2U0hJv0QrydkA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796418577; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=798ml57dXdg4wKNF5aDpmlEitapiIMeAk7uSiF5WSj8=; b=b9TTVP5dIU9M0Ixy03szQJwrHjuiZULaHdv9/f5ChZAH7HhweN3NOO9uNIkhpSMqVX96 Fm+b1PMj5Yx2AAGSl+WK3RWYTgtocuaFGKqwwNx8ibVDCESewLd3ZJJAAy3v9YBp23PKR 522eVNwUS4tNaavvGo6MS0Jq5zQUK3qunQW20DF3d3IvdAZDwwiy40UcTOMKjW557sufN ciI+3GBrYAH/ekWEabLYiVQ0ct1ALOiXwpZ3ijrfCAC57JQy0xIgrmu48A1Xvwqk6bKj9 0ACYmDf/ipw9msr+PhIyKfzyJxi6vbK4ODh3I44QqnbmxE9UO6EcDF4i6WqYh6PNycg== 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=ZwEEDKnP; 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 DA07E606A32C for ; Fri, 4 Dec 2026 21:09:37 +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=ZwEEDKnP Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93D2B1F00A17; Fri, 4 Dec 2026 21:09:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796418577; bh=798ml57dXdg4wKNF5aDpmlEitapiIMeAk7uSiF5WSj8=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=ZwEEDKnPMFZahFi670+oVaAbOHJxm3GmyihoYMBFxEHgxDxZBZ9d3cQAWBAo6eoKY FLRtyY2L1e7qO7pdET6hD1TVIO6YQHm1+Cu0vjZXpQhOGoFR9LXHlCk6ebhLj9AvsM rIf8M9TpnCi3hcwncCdzV7l68PmQ+PouBWe9meTcelzvXhjpJonnuTH10vwW2AGeG0 m1osLnqzLFkqRibal2pI+fsmwojtNZuHXNZdi7UurTEr3em9fhDZd7YQSC1dB+8IHX eaHLMl3bZkoh4nR4BxKt2q0qW6g7QBQp2YzwCNDilETjWKYuhHMqA1ad4yoHgZ0gjO zurNhf6P5kgMQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net 07/10] net: kunit: test unreadable net_iov napi_gro_frags Reply-To: sashiko-reviews@lists.linux.dev To: "Octavian Purdila" Cc: bpf@vger.kernel.org In-Reply-To: <1268787de8c80ea8c579d345843cd060418bee32.1796329894.git.tavip@google.com> References: <1268787de8c80ea8c579d345843cd060418bee32.1796329894.git.tavip@google.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 21:09:37 +0000 X-Mailing-List: bpf@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] net: kunit: netmem_unreadable_test_napi_reuse() does not verify skb reuse -- commit 8e212ae67e43fed3dca591ffeed692d004c0027f Author: Octavian Purdila net: kunit: test unreadable net_iov napi_gro_frags This commit adds KUnit tests in net_test for unreadable net_iov skb handling in napi_gro_frags(), covering header-pull failure in napi_frags_skb() and skb flag clearing on reuse in napi_reuse_skb(). > diff --git a/net/core/net_test.c b/net/core/net_test.c > index 47f5dc0fa5cf6..b939cc93e9050 100644 > --- a/net/core/net_test.c > +++ b/net/core/net_test.c [ ... ] > @@ -1720,6 +1724,244 @@ static void netmem_ref_test_tcp_devmem_recv(struc= t kunit *test) [ ... ] > +static void netmem_unreadable_test_napi_reuse(struct kunit *test) > +{ [ ... ] > + skb =3D napi_get_frags(napi); > + if (!skb) > + goto out_bh; > + fill_tcp4_headers(skb, htonl(0xc0000201), htonl(0xc0000202), > + htons(10000), htons(20000), 1064, 1, 64); > + netmem_unreadable_add_frag(skb, env, 64, 64); > + ret2 =3D napi_gro_frags(napi); > + > + skb =3D napi_get_frags(napi); > + if (skb) { > + readable =3D skb_frags_readable(skb); > + pp_recycle =3D skb->pp_recycle; > + } [Severity: Low] Does this verify that the third napi_get_frags() call actually returns the reused skb? If napi_reuse_skb() drops the second skb (for instance when skb->pfmemalloc is set) and leaves napi->skb NULL, napi_get_frags() allocates a fresh skb with unreadable and pp_recycle already cleared, letting the test pass without exercising reuse. Saving the second skb pointer and asserting that napi_get_frags() returns the same skb would catch a missed reuse. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/cover.1796329894.gi= t.tavip@google.com?part=3D7