Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp13505694rwb; Sun, 27 Nov 2022 06:47:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf4/Zu5WNpHRici/RujKOLvqHlOfheL6PSXH4gVqcIZsiBGQHiwH7ZF7bH1FaVTpv6Ka7SUV X-Received: by 2002:a17:90a:5803:b0:218:94be:caa1 with SMTP id h3-20020a17090a580300b0021894becaa1mr40586631pji.11.1669560433043; Sun, 27 Nov 2022 06:47:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669560433; cv=none; d=google.com; s=arc-20160816; b=evjQug/yOVzAdLYqAH58e9VMFX91ehfXzuwzt/gMykVZ/vljLlpitmJgG8RYaxwdAa c0GTLPIAbQ8Yb40CgMElFV3YNXl9nM6HfyVX5l8hLmErDNcCgiD8clH+Ao10RPuRG+1v OIq/1PD6rbd0Z5CKRnjr5xkTOdNe+Un2QwL2eZsMzzUq46I80IdmoDo8fP+FO0G+WOTo /T8UyZA4+8AJiLHY6xaaCTAzoZ+QqlUyODWExZqbkMNMD9S3vjhK4AJbwMnMI+GE4K3x Tp+TSj0/3TWClFZjbbbYPRavvEU5o8/B4PiP3YEPIDPuXV+eZtZePfbiSRN/C4hBmOoN oo2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8cgHSPBj9NAR3GliVBYUYBwjL9DKVTnKCj2I4eiOCUg=; b=Jlqfobllj8Hby2+zQJaKtjEsgiTQgJVI0CvyPOkOfoVcKd8U5AJVTs/UAgSuFKcLU0 IgKp0QAetaLetXPCw7JgfUKpZNmNwBcAHc1JcH/Lbud6KyNh2oHUKrkNUpHQ6z6Qkfyh qa7xLFv3t6sX3IE7JEKClD3UwUxdbGTixwj5mNDROGUeotzaiJJZnT6q59LJcTlq6kui /dU9c0//yon+KCKD92kfafV+iD0vtz2vOZBDod8t8bJUg3SHlnZ2YBr85Qe2YjK8GFXE 8UZqhzATEnFDme82xeSxZc8wOqoQp3vOXPmpAon1AFRXups2FzYyhmErOX+oPJb4NLoF y5uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b=RZa8O624; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wp.pl Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b15-20020a170902d50f00b001781e393237si10580063plg.443.2022.11.27.06.47.00; Sun, 27 Nov 2022 06:47:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b=RZa8O624; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wp.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229514AbiK0OiD (ORCPT + 67 others); Sun, 27 Nov 2022 09:38:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbiK0OiD (ORCPT ); Sun, 27 Nov 2022 09:38:03 -0500 Received: from mx3.wp.pl (mx3.wp.pl [212.77.101.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F547BC89 for ; Sun, 27 Nov 2022 06:38:00 -0800 (PST) Received: (wp-smtpd smtp.wp.pl 13133 invoked from network); 27 Nov 2022 15:37:57 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1669559877; bh=8cgHSPBj9NAR3GliVBYUYBwjL9DKVTnKCj2I4eiOCUg=; h=From:To:Cc:Subject; b=RZa8O624vKfS8SBhgPea4Kl5aaUtjgwd36uyI60ZJaRdSzssNcOOYOqQmzPExKzN2 Yw4n5zZE/+YqSIEeHDO6nzuly45JN+H7/MD8RRisbP+pg2jJWXi/itzducM7A8UBsu XdHQ+Eni44CN7TZfFoXY31x2BdABqQE0VsGdmGNI= Received: from 89-64-15-29.dynamic.chello.pl (HELO localhost) (stf_xl@wp.pl@[89.64.15.29]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 27 Nov 2022 15:37:57 +0100 Date: Sun, 27 Nov 2022 15:37:56 +0100 From: Stanislaw Gruszka To: Ioannis Barkas Cc: linux-wireless@vger.kernel.org Subject: Re: PRO/Wireless 4965 Intel WPA2,3 SSID connection problem #1 Message-ID: <20221127143756.GA550513@wp.pl> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-WP-MailID: fd97ddb0b2fed42c01a63ff968de9540 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000000 [MYNk] X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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] > [ 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;