linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "C. McPherson" <ccmcphe@verizon.net>
To: Zefir Kurtisi <zefir.kurtisi@neratec.com>
Cc: mcgrof@kernel.org, lf_driver_backport@lists.linux-foundation.org,
	linux-wireless@vger.kernel.org, linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] compat: fix system crash on 2.6.35 when flushing work
Date: Sun, 12 Aug 2012 12:19:42 -0400	[thread overview]
Message-ID: <5027D79E.9050607@verizon.net> (raw)
In-Reply-To: <1342168714-3361-1-git-send-email-zefir.kurtisi@neratec.com>

Zefir:
Thanks a lot for this reference. All my systems are running Ubuntu 
10.04/10.10. I was updating our compat-wireless with the stable 
compat-wireless 3.5
and came across this crash in our testing lab. I added your patch and 
the stable compat-wireless 3.5 is now working with our Ubuntu.

-Tex


On 07/13/2012 04:38 AM, Zefir Kurtisi wrote:
> Ubuntu 10.10 stock kernel (2.6.35-22-generic) crashes in
> compat_flush_scheduled_work(), that is called e.g. when
> mac80211 module is unloaded.
>
> The problem was introduced with 80bf8a83
> compat: backport system work queues system_wq and system_long_wq
>
> The crash happens in compat_flush_scheduled_work() where both
> flush_workqueue() and flush_scheduled_work() are called successively.
> Removing one of them resolves the issue.
>
> All compat-wireless tarballs after 2012-03-18 are affected.
>
> Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
> ---
>   compat/compat-2.6.36.c |    1 -
>   1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/compat/compat-2.6.36.c b/compat/compat-2.6.36.c
> index 9190ecd..8f25be0 100644
> --- a/compat/compat-2.6.36.c
> +++ b/compat/compat-2.6.36.c
> @@ -140,7 +140,6 @@ void compat_flush_scheduled_work(void)
>   	 * go with the old kernel's one first for now (keventd_wq) and
>   	 * if think its reasonable later we can flip this around.
>   	 */
> -	flush_workqueue(system_wq);
>   	flush_scheduled_work();
>   }
>   EXPORT_SYMBOL_GPL(compat_flush_scheduled_work);


  parent reply	other threads:[~2012-08-12 17:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-13  8:38 [PATCH] compat: fix system crash on 2.6.35 when flushing work Zefir Kurtisi
2012-07-18 15:24 ` Luis R. Rodriguez
2012-08-07 17:47 ` Luis R. Rodriguez
2012-08-12 16:19 ` C. McPherson [this message]
2012-08-13 11:15   ` Zefir Kurtisi

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=5027D79E.9050607@verizon.net \
    --to=ccmcphe@verizon.net \
    --cc=lf_driver_backport@lists.linux-foundation.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mcgrof@kernel.org \
    --cc=zefir.kurtisi@neratec.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;
as well as URLs for NNTP newsgroup(s).