Bug 185255 - kernel-2.6.22 mac80211 deadlock bug and fix
Bug#: 185255 Product:  Gentoo Linux Version: 2006.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: critical Priority: P2
Resolution: FIXED Assigned To: dsd@gentoo.org Reported By: seventhguardian@gmail.com
Component: Core system
URL:  http://marc.info/?l=linux-wireless&m=118436322132249&w=2
Summary: kernel-2.6.22 mac80211 deadlock bug and fix
Keywords:  
Status Whiteboard: 
Opened: 2007-07-14 00:38 0000
Description:   Opened: 2007-07-14 00:38 0000
Hello,

There's a bug in mac80211 (included recently in the 2.6.22 kernel) that can
cause some bad deadlocks. In my case I found the problem in iwlwifi in
conjunction with wpa_supplicant.

There is already a patch in wireless-dev that should be included in the
mainline kernel, but before it does the patch can be included in the
gentoo-kernel patchset.

The relevant thread is here:
http://marc.info/?l=linux-wireless&m=118436322132249&w=2

The patch that fixes it is here:
http://marc.info/?l=linux-wireless&m=118309770324214&q=p5

Cheers,
  Renato

------- Comment #1 From Daniel Drake 2007-07-22 04:48:01 0000 -------
Thanks, will include in next release

------- Comment #2 From David Carlos Manuelda 2007-07-23 12:17:17 0000 -------
(In reply to comment #0)
> Hello,
> 
> There's a bug in mac80211 (included recently in the 2.6.22 kernel) that can
> cause some bad deadlocks. In my case I found the problem in iwlwifi in
> conjunction with wpa_supplicant.
> 
> There is already a patch in wireless-dev that should be included in the
> mainline kernel, but before it does the patch can be included in the
> gentoo-kernel patchset.
> 
> The relevant thread is here:
> http://marc.info/?l=linux-wireless&m=118436322132249&w=2
> 
> The patch that fixes it is here:
> http://marc.info/?l=linux-wireless&m=118309770324214&q=p5
> 
> Cheers,
>   Renato
> 

Next version of vanilla's kernel will include this patch and other things
related to mac80211 too (packed injection, etc..).

I suggest waiting to kernel 2.6.23 to test, and never have 2.6.22 marked as
stable.

See http://www.kernel.org/pub/linux/kernel/v2.6/testing/ChangeLog-2.6.23-rc1

------- Comment #3 From Daniel Drake 2007-07-23 19:22:17 0000 -------
No. We will backport the fix and mark 2.6.22 stable in the usual timeframe.

------- Comment #4 From David Carlos Manuelda 2007-07-23 20:07:10 0000 -------
(In reply to comment #3)
> No. We will backport the fix and mark 2.6.22 stable in the usual timeframe.
> 

Ok, any possibility to have the other mac80211 usefull patches besides this one
as well in next release?

------- Comment #5 From Daniel Drake 2007-07-23 20:27:27 0000 -------
bug fixes (which affect you): yes, file a bug
everything else: no

------- Comment #6 From Daniel Drake 2007-07-28 16:01:44 0000 -------
Fixed in gentoo-sources-2.6.22-r2 (genpatches-2.6.22-3)