mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Edward Adam Davis <eadavis@qq.com>
To: kvalo@kernel.org
Cc: eadavis@qq.com, linux-kernel@vger.kernel.org,
	linux-usb@vger.kernel.org, linux-wireless@vger.kernel.org,
	netdev@vger.kernel.org, srini.raju@purelifi.com,
	syzbot+51a42f7c2e399392ea82@syzkaller.appspotmail.com,
	syzkaller-bugs@googlegroups.com
Subject: Re: [PATCH] wifi: plfxlc: remove assert for mac->lock
Date: Tue, 30 Jul 2024 19:46:50 +0800	[thread overview]
Message-ID: <tencent_48A8AECCEEC30C8EE7C8C6F692C2064D4906@qq.com> (raw)
In-Reply-To: <877cd39nhg.fsf@kernel.org>

On Tue, 30 Jul 2024 13:35:07 +0300, Kalle Valo wrote:
> > syzbot report WARNING in plfxlc_mac_release, according to the context,
> > there is not need assert for mac->lock.
> 
> The commit message should explain _why_ the assert is not needed.
> Otherwise it looks that you are randomly removing it to get rid of the
> warning.
mac->lock is used to protect mac data, but after calling plfxlc_mac_release(), 
there are two functions:ieee80211_unregister_hw() and ieee80211_free_hw(),
there is no action to operate on mac data in these two functions, so mac->lock
is not required.

On the other hand, there is no holding action for mac->lock before calling plfxlc_mac_release.

--
Edward


  reply	other threads:[~2024-07-30 11:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-29 18:50 [syzbot] [wireless?] WARNING in plfxlc_mac_release syzbot
2024-07-30  3:06 ` Edward Adam Davis
2024-07-30  3:40   ` syzbot
2024-07-30  4:28 ` [PATCH] wifi: plfxlc: remove assert for mac->lock Edward Adam Davis
2024-07-30 10:35   ` Kalle Valo
2024-07-30 11:46     ` Edward Adam Davis [this message]
2024-11-28 11:58 ` [syzbot] [wireless?] WARNING in plfxlc_mac_release 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=tencent_48A8AECCEEC30C8EE7C8C6F692C2064D4906@qq.com \
    --to=eadavis@qq.com \
    --cc=kvalo@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=srini.raju@purelifi.com \
    --cc=syzbot+51a42f7c2e399392ea82@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.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®