mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vincent Danjean <vdanjean@debian.org>
To: Jiri Slaby <jirislaby@kernel.org>,
	Salvatore Bonaccorso <carnil@debian.org>,
	Nick Kossifidis <mickflemm@gmail.com>,
	Luis Chamberlain <mcgrof@kernel.org>
Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
	1119093@bugs.debian.org
Subject: Re: UBSAN array-index-out-of-bounds in ath5k driver
Date: Mon, 3 Nov 2025 08:26:44 +0100	[thread overview]
Message-ID: <871fce95-f7e4-439b-be4c-4037d4f0088b@debian.org> (raw)
In-Reply-To: <c41cf4eb-cabc-4345-8476-cd7a4d2c4202@kernel.org>

Le 03/11/2025 à 08:04, Jiri Slaby a écrit :
> This™:
> --- a/drivers/net/wireless/ath/ath5k/base.c
> +++ b/drivers/net/wireless/ath/ath5k/base.c
> @@ -1738,7 +1738,8 @@ ath5k_tx_frame_completed(struct ath5k_hw *ah, struct sk_buff *skb,
>          }
> 
>          info->status.rates[ts->ts_final_idx].count = ts->ts_final_retry;
> -       info->status.rates[ts->ts_final_idx + 1].idx = -1;
> +       if (ts->ts_final_idx + 1 < IEEE80211_TX_MAX_RATES)
> +               info->status.rates[ts->ts_final_idx + 1].idx = -1;
> 
>          if (unlikely(ts->ts_status)) {
>                  ah->stats.ack_fail++;
> 
> Vincent, can you test this?

It is not easy for me: the computer with this wifi card is in my parent's home.
I won't go back there until Christmas.

I will see if I can test remotely.

   Regards,
     Vincent

>> FWIW, the effect of the UB is it just overwrites the next member of info->status, i.e. ack_signal.
>>
>> thanks,
> 


      reply	other threads:[~2025-11-03  7:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-01 14:09 Salvatore Bonaccorso
2025-11-03  7:00 ` Jiri Slaby
2025-11-03  7:04   ` Jiri Slaby
2025-11-03  7:26     ` Vincent Danjean [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=871fce95-f7e4-439b-be4c-4037d4f0088b@debian.org \
    --to=vdanjean@debian.org \
    --cc=1119093@bugs.debian.org \
    --cc=carnil@debian.org \
    --cc=jirislaby@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mcgrof@kernel.org \
    --cc=mickflemm@gmail.com \
    /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

all inboxes | Powered by JetHome®