* [ixgbe] Crash when running an XDP program
@ 2025-02-12 12:33 Toke Høiland-Jørgensen
2025-02-12 12:39 ` Maciej Fijalkowski
0 siblings, 1 reply; 4+ messages in thread
From: Toke Høiland-Jørgensen @ 2025-02-12 12:33 UTC (permalink / raw)
To: Tony Nguyen, Jacob Keller, Maciej Fijalkowski, Chandan Kumar Rout
Cc: Yue Haibing, Simon Horman, Samuel Dobron, netdev, intel-wired-lan
Hi folks,
Our LNST testing team uncovered a crash in ixgbe when running an XDP
program, see this report:
https://bugzilla.redhat.com/show_bug.cgi?id=2343204
From looking at the code, it seems to me that the culprit is this commit:
c824125cbb18 ("ixgbe: Fix passing 0 to ERR_PTR in ixgbe_run_xdp()")
after that commit, the IS_ERR(skb) check in ixgbe_put_rx_buffer() no
longer triggers, and that function tries to dereference a NULL skb
pointer after an XDP program dropped the frame.
Could you please fix this?
And, erm, given the number of reviewed-by and tested-by tags in the
commit above, I'm guessing you don't have any XDP tests in your testing
regimen? Any chance you could add that? :)
Thanks!
-Toke
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [ixgbe] Crash when running an XDP program
2025-02-12 12:33 [ixgbe] Crash when running an XDP program Toke Høiland-Jørgensen
@ 2025-02-12 12:39 ` Maciej Fijalkowski
2025-02-12 13:03 ` Toke Høiland-Jørgensen
0 siblings, 1 reply; 4+ messages in thread
From: Maciej Fijalkowski @ 2025-02-12 12:39 UTC (permalink / raw)
To: Toke Høiland-Jørgensen
Cc: Tony Nguyen, Jacob Keller, Chandan Kumar Rout, Yue Haibing,
Simon Horman, Samuel Dobron, netdev, intel-wired-lan
On Wed, Feb 12, 2025 at 01:33:09PM +0100, Toke Høiland-Jørgensen wrote:
> Hi folks,
>
> Our LNST testing team uncovered a crash in ixgbe when running an XDP
> program, see this report:
> https://bugzilla.redhat.com/show_bug.cgi?id=2343204
>
> From looking at the code, it seems to me that the culprit is this commit:
>
> c824125cbb18 ("ixgbe: Fix passing 0 to ERR_PTR in ixgbe_run_xdp()")
>
> after that commit, the IS_ERR(skb) check in ixgbe_put_rx_buffer() no
> longer triggers, and that function tries to dereference a NULL skb
> pointer after an XDP program dropped the frame.
>
> Could you please fix this?
Hi Toke,
https://lore.kernel.org/netdev/20250211214343.4092496-5-anthony.l.nguyen@intel.com/
can you see if this fixes it?
Validation in our company has always been a mystery to me, sorry for this
inconvenience and that we were bad at reviewing :<
>
> And, erm, given the number of reviewed-by and tested-by tags in the
> commit above, I'm guessing you don't have any XDP tests in your testing
> regimen? Any chance you could add that? :)
>
> Thanks!
>
> -Toke
>
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [ixgbe] Crash when running an XDP program
2025-02-12 12:39 ` Maciej Fijalkowski
@ 2025-02-12 13:03 ` Toke Høiland-Jørgensen
2025-02-20 8:14 ` Samuel Dobron
0 siblings, 1 reply; 4+ messages in thread
From: Toke Høiland-Jørgensen @ 2025-02-12 13:03 UTC (permalink / raw)
To: Maciej Fijalkowski
Cc: Tony Nguyen, Jacob Keller, Chandan Kumar Rout, Yue Haibing,
Simon Horman, Samuel Dobron, netdev, intel-wired-lan
Maciej Fijalkowski <maciej.fijalkowski@intel.com> writes:
> On Wed, Feb 12, 2025 at 01:33:09PM +0100, Toke Høiland-Jørgensen wrote:
>> Hi folks,
>>
>> Our LNST testing team uncovered a crash in ixgbe when running an XDP
>> program, see this report:
>> https://bugzilla.redhat.com/show_bug.cgi?id=2343204
>>
>> From looking at the code, it seems to me that the culprit is this commit:
>>
>> c824125cbb18 ("ixgbe: Fix passing 0 to ERR_PTR in ixgbe_run_xdp()")
>>
>> after that commit, the IS_ERR(skb) check in ixgbe_put_rx_buffer() no
>> longer triggers, and that function tries to dereference a NULL skb
>> pointer after an XDP program dropped the frame.
>>
>> Could you please fix this?
>
> Hi Toke,
>
> https://lore.kernel.org/netdev/20250211214343.4092496-5-anthony.l.nguyen@intel.com/
>
> can you see if this fixes it?
Ah! I went looking in the -net and -net-next git trees to see if you'd
already fixed this, but didn't check the list. Thanks for the pointer,
will see if we can get this tested.
> Validation in our company has always been a mystery to me, sorry for this
> inconvenience and that we were bad at reviewing :<
No worries, bugs happen; thankfully we caught it early. Also mostly
meant it as a nudge to try to give XDP testing a more prominent spot :)
-Toke
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [ixgbe] Crash when running an XDP program
2025-02-12 13:03 ` Toke Høiland-Jørgensen
@ 2025-02-20 8:14 ` Samuel Dobron
0 siblings, 0 replies; 4+ messages in thread
From: Samuel Dobron @ 2025-02-20 8:14 UTC (permalink / raw)
To: Toke Høiland-Jørgensen
Cc: Maciej Fijalkowski, Tony Nguyen, Jacob Keller, Chandan Kumar Rout,
Yue Haibing, Simon Horman, netdev, intel-wired-lan
Hey,
Thanks for cooperation. The issue seems to be fixed in
kernel-6.14.0-0.rc3.29.eln146.
Sam.
On Wed, Feb 12, 2025 at 2:04 PM Toke Høiland-Jørgensen <toke@redhat.com> wrote:
>
> Maciej Fijalkowski <maciej.fijalkowski@intel.com> writes:
>
> > On Wed, Feb 12, 2025 at 01:33:09PM +0100, Toke Høiland-Jørgensen wrote:
> >> Hi folks,
> >>
> >> Our LNST testing team uncovered a crash in ixgbe when running an XDP
> >> program, see this report:
> >> https://bugzilla.redhat.com/show_bug.cgi?id=2343204
> >>
> >> From looking at the code, it seems to me that the culprit is this commit:
> >>
> >> c824125cbb18 ("ixgbe: Fix passing 0 to ERR_PTR in ixgbe_run_xdp()")
> >>
> >> after that commit, the IS_ERR(skb) check in ixgbe_put_rx_buffer() no
> >> longer triggers, and that function tries to dereference a NULL skb
> >> pointer after an XDP program dropped the frame.
> >>
> >> Could you please fix this?
> >
> > Hi Toke,
> >
> > https://lore.kernel.org/netdev/20250211214343.4092496-5-anthony.l.nguyen@intel.com/
> >
> > can you see if this fixes it?
>
> Ah! I went looking in the -net and -net-next git trees to see if you'd
> already fixed this, but didn't check the list. Thanks for the pointer,
> will see if we can get this tested.
>
> > Validation in our company has always been a mystery to me, sorry for this
> > inconvenience and that we were bad at reviewing :<
>
> No worries, bugs happen; thankfully we caught it early. Also mostly
> meant it as a nudge to try to give XDP testing a more prominent spot :)
>
> -Toke
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-02-20 8:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-12 12:33 [ixgbe] Crash when running an XDP program Toke Høiland-Jørgensen
2025-02-12 12:39 ` Maciej Fijalkowski
2025-02-12 13:03 ` Toke Høiland-Jørgensen
2025-02-20 8:14 ` Samuel Dobron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).