From: Jesper Dangaard Brouer <hawk@kernel.org>
To: Maciej Fijalkowski <maciej.fijalkowski@intel.com>,
Frederick Lawler <fred@cloudflare.com>
Cc: Tony Nguyen <anthony.l.nguyen@intel.com>,
Przemek Kitszel <przemyslaw.kitszel@intel.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Alexander Lobakin <aleksander.lobakin@intel.com>,
Alexei Starovoitov <ast@kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>,
John Fastabend <john.fastabend@gmail.com>,
Stanislav Fomichev <sdf@fomichev.me>,
Michal Kubiak <michal.kubiak@intel.com>,
Jacob Keller <jacob.e.keller@intel.com>,
intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org,
bpf@vger.kernel.org, kernel-team@cloudflare.com,
stable@vger.kernel.org
Subject: Re: [PATCH net] ice: Fix page fault on XDP_PASS skb allocation failure
Date: Fri, 4 Dec 2026 16:37:44 +0100 [thread overview]
Message-ID: <0decb7ce-f359-4d77-9baa-0d9c8f5f6154@kernel.org> (raw)
In-Reply-To: <axLapClCVubkBxg4@boxer>
On 12/4/26 16:22, Maciej Fijalkowski wrote:
> On Wed, Dec 02, 2026 at 05:01:46PM -0600, Frederick Lawler wrote:
>> In the XDP_PASS receive path, xdp_build_skb_from_buff() can return
>> NULL when it cannot allocate an skb head. ICE currently clears
>> xdp->data before checking for that failure, then passes the buffer to
>> libeth_xdp_return_buff_slow(). The return helper needs xdp->data to
>> find and recycle the page-pool buffer, so the NULL pointer can cause
>> a page fault instead.
>>
>> Leave xdp->data intact on the failure path so the helper can recycle
>> the buffer; it clears the pointer afterward. On success, clear the
>> pointer only after the skb has taken ownership of the buffer.
>>
>> Observed on a real machine. Patch not yet tested on a real machine.
>
> Hi Frederick,
> what stopped you from testing?
>
This have been backported to CF kernels and is currently rolling to
production. I guess at the time of writing this was true.
> Besides, nice finding!
> Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Acked-by: Jesper Dangaard Brouer <hawk@kernel.org>
--Jesper
next prev parent reply other threads:[~2026-12-04 15:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 23:01 [PATCH net] ice: Fix page fault on XDP_PASS skb allocation failure Frederick Lawler
2026-12-02 23:05 ` netdev-bot+sinfo
2026-12-02 23:16 ` Keller, Jacob E
2026-12-04 10:54 ` Francisco Javier Felix Belmonte
2026-12-04 14:56 ` Loktionov, Aleksandr
2026-12-04 15:22 ` Maciej Fijalkowski
2026-12-04 15:37 ` Jesper Dangaard Brouer [this message]
2026-12-04 18:34 ` Frederick Lawler
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=0decb7ce-f359-4d77-9baa-0d9c8f5f6154@kernel.org \
--to=hawk@kernel.org \
--cc=aleksander.lobakin@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=anthony.l.nguyen@intel.com \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=fred@cloudflare.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jacob.e.keller@intel.com \
--cc=john.fastabend@gmail.com \
--cc=kernel-team@cloudflare.com \
--cc=kuba@kernel.org \
--cc=maciej.fijalkowski@intel.com \
--cc=michal.kubiak@intel.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=przemyslaw.kitszel@intel.com \
--cc=sdf@fomichev.me \
--cc=stable@vger.kernel.org \
/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