All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stanislaw Gruszka <sgruszka@redhat.com>
To: "Ortwin Glück" <odi@odi.ch>
Cc: Arend van Spriel <arend@broadcom.com>,
	linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org
Subject: Re: [BUG] 3.10 regression: hang on suspend
Date: Fri, 19 Jul 2013 14:11:03 +0200	[thread overview]
Message-ID: <20130719121102.GB1570@redhat.com> (raw)
In-Reply-To: <20130719120842.GA1570@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1211 bytes --]

On Fri, Jul 19, 2013 at 02:08:42PM +0200, Stanislaw Gruszka wrote:
> On Thu, Jul 18, 2013 at 08:57:59PM +0200, Ortwin Glück wrote:
> > On 07/18/2013 12:55 PM, Stanislaw Gruszka wrote:
> > >objdump -r -d --prefix-addresses net/mac80211/mac80211.ko > mac80211.txt
> > >objdump -r -d --prefix-addresses drivers/net/wireless/iwlwifi/dvm/iwldvm.ko > iwldvm.txt
> > 
> > Here you go. Please note, that the offsets have changed due to
> > .config changes. New trace attached. Transcript:
> > 
> > iwlagn_mac_remove_interface+0x5f/0x160
> > __ieee80211_suspend+0x4a1/0xb30
> > ieee80211_suspend+0x1a/0x20
> 
> Crash happen because we call iwlagn_mac_remove_interface with
> vif_priv->ctx NULL. I do not see any possibility of that other than
> doing ->remove_interface without previous ->add_interface, but I do
> not see how that possible. 
> 
> Does crash happen on any suspend or on second one ?  
> 
> I'm attaching patch, which should prevent crash (but not fix the issue,
> just workaround it), plese apply it. If it make suspend work, please then
> reload iwlwifi module with debug=0x3 option, suspend/resume machine and
> provide dmesg output after that.

This time really attaching forgotten patch.

Stanislaw

[-- Attachment #2: iwlwifi_check_ctx_null.patch --]
[-- Type: text/plain, Size: 501 bytes --]

diff --git a/drivers/net/wireless/iwlwifi/dvm/mac80211.c b/drivers/net/wireless/iwlwifi/dvm/mac80211.c
index cab23af..7f25fe1 100644
--- a/drivers/net/wireless/iwlwifi/dvm/mac80211.c
+++ b/drivers/net/wireless/iwlwifi/dvm/mac80211.c
@@ -1536,6 +1536,9 @@ static void iwlagn_mac_remove_interface(struct ieee80211_hw *hw,
 
 	IWL_DEBUG_MAC80211(priv, "enter\n");
 
+	if (WARN(ctx == NULL, "remove interface with NULL ctx\n"))
+		return;
+
 	mutex_lock(&priv->mutex);
 
 	if (WARN_ON(ctx->vif != vif)) {

  reply	other threads:[~2013-07-19 12:08 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-15 19:40 [BUG] 3.10 regression: hang on suspend Ortwin Glück
2013-07-16  6:56 ` Stanislaw Gruszka
2013-07-16  7:34   ` Ortwin Glück
2013-07-16  9:49     ` Arend van Spriel
2013-07-16 18:23       ` Ortwin Glück
2013-07-17 12:29         ` Stanislaw Gruszka
     [not found]           ` <51E6E1AB.5010300@odi.ch>
2013-07-18 10:55             ` Stanislaw Gruszka
     [not found]               ` <51E83AB7.6020002@odi.ch>
2013-07-19 12:08                 ` Stanislaw Gruszka
2013-07-19 12:11                   ` Stanislaw Gruszka [this message]
2013-07-19 12:15                   ` Ortwin Glück
2013-07-19 18:46                   ` Ortwin Glück
2013-07-22 11:22                     ` Stanislaw Gruszka
2013-07-22 19:05                       ` Ortwin Glück

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=20130719121102.GB1570@redhat.com \
    --to=sgruszka@redhat.com \
    --cc=arend@broadcom.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=odi@odi.ch \
    /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.