public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* BUG: KASAN: slab-out-of-bounds in ice_start_xmit+0x57cc/0x5ef0 [ice]
@ 2026-04-30 10:17 Thomas Bogendoerfer
  0 siblings, 0 replies; only message in thread
From: Thomas Bogendoerfer @ 2026-04-30 10:17 UTC (permalink / raw)
  To: netdev

While working on another ice issue, I've noticed a KASAN splat, when using
xskxceiver test program. This is caused by

        eth = (struct ethhdr *)skb_mac_header(skb);
...
	                           eth->h_proto == htons(ETH_P_LLDP)) &&

in ice_xmit_frame_ring().

It would be easy to check for the unset mac_header condition in ice
driver (there are other drivers using skb_mac_header() in .ndo_start_xmit).
But since __dev_queue_xmit() is doing a skb_reset_mac_header(), shouldn't
__dev_direct_xmit() do the same ?

Thomas.

-- 
SUSE Software Solutions Germany GmbH__dev_queue_xmit
HRB 36809 (AG Nürnberg)
Geschäftsführer: Jochen Jaser, Andrew McDonald, Werner Knoblich

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-04-30 10:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-30 10:17 BUG: KASAN: slab-out-of-bounds in ice_start_xmit+0x57cc/0x5ef0 [ice] Thomas Bogendoerfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox