Article View: linux.kernel.netdev
Article #19174Re: [PATCH v7 bpf 3/5] veth: use the frame mem type when running XDP on an xdp_frame
From: bot+bpf-ci
Date: Thu, 19 Nov 2026 13:54
Date: Thu, 19 Nov 2026 13:54
57 lines
10509 bytes
10509 bytes
--===============0493837293160669566==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
> veth: use the frame mem type when running XDP on an xdp_frame
TL;DR: Commit message only: the Fixes: tag (718a18a0c8a6) looks wrong, since
it only touches the skb path; the review suggests naming the commit that
introduced the stale rxq mem type problem.
> veth: use the frame mem type when running XDP on an xdp_frame
>
> veth_xdp_rcv_one() runs the XDP program on frames queued by
> ndo_xdp_xmit(), i.e. redirected to veth or sent back by the peer with
> XDP_TX. The xdp_buff points at rq->xdp_rxq, whose mem type is whatever
> the previous packet left there: the queue's MEM_TYPE_PAGE_SHARED, or
> the type of an earlier frame or skb. frame->mem_type is copied in only
> for XDP_TX and XDP_REDIRECT, after the program has run.
> bpf_xdp_adjust_tail() and bpf_xdp_pull_data() release whole frags with
> the rxq mem type.
[ ... ]
> Set the rxq mem type from the frame before running the program, as
> cpumap and devmap do, and drop the now redundant updates in the XDP_TX
> and XDP_REDIRECT paths.
[ ... ]
> Fixes: 718a18a0c8a6 ("veth: Rework veth_xdp_rcv_skb in order to accept non-linear skb")
> Cc: <stable@vger.kernel.org>
> Reviewed-by: Tianyi Gao <tianyi@cloudflare.com>
> Signed-off-by: Slawomir Stepien <sst@poczta.fm>
Is this Fixes: tag pointing at the right commit?
718a18a0c8a6 only reworks the skb path (veth_xdp_rcv_skb() and
veth_convert_skb_to_xdp_buff()), and does not touch veth_xdp_rcv_one(),
which is the only function this patch changes.
The stale rxq mem type on the xdp_frame path comes from the
XDP_TX/XDP_REDIRECT-only "xdp->rxq->mem = frame->mem" assignments, which
predate that commit and were added by d1396004dd86 ("veth: Add XDP TX and
REDIRECT").
The stale type only becomes harmful once frag release uses the rxq mem type,
which happened in bf25146a5595 for bpf_xdp_adjust_tail() and in 4dce1a0d7cf3
for bpf_xdp_pull_data().
Could the tag be changed to name the commit that actually introduced the
problem?
---
AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md
CI run summary: https://github.com/kernel-patches/bpf/actions/runs/44535627869
--===============0493837293160669566==--
Technical Details
Message-ID:
<9a5a1487a4676381f4c3d98cb5a22f50e2f54d9d4ec7947891c889b64ac12693@mail.kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367047-linux-kernel-netdev=dewy.ruReferences:
<20261119133032.2015656-4-sst@poczta.fm>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367047-linux-kernel-netdev=dewy.ru From: bot+bpf-ci@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH v7 bpf 3/5] veth: use the frame mem type when running XDP on an xdp_frame Date: Thu, 19 Nov 2026 13:54:58 +0000 (UTC) Organization: Usenet Network Message-ID: <9a5a1487a4676381f4c3d98cb5a22f50e2f54d9d4ec7947891c889b64ac12693@mail.kernel.org> References: <20261119133032.2015656-4-sst@poczta.fm> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0493837293160669566==" Injection-Info: usenet.network; logging-data="2886373"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:k5Z9DdnfXVPAywzqNnmymiLhMRQ= sha256:DwDfeJn+X5qzqKsJOrQQPjGGg63vVOWe6oEmaUAGXys= sha1:zd9ZQr2jX0ubCK/otFQntQYaCGw= sha256:aQ8F5Kuz17//Q+HjeoI7pQ8hrGCBra2VQYvzgBYnAKI= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 47DAE115679; Thu, 19 Nov 2026 16:55:51 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BOOhFlZMvtAg; Thu, 19 Nov 2026 16:55:47 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-367047-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 49600115643; Thu, 19 Nov 2026 16:55:38 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id B2F3F3D808; Thu, 19 Nov 2026 13:55:27 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795096503; b=SJC8Nz7+teBQMxMyApEMWAGSN8brlME0cSHuxdrfkg7TbMgMdU8MbXNq+3XufER6mD8o NQfL3Zq+H2LFq6nxXi9rdea0XxGQoE8TVLpQwfZNOpgg5oYBadLQMmpDL9ZH0TroTETVm DY9CmrijDpKW0duaHRiT6Ch55pIqfgnctLcqAlR6cQg/pnj8fEYM992te+qZBzq+qBi6S yIMGo3fwTs5CtjPwKpgyAoFbNT7+9JWeq5t/wk5XmWZnqOb4OXjFbDREHrOeJeiDKYaZq ALz7lNjBlP8v6bGTMmY3wc/p4nukAVpmT4/8XOYyNfWmjZLMezbNL+MYcF+VPk/RTIQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795096503; h=X-Original-To:Received:Received:DKIM-Signature:Content-Type: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Message-Id: In-Reply-To:References:Subject:From:To:Cc:Date; bh=ZGEipZ4iBR2zaM8nIfLYPQOtXWPI6XNJ5IhWI9P6vEU=; b=4qCNAlhW85ECkDhOGrHZFEwPePIPjf4GyNADqSk3h10RrVBfRRHnDqlfA2f+4dGTx4LT OtM1RuF8AYLtJUG5dzCTIMvqiCt+w04hTwVpFy+pnHNChydz+jEv/J6xPcKoqXtW+Lt83 PkgsWHvCyDYll3hWjhAYyL56SVzi/f73gZAB2is23yrbSVgHmBaEFXpx5pB1nXO62fHh0 v1NWJIQ2xYCjbHBq453sWA9B6Qfs8cab7g/wy4s7shWhJPRqVNINOdlfcOUTbI+0bZuVl N2r/kPGrEg+ty/pBCHBnfhwFRYdmTE5BAUpbNoAews+vfMhcXtX3f0nRfVWhkEqJy+g== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QQRbLvoI; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A40960A3825; Thu, 19 Nov 2026 13:55:03 +0000 (UTC) X-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=QQRbLvoI X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795096502; b=cZdV/GjnXV3Dc8xb5UIUYBWsPyYE20MNC/0KL7XvkHEH2+Wh7T4Vb4qRY+9xUzaU/UtU uS665YZJE8RSuzu5ilkG4XHPO7f0vyrrdO2ZcVcQKBne7mRmkREmDq/p0yqRAW86862eN dlR4PTUUXXQUVZDa6Zcb24EwH12+SJQ2r2lMxF1VEg28mH5gGV6eh1Ok96NGEnh9DsL/w NdlsBgU9TxyfYTIaXzsVQ7OSpyNGj1BrRieENhEps2qRnS3W69X2PLKmIVGQxYauZDA5y gDUMofehH73cM3aJeAA9TMFSXk3ce5iWy1LPaO7QEqiYHB2y09sPKWLw5Km8GpJ78dA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795096502; h=Received:DKIM-Signature:Content-Type:MIME-Version:Message-Id: In-Reply-To:References:Subject:From:To:Cc:Date; bh=ZGEipZ4iBR2zaM8nIfLYPQOtXWPI6XNJ5IhWI9P6vEU=; b=qyVOKuLQn4FAxGfmkMVfRMI2kBTrgrcrfaDEPHRjbwPVHq9oEyoaZDLOl/n1GDCHBk6P KD6nRRMCX6zHuQD9cEczj+anUMy3rOLKgUUi3fdN5MKXehXVARlqdAPvLESmpl7MuX2oY 7FKoiXd15ZxWz4rz/3EBcRoSUhFp04otJLrCFkN3ITo0tAcKrIsk7gm7c5TAzsaAfl9As nldm+haPK2cWFoNavl4uNwmvqEqcUzY4GxZWeH/QYpx7IaNrwhI2ncVdbVoMbHC1zFauP YO7I+OQmPwesN2hUk7HcJBX3AqMdZVPMZgKxh/oWVyEDVJMOLBfJg1RH7bRFdVejSLA== X-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=QQRbLvoI; arc=none smtp.remote-ip=100.103.45.18 X-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 6AAC1606A324; Thu, 19 Nov 2026 13:55:02 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 653D81F000C4; Thu, 19 Nov 2026 13:54:58 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795096502; bh=ZGEipZ4iBR2zaM8nIfLYPQOtXWPI6XNJ5IhWI9P6vEU=; h=In-Reply-To:References:Subject:From:To:Cc:Date; b=QQRbLvoIJinWyRQldOtBxVUdCVpyfbzWr90u5YSTrgn3k4N0dht0N6J6uzl7BuWP+ avKZHcSvJsw3LZlDI0YRqvZqG/htWdzznUrrOI4v0ft+ESHJTQB87CfthYhIh0OlYd bG2KBnZ0ryNxjMo0A/CmNl2cCf3PLkS4A1NbzFGpTaJ0Cn1VIy1PzJhJQrgh3w54E8 EJQVu73lMMQQ/hB3pX8Jtel1vvmdiXQlEqCSLoaN5qupBXZx22PejDrynJUi2Q/8nT SQ58ywjic2yLCM4xpxsP50+vTxvf1feT0vV3sftjwgoBcrPz4s65OKp44AncqKH+58 yvMXJtXXDYhRw== X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261119133032.2015656-4-sst@poczta.fm> X-Cc: bpf@vger.kernel.org,netdev@vger.kernel.org,maciej.fijalkowski@intel.com,tianyi@cloudflare.com,tavip@google.com,toke@redhat.com,aleksander.lobakin@intel.com,ilias.apalodimas@linaro.org,lorenzo@kernel.org,magnus.karlsson@intel.com,ihor.solodrai@linux.dev,edumazet@kernel.org,pabeni@redhat.com,andrew+netdev@lunn.ch,horms@kernel.org,andrii@kernel.org,martin.lau@linux.dev,eddyz87@gmail.com,song@kernel.org,yonghong.song@linux.dev,jolsa@kernel.org,memxor@gmail.com,shuah@kernel.org,linux-kselftest@vger.kernel.org,sst@poczta.fm,stable@vger.kernel.org,ast@kernel.org,andrii@kernel.org,daniel@iogearbox.net,martin.lau@kernel.org,eddyz87@gmail.com,yonghong.song@linux.dev,mason@kernel.org,ihor.solodrai@linux.dev