From: Stanislaw Gruszka <stf_xl@wp.pl>
To: Ioannis Barkas <jnyb.de@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: PRO/Wireless 4965 Intel WPA2,3 SSID connection problem #1
Date: Sun, 27 Nov 2022 15:37:56 +0100 [thread overview]
Message-ID: <20221127143756.GA550513@wp.pl> (raw)
In-Reply-To: <CADUzMVbWG9HC7gh=z_HMm2J7Wjgfbr4myY9YGHsPB4jGc6H+yQ@mail.gmail.com>
On Fri, Nov 25, 2022 at 09:44:17PM +0200, Ioannis Barkas wrote:
Hi
> /build/linux-JDy9aa/linux-5.19.0/drivers/net/wireless/intel/iwlegacy/4965-rs.c:671:18
> [ 700.609078] shift exponent -1 is negative
> [ 700.609088] CPU: 5 PID: 0 Comm: swapper/5 Tainted: P O
> 5.19.0-21-generic #21-Ubuntu
> [ 700.609099] Hardware name: Gigabyte Technology Co., Ltd.
> GA-880GMA-USB3/GA-880GMA-USB3, BIOS F4e 05/24/2012
> [ 700.609105] Call Trace:
> [ 700.609111] <IRQ>
> [ 700.609120] show_stack+0x4e/0x61
> [ 700.609139] dump_stack_lvl+0x4a/0x6d
> [ 700.609153] dump_stack+0x10/0x18
> [ 700.609163] ubsan_epilogue+0x9/0x43
> [ 700.609174] __ubsan_handle_shift_out_of_bounds.cold+0x61/0xef
> [ 700.609189] ? __smp_call_single_queue+0x61/0xa0
> [ 700.609203] il4965_rs_get_adjacent_rate.constprop.0.cold+0x17/0x9c [iwl4965]
Could you test if below patch make this UBSAN error gone and card is working properly ?
Regards
Stanislaw
diff --git a/drivers/net/wireless/intel/iwlegacy/4965-rs.c b/drivers/net/wireless/intel/iwlegacy/4965-rs.c
index 718efb1aa1b0..2baefb7c152c 100644
--- a/drivers/net/wireless/intel/iwlegacy/4965-rs.c
+++ b/drivers/net/wireless/intel/iwlegacy/4965-rs.c
@@ -667,7 +667,7 @@ il4965_rs_get_adjacent_rate(struct il_priv *il, u8 idx, u16 rate_mask,
u32 mask;
/* Find the previous rate that is in the rate mask */
- i = idx - 1;
+ i = max_t(int, idx - 1, 0);
for (mask = (1 << i); i >= 0; i--, mask >>= 1) {
if (rate_mask & mask) {
low = i;
next prev parent reply other threads:[~2022-11-27 14:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-25 19:44 PRO/Wireless 4965 Intel WPA2,3 SSID connection problem #1 Ioannis Barkas
2022-11-27 14:37 ` Stanislaw Gruszka [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-11-27 18:38 Ioannis Barkas
2022-11-28 22:34 Ioannis Barkas
2022-11-29 17:46 ` Stanislaw Gruszka
2022-11-29 20:01 Ioannis Barkas
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=20221127143756.GA550513@wp.pl \
--to=stf_xl@wp.pl \
--cc=jnyb.de@gmail.com \
--cc=linux-wireless@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.