All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Bogendoerfer <tbogendoerfer@suse.de>
To: netdev@vger.kernel.org
Subject: BUG: KASAN: slab-out-of-bounds in ice_start_xmit+0x57cc/0x5ef0 [ice]
Date: Thu, 30 Apr 2026 12:17:15 +0200	[thread overview]
Message-ID: <20260430121715.2d306d73@samweis> (raw)

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

                 reply	other threads:[~2026-04-30 10:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20260430121715.2d306d73@samweis \
    --to=tbogendoerfer@suse.de \
    --cc=netdev@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.