All of lore.kernel.org
 help / color / mirror / Atom feed
From: syzbot <syzbot+62d7eef57b09bfebcd84@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [syzbot] [wireless?] WARNING in rate_control_rate_init
Date: Wed, 29 Nov 2023 03:04:28 -0800	[thread overview]
Message-ID: <000000000000c01a51060b487f55@google.com> (raw)
In-Reply-To: <000000000000efc64705ff8286a1@google.com>

For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.

***

Subject: [wireless?] WARNING in rate_control_rate_init
Author: eadavis@qq.com

please test WARNING in rate_control_rate_init

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 6e2332e0ab53

diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 606b1b2e4123..d0b5a5dd7410 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -1788,10 +1788,10 @@ static int sta_link_apply_parameters(struct ieee80211_local *local,
 					  lockdep_is_held(&local->hw.wiphy->mtx));
 
 	/*
-	 * If there are no changes, then accept a link that doesn't exist,
+	 * If there are no changes, then accept a link that exist,
 	 * unless it's a new link.
 	 */
-	if (params->link_id < 0 && !new_link &&
+	if ((sta->sta.valid_links & BIT(params->link_id)) && !new_link &&
 	    !params->link_mac && !params->txpwr_set &&
 	    !params->supported_rates_len &&
 	    !params->ht_capa && !params->vht_capa &&
-- 
2.43.0


  parent reply	other threads:[~2023-11-29 11:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-02 15:15 [syzbot] [wireless?] WARNING in rate_control_rate_init (2) syzbot
2023-11-28 23:57 ` syzbot
2023-11-29  3:06 ` [syzbot] [wireless?] WARNING in rate_control_rate_init syzbot
2023-11-29  4:04 ` syzbot
2023-11-29  5:48 ` [PATCH] wifi: mac80211: sband's null check should precede params Edward Adam Davis
2023-11-29  6:57   ` Johannes Berg
2023-11-29  8:18     ` Edward Adam Davis
2023-11-29  8:33       ` Johannes Berg
2023-11-29  8:48         ` Edward Adam Davis
2023-11-29  9:15           ` Johannes Berg
2023-11-29 12:17             ` [PATCH V2] wifi: mac80211: check if the existing link config remains unchanged Edward Adam Davis
2023-11-29 11:04 ` syzbot [this message]
2023-11-29 11:26 ` [syzbot] [wireless?] WARNING in rate_control_rate_init syzbot
  -- strict thread matches above, loose matches on Subject: below --
2023-11-25 13:21 [syzbot] [crypto?] INFO: task hung in hwrng_fillfn syzbot
2023-11-29  2:59 ` [syzbot] [wireless?] WARNING in rate_control_rate_init syzbot

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=000000000000c01a51060b487f55@google.com \
    --to=syzbot+62d7eef57b09bfebcd84@syzkaller.appspotmail.com \
    --cc=linux-kernel@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.