Netdev List
 help / color / mirror / Atom feed
From: "Björn Töpel" <bjorn@kernel.org>
To: netdev-bot+sashiko@kernel.org
Cc: magnus.karlsson@intel.com, maciej.fijalkowski@intel.com,
	aleksander.lobakin@intel.com, ast@kernel.org,
	daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com,
	andrii@kernel.org, eddyz87@gmail.com, memxor@gmail.com,
	davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
	pabeni@redhat.com, willemb@google.com, netdev@vger.kernel.org,
	bpf@vger.kernel.org, horms@kernel.org, sdf@fomichev.me,
	martin.lau@linux.dev, song@kernel.org, yonghong.song@linux.dev,
	jolsa@kernel.org, emil@etsalapatis.com, ihor.solodrai@linux.dev,
	anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com,
	intel-wired-lan@lists.osuosl.org, clecigne@google.com
Subject: Re: [PATCH net v2 4/4] xsk: Keep the shared info of zero-copy buffers in kernel memory
Date: Tue, 01 Dec 2026 17:01:08 +0100	[thread overview]
Message-ID: <87y0a9ng6z.fsf@all.your.base.are.belong.to.us> (raw)
In-Reply-To: <179612875904.3146.8079683295083998736@kernel.org>

netdev-bot+sashiko@kernel.org writes:

> [Severity: Low]
> The message names only the libeth prerequisite. Does this patch also
> depend on two other commits from the same series?

Yes. A backport of this patch needs patches 1 to 3 of this series, which
stop libeth and the skb builders from relying on the shared info at the
end of the frame.

> [Severity: Medium]
> With XDP_FLAGS_SINFO_EXT set, bpf_xdp_adjust_tail() can now grow
> data_end up to data_hard_start + frame_sz. xsk_rcv_check() in
> net/xdp/xsk.c was not updated. Does it still agree with this new bound?

The larger tail only lets a packet that still fits in its own chunk
reach xsk_rcv_check(), which drops it and counts rx_dropped, as for any
packet longer than the socket's frame size. Nothing reads or writes
outside the chunk, and bpf_xdp_adjust_head() could already reach the
same check. Changing the frame size limit would change what userspace
sees, so I'd rather not do that in a net fix.

> [Severity: Critical]
> This is a pre-existing issue and was not introduced by this patch, but
> it is in the class of bug this patch closes. dpaa2 stores a kernel
> pointer inside the UMEM chunk, which userspace can write.

Agreed, that is real and separate from this series. I'll report it to
the dpaa2 maintainer.

      reply	other threads:[~2026-12-01 16:01 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 12:37 [PATCH net v2 0/4] xsk: Keep the shared info of zero-copy buffers in kernel memory Björn Töpel
2026-11-30 12:37 ` [PATCH net v2 1/4] libeth: xsk: Count each XDP_TX buffer on its own Björn Töpel
2026-11-30 16:41   ` Alexander Lobakin
2026-12-01 12:39   ` netdev-bot+sashiko
2026-12-01 15:57     ` Björn Töpel
2026-11-30 12:37 ` [PATCH net v2 2/4] xdp: Size zero-copy skbs from the data, not the frame size Björn Töpel
2026-11-30 16:54   ` Alexander Lobakin
2026-12-01  7:12     ` Björn Töpel
2026-12-01 14:08       ` Alexander Lobakin
2026-12-01 12:39   ` netdev-bot+sashiko
2026-12-01 15:58     ` Björn Töpel
2026-11-30 12:37 ` [PATCH net v2 3/4] intel: Copy the exact length of XSk packets to skbs Björn Töpel
2026-11-30 16:56   ` Alexander Lobakin
2026-11-30 12:37 ` [PATCH net v2 4/4] xsk: Keep the shared info of zero-copy buffers in kernel memory Björn Töpel
2026-12-01 12:39   ` netdev-bot+sashiko
2026-12-01 16:01     ` Björn Töpel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y0a9ng6z.fsf@all.your.base.are.belong.to.us \
    --to=bjorn@kernel.org \
    --cc=aleksander.lobakin@intel.com \
    --cc=andrii@kernel.org \
    --cc=anthony.l.nguyen@intel.com \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=clecigne@google.com \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=eddyz87@gmail.com \
    --cc=edumazet@kernel.org \
    --cc=emil@etsalapatis.com \
    --cc=hawk@kernel.org \
    --cc=horms@kernel.org \
    --cc=ihor.solodrai@linux.dev \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=john.fastabend@gmail.com \
    --cc=jolsa@kernel.org \
    --cc=kuba@kernel.org \
    --cc=maciej.fijalkowski@intel.com \
    --cc=magnus.karlsson@intel.com \
    --cc=martin.lau@linux.dev \
    --cc=memxor@gmail.com \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=przemyslaw.kitszel@intel.com \
    --cc=sdf@fomichev.me \
    --cc=song@kernel.org \
    --cc=willemb@google.com \
    --cc=yonghong.song@linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox