Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 437898 - net-wireless/broadcom-sta-5.100.82.112-r2 with gentoo-sources-3.6.x - general protection fault in wl_tkip_printstats
Summary: net-wireless/broadcom-sta-5.100.82.112-r2 with gentoo-sources-3.6.x - general...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: M. B.
URL:
Whiteboard:
Keywords:
: 439062 (view as bug list)
Depends on:
Blocks: 468388
  Show dependency tree
 
Reported: 2012-10-10 21:52 UTC by Evan Teran
Modified: 2015-10-18 06:14 UTC (History)
12 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Crash 0 (crash-0.jpg,257.91 KB, image/jpeg)
2012-10-10 21:53 UTC, Evan Teran
Details
Crash 1 (crash-1.jpg,246.09 KB, image/jpeg)
2012-10-10 21:53 UTC, Evan Teran
Details
Crash 2 (crash-2.jpg,266.37 KB, image/jpeg)
2012-10-10 21:53 UTC, Evan Teran
Details
force broadcom-sta to use WEXT api for kernel >= 3.6 (broadcom-sta-force-use-wext-for-3.6.patch,392 bytes, patch)
2012-10-14 02:12 UTC, bingquick
Details | Diff
Output of emerge =broadcom-sta-5.100.82.112-r3 compile failing (emerge_output,6.65 KB, text/plain)
2012-10-14 21:05 UTC, William L. Thomson Jr.
Details
broadcom-sta.ebuild patch similar above .... (broadcom-sta.patch,944 bytes, patch)
2012-10-15 17:22 UTC, Ulenrich
Details | Diff
@Federico - I guess the NM problem is the naming issue patched with this one ... (broadcom-sta-5.100.82.112-eth-to-wlan.patch,343 bytes, text/plain)
2012-10-18 23:49 UTC, Ulenrich
Details
the ebuild not cluttered with absulute paths (broadcom-sta-5.100.82.112-r3.ebuild,2.16 KB, text/plain)
2012-10-18 23:54 UTC, Ulenrich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Evan Teran 2012-10-10 21:52:59 UTC
As the subject states, net-wireless/broadcom-sta-5.100.82.112-r2 causes crashes on gentoo-sources-3.6.x kernels. I experience the crash during boot, so it's not exactly easy to give details in a very easy to use format, but I'll attach images of the screen during the crash.

If these prove insufficient, I suppose I could prevent the module from loading during boot, then when system is up, load it and see if I can cut/paste the error screen, not sure if it'll hard lock the system or not.

Reproducible: Always
Comment 1 Evan Teran 2012-10-10 21:53:27 UTC
Created attachment 326236 [details]
Crash 0
Comment 2 Evan Teran 2012-10-10 21:53:42 UTC
Created attachment 326238 [details]
Crash 1
Comment 3 Evan Teran 2012-10-10 21:53:55 UTC
Created attachment 326240 [details]
Crash 2
Comment 4 arikuu 2012-10-11 03:04:59 UTC
Same here
last part of dmesg:
[   10.283413] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9
[   10.283532] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input10
[   10.283599] input: HDA Intel PCH Front Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input11
[   14.381189] EXT4-fs (sda3): re-mounted. Opts: (null)
[   14.582879] Adding 2097148k swap on /dev/sda2.  Priority:-1 extents:1 across:2097148k 
[   17.863471] r8169 0000:07:00.0: eth0: unable to load firmware patch rtl_nic/rtl8168e-2.fw (-2)
[   17.876687] r8169 0000:07:00.0: eth0: link down
[   17.876708] r8169 0000:07:00.0: eth0: link down
[   19.653331] r8169 0000:07:00.0: eth0: link up
[   24.976552] ------------[ cut here ]------------
[   24.977405] kernel BUG at include/net/cfg80211.h:2473!
[   24.978261] invalid opcode: 0000 [#1] SMP 
[   24.979129] Modules linked in: snd_hda_codec_hdmi snd_hda_codec_idt wl(PO) snd_hda_intel snd_hda_codec snd_hwdep
[   24.980079] CPU 2 
[   24.980095] Pid: 1943, comm: wpa_supplicant Tainted: P           O 3.6.0-gentoo #10 Hewlett-Packard HP Pavilion dv6 Notebook PC/3581
[   24.982007] RIP: 0010:[<ffffffffa00fcc25>]  [<ffffffffa00fcc25>] wl_tkip_printstats+0x92f/0x448c [wl]
[   24.983064] RSP: 0018:ffff880155ed9b68  EFLAGS: 00010246
[   24.984110] RAX: 0000000000000001 RBX: ffff880155e964a0 RCX: 0000000000000000
[   24.985182] RDX: 0000000000000001 RSI: ffff880155210400 RDI: 0000000000000000
[   24.986251] RBP: ffff880155ed9b68 R08: 000000000000001a R09: ffff880155ed9d84
[   24.986252] R10: 00000000000005a0 R11: 0000000000000003 R12: ffff880155210400
[   24.986252] R13: ffff880155e96000 R14: ffff880155210400 R15: 0000000000000001
[   24.986254] FS:  00007f189c5c3700(0000) GS:ffff88015fa80000(0000) knlGS:0000000000000000
[   24.986255] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   24.986256] CR2: 00007f189b427430 CR3: 0000000155f45000 CR4: 00000000000407e0
[   24.986257] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   24.986257] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[   24.986259] Process wpa_supplicant (pid: 1943, threadinfo ffff880155ed8000, task ffff880154a42120)
[   24.986259] Stack:
[   24.986261]  ffff880155ed9bb8 ffffffffa00fee86 ffff880155ed9b88 ffff880159dd5800
[   24.986263]  0000000000000000 ffff880159dd5800 ffff880155210400 ffff880155e96000
[   24.986264]  0000000000000000 ffff880155e961e0 ffff880155ed9c38 ffffffff8149c2e8
[   24.986264] Call Trace:
[   24.986272]  [<ffffffffa00fee86>] wl_tkip_printstats+0x2b90/0x448c [wl]
[   24.986277]  [<ffffffff8149c2e8>] cfg80211_wext_siwscan+0x281/0x2d9
[   24.986279]  [<ffffffff814b2245>] ioctl_standard_iw_point+0x1cd/0x27a
[   24.986282]  [<ffffffff814d2203>] ? __cond_resched_softirq+0x6/0x3e
[   24.986286]  [<ffffffff8149c067>] ? cfg80211_unlock_rdev+0x1f/0x1f
[   24.986289]  [<ffffffff810e11ca>] ? full_name_hash+0x19/0x5b
[   24.986291]  [<ffffffff810e11ca>] ? full_name_hash+0x19/0x5b
[   24.986293]  [<ffffffff814b25c8>] ioctl_standard_call+0x8a/0xa3
[   24.986295]  [<ffffffff81441e65>] ? __dev_get_by_name+0x3b/0x50
[   24.986297]  [<ffffffff814b2e8e>] ? iw_handler_get_private+0x4b/0x4b
[   24.986298]  [<ffffffff814b253e>] ? call_commit_handler+0x2c/0x2c
[   24.986300]  [<ffffffff814b2380>] wext_ioctl_dispatch+0x8e/0x190
[   24.986301]  [<ffffffff814b269f>] wext_handle_ioctl+0x38/0x74
[   24.986303]  [<ffffffff8144436a>] dev_ioctl+0x621/0x64c
[   24.986306]  [<ffffffff810bfc4a>] ? handle_mm_fault+0xeb/0x100
[   24.986308]  [<ffffffff8142fb31>] sock_ioctl+0x48/0x217
[   24.986310]  [<ffffffff810e71a4>] do_vfs_ioctl+0x44d/0x48e
[   24.986313]  [<ffffffff811aa82e>] ? inode_has_perm.constprop.62+0x2d/0x2f
[   24.986315]  [<ffffffff811aac41>] ? file_has_perm+0x6f/0x7a
[   24.986317]  [<ffffffff810e7236>] sys_ioctl+0x51/0x77
[   24.986319]  [<ffffffff814d35e2>] system_call_fastpath+0x16/0x1b
[   24.986332] Code: 48 c7 c7 eb fb 24 a0 e8 d9 d2 3c e1 eb 0a 4c 89 ef 31 db e8 a0 f7 ff ff 5e 89 d8 5b 41 5c 41 5d 5d c3 55 48 85 ff 48 89 e5 75 02 <0f> 0b 48 8b 3f e8 7d fe ff ff 5d c3 55 41 89 c8 48 89 e5 41 55 
[   24.986338] RIP  [<ffffffffa00fcc25>] wl_tkip_printstats+0x92f/0x448c [wl]
[   24.986338]  RSP <ffff880155ed9b68>
[   24.986361] ---[ end trace 4cfcdec420674d49 ]---
Comment 5 bingquick 2012-10-14 02:08:36 UTC
I've experienced same error too, I guess the broacom-sta code doesn't handle the new 80211 structure in new 3.6 kernel well. You can workaround it by forcing broadcom-sta to use the old WEXT api. Here's my ebuild patch:

diff -cN /usr/portage/net-wireless/broadcom-sta/broadcom-sta-5.100.82.112-r2.ebuild broadcom-sta-5.100.82.112-r3.ebuild

*** /usr/portage/net-wireless/broadcom-sta/broadcom-sta-5.100.82.112-r2.ebuild	Tue May 22 13:01:23 2012
--- broadcom-sta-5.100.82.112-r3.ebuild	Sun Oct 14 12:53:41 2012
***************
*** 43,48 ****
--- 43,51 ----
  	linux-mod_pkg_setup
  
  	BUILD_PARAMS="-C ${KV_DIR} M=${S}"
+ 	if kernel_is ge 3 6 0; then
+ 		BUILD_PARAMS="${BUILD_PARAMS} API=WEXT"
+ 	fi
  	BUILD_TARGETS="wl.ko"
  }
Comment 6 bingquick 2012-10-14 02:12:17 UTC
Created attachment 326502 [details, diff]
force broadcom-sta to use WEXT api for kernel >= 3.6
Comment 7 William L. Thomson Jr. 2012-10-14 21:05:47 UTC
Created attachment 326562 [details]
Output of emerge =broadcom-sta-5.100.82.112-r3 compile failing

Tried the patch, but compile fails, this is the output against current 3.6.2 kernel. I haven't tried yet on 3.6.0.
Comment 8 Ulenrich 2012-10-15 12:30:33 UTC
confirm.
Debian~unstable dkms works. More about this weird fact:
https://forums.gentoo.org/viewtopic-p-7163902.html#7163902
I have tried with exact same linux .config but failed as William above.
Comment 9 Ulenrich 2012-10-15 15:09:07 UTC
I have looked into the source codes and now I have a little idea what it is about: Why Debian dkms method works and Gentoo not?
- Debian dkms method has a rotten linux kernel version lookup functio, not working!
- The wext interface method has been stalled ever since.
- All the patches time to time of broadcom-sta "*.c" files just have had dependencies kind of:
#if KERNELVERSION > some VERSION
but ignoring wext.

My Debian dkms method of compiling a wl.ko just misses these kernel VERSION #if introductions. With Debians dkms call I get an old kind of wext interfaced wl.ko ...
Comment 10 Ulenrich 2012-10-15 16:10:16 UTC
Got it compiled using:
CONFIG_HOSTAP=y
# CONFIG_MAC80211 is not set
Comment 11 Ulenrich 2012-10-15 17:22:14 UTC
Created attachment 326626 [details, diff]
broadcom-sta.ebuild patch similar above ....

Forget my comment#9
It is some special linux .config Options which are unusual these days. I have patches broadcom.sta ebuild like some posts above....
Comment 12 Ulenrich 2012-10-15 17:32:22 UTC
So, this is solved at last for me with above patch.

But I am unsure about syntax:
CONFIG_CHECK="... ~!MAC80211 ..."
this compiles with having set in linux .config CONFIG_MAC80211 but should not. 

Could I instead do without ~tilde
CONFIG_CHECK="... !MAC80211 ..."
prevent execution of emerge?
Comment 13 Vasco Gervasi 2012-10-17 20:33:31 UTC
Hi, I have tryed to use this patch "attachment 326626 [details, diff]" but when I run "emerge -1a broadcom-sta" it gives me error in patching:

***** broadcom-sta.patch *****
PWD: /tmp/portage/net-wireless/broadcom-sta-5.100.82.112-r3/work

NOTE: skipping -p0 due to absolute paths in patch:
1:--- /portable/portdir/net-wireless/broadcom-sta/broadcom-sta-5.100.82.112-r2.ebuild	2012-05-22 05:01:23.000000000 +0200
==============================

PATCH COMMAND:  patch -p1 -g0 -E --no-backup-if-mismatch  < '/usr/portage/dist/layman/yellowhat-overlay/net-wireless/broadcom-sta/files/broadcom-sta.patch'

==============================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- /portable/portdir/net-wireless/broadcom-sta/broadcom-sta-5.100.82.112-r2.ebuild	2012-05-22 05:01:23.000000000 +0200
|+++ broadcom-sta-5.100.82.112-r3.ebuild	2012-10-15 19:10:40.525274604 +0200
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored

patch program exited with status 1
==============================

PATCH COMMAND:  patch -p2 -g0 -E --no-backup-if-mismatch  < '/usr/portage/dist/layman/yellowhat-overlay/net-wireless/broadcom-sta/files/broadcom-sta.patch'

==============================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- /portable/portdir/net-wireless/broadcom-sta/broadcom-sta-5.100.82.112-r2.ebuild	2012-05-22 05:01:23.000000000 +0200
|+++ broadcom-sta-5.100.82.112-r3.ebuild	2012-10-15 19:10:40.525274604 +0200
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored

patch program exited with status 1
==============================

PATCH COMMAND:  patch -p3 -g0 -E --no-backup-if-mismatch  < '/usr/portage/dist/layman/yellowhat-overlay/net-wireless/broadcom-sta/files/broadcom-sta.patch'

==============================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- /portable/portdir/net-wireless/broadcom-sta/broadcom-sta-5.100.82.112-r2.ebuild	2012-05-22 05:01:23.000000000 +0200
|+++ broadcom-sta-5.100.82.112-r3.ebuild	2012-10-15 19:10:40.525274604 +0200
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored

patch program exited with status 1
==============================

PATCH COMMAND:  patch -p4 -g0 -E --no-backup-if-mismatch  < '/usr/portage/dist/layman/yellowhat-overlay/net-wireless/broadcom-sta/files/broadcom-sta.patch'

==============================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- /portable/portdir/net-wireless/broadcom-sta/broadcom-sta-5.100.82.112-r2.ebuild	2012-05-22 05:01:23.000000000 +0200
|+++ broadcom-sta-5.100.82.112-r3.ebuild	2012-10-15 19:10:40.525274604 +0200
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored

patch program exited with status 1

Thanks
Comment 14 Federico Pires 2012-10-18 12:58:04 UTC
I used the patch in comment #11, and enabled CONFIG_HOSTAP in kernel, and compiled fine. The problem is, NetworkManager is picking up the interface as a "wired" instead of "wireless", and don't know how to resolve it. It used to work fine with kernel 3.5. The wireless I have works with bcma module in the kernel, but it seems that I get frequent disconnections when using that. With propietary wl module, it seems to work better for me, so that's why I'm trying to use it.

12:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)
	Subsystem: Dell Inspiron M5010 / XPS 8300
	Flags: bus master, fast devsel, latency 0, IRQ 17
	Memory at fb300000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [40] Power Management version 3
	Capabilities: [58] Vendor Specific Information: Len=78 <?>
	Capabilities: [48] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [d0] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [13c] Virtual Channel
	Capabilities: [160] Device Serial Number 00-00-38-ff-ff-04-c0-cb
	Capabilities: [16c] Power Budgeting <?>
	Kernel driver in use: bcma-pci-bridge
	Kernel modules: wl, bcma
Comment 15 Ulenrich 2012-10-18 23:49:29 UTC
Created attachment 326894 [details]
@Federico - I guess the NM problem is the naming issue patched with this one ...
Comment 16 Ulenrich 2012-10-18 23:54:28 UTC
Created attachment 326896 [details]
the ebuild not cluttered with absulute paths

This includes the eth-to-wlan.patch file as epatch
Comment 17 Ulenrich 2012-10-19 00:05:50 UTC
Ricardo at https://bugs.gentoo.org/show_bug.cgi?id=438622
relates to a Dell released broadcom-sta of 2012-01-january.He relates to archlinux.org having a patch there. That patch doesn't fit to our broadcom-sta sources, but:
---
-wl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev,
+wl_cfg80211_scan(struct wiphy *wiphy,
                  struct cfg80211_scan_request *request)
 {
-       struct wl_cfg80211_priv *wl = ndev_to_wl(ndev);
+       struct wl_cfg80211_priv *wl = wiphy_to_wl(wiphy);
+       struct net_device *ndev = wl_to_ndev(wl);
---
My segfault using the cfg80211 (or called nl80211?) every time mentioned a missing net_device. Patching in this direction would enable the interface again for linux-3.6. 

But too hard for me, because not fitting ...
Comment 18 Jeroen Roovers (RETIRED) gentoo-dev 2012-10-20 14:38:22 UTC
*** Bug 439062 has been marked as a duplicate of this bug. ***
Comment 19 Vasco Gervasi 2012-10-21 11:36:26 UTC
Thanks, new ebuild and patch works for me with 3.6.2
Comment 20 Ulenrich 2012-10-22 09:49:23 UTC
Interesting: 
The new Ubuntu-12-10 has additional firmware, which loads from
/lib/firmware/b43 with a tool /lib/udev/firmware:
b43                   369753  0
mac80211              539908  1 b43
cfg80211              206566  2 b43,mac80211
bcma                   35656  1 b43
ssb                    52036  2 b43,ssb_hcd

And my broadcom wireless functions without any wl.ko from broadcom-sta.
Comment 21 Piotr Karbowski (RETIRED) gentoo-dev 2012-10-22 11:25:10 UTC
So the solution is to enable CONFIG_HOSTAP and use the attached ebuild. Hope it will be commited soon.
Comment 22 Ulenrich 2012-10-23 00:53:22 UTC
@Piotr, I just managed to activate this 
Ubuntu-12.10 linux-firmware-nonfree 
with Gentoo: Just copy the files and activate CONFIG_B43_* variables! 
(but not B43_PCMCIA)
Comment 23 Jean-Francis Roy 2012-11-04 01:23:18 UTC
I confirm that the attached ebuild + selecting HOSTAP resolves this problem. My wireless network runs smooth again (b43 doesn't work well for me)!
Comment 24 merwan kashouty 2012-11-09 18:36:07 UTC
i had been using the broadcom-sta driver and was able to switch to the brcmsmac in the kernel. here is info on this and checking the support for your wireless chip

http://linuxwireless.org/en/users/Drivers/brcm80211#Supported_Chips
Comment 25 loadby 2012-11-12 01:20:04 UTC
Portage 2.1.11.31 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.4, glibc-2.15-r3, 3.6.5-gentoo x86_64)
=================================================================
System uname: Linux-3.6.5-gentoo-x86_64-Intel-R-_Core-TM-_i5-2430M_CPU_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Mon, 05 Nov 2012 21:30:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo wirelay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=generic -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.utf8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/wirelay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gif gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pppd pulseaudio qt3support readline sdl session socialweb spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 26 loadby 2012-11-12 01:23:21 UTC
[  142.987230] ------------[ cut here ]------------
[  142.987269] kernel BUG at include/net/cfg80211.h:2474!
[  142.987294] invalid opcode: 0000 [#1] SMP 
[  142.987315] Modules linked in: wl(PO) vboxpci(O) vboxnetflt(O) vboxnetadp(O) vboxdrv(O) fbcon tileblit font i915 bitblit softcursor drm_kms_helper drm fb fbdev cfbcopyarea i2c_algo_bit video i2c_i801 cfbimgblt cfbfillrect i2c_core [last unloaded: wl]
[  142.987434] CPU 1 
[  142.987445] Pid: 2380, comm: wpa_supplicant Tainted: P           O 3.6.5-gentoo #21 Hewlett-Packard HP Pavilion dm4 Notebook PC/1651
[  142.987507] RIP: 0010:[<ffffffffa063654a>]  [<ffffffffa063654a>] wl_tkip_printstats+0x378a/0x5b50 [wl]
[  142.987564] RSP: 0018:ffff8801d2f938f8  EFLAGS: 00010246
[  142.987584] RAX: 0000000000000000 RBX: ffff8801d3f154a0 RCX: 0000000000000000
[  142.987610] RDX: 0000000000000000 RSI: ffff8801d3e3ec00 RDI: ffff8801d3f151e0
[  142.987636] RBP: ffff8801d2f93948 R08: 0000000000000001 R09: ffff8801d3e3ec00
[  142.987665] R10: 0000000000000024 R11: 0000000000000001 R12: ffff8801d3f15000
[  142.987693] R13: ffff8801d65c3600 R14: ffff8801d3e3ec00 R15: ffff8801d7c2d824
[  142.987720] FS:  00007fe2c2a44700(0000) GS:ffff8801dfa40000(0000) knlGS:0000000000000000
[  142.987750] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  142.987771] CR2: 00000000012754a8 CR3: 00000001c3b49000 CR4: 00000000000407e0
[  142.987798] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  142.987824] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[  142.987852] Process wpa_supplicant (pid: 2380, threadinfo ffff8801d2f92000, task ffff8801d8363b00)
[  142.987852] Stack:
[  142.987854]  ffffffff8166413e 0000000000000400 ffff8801d3f15000 ffff8801d2f939d8
[  142.987855]  ffff8801d3f15000 ffff8801d2f939d8 ffff8801d3f15000 ffff8801d65c3600
[  142.987856]  ffff8801d3e3ec00 ffff8801d7c2d824 ffff8801d2f939a8 ffffffff8166df6b
[  142.987857] Call Trace:
[  142.987861]  [<ffffffff8166413e>] ? kzalloc.clone.52+0xe/0x10
[  142.987865]  [<ffffffff8166df6b>] nl80211_trigger_scan+0x3db/0x520
[  142.987868]  [<ffffffff815aea06>] genl_rcv_msg+0x226/0x2a0
[  142.987872]  [<ffffffff8157a2ef>] ? __alloc_skb+0x8f/0x1d0
[  142.987875]  [<ffffffff81129e99>] ? zone_statistics+0x99/0xc0
[  142.987877]  [<ffffffff815ae7e0>] ? genl_rcv+0x30/0x30
[  142.987878]  [<ffffffff815ae249>] netlink_rcv_skb+0xa9/0xd0
[  142.987880]  [<ffffffff815ae7d0>] genl_rcv+0x20/0x30
[  142.987882]  [<ffffffff815adbad>] netlink_unicast+0x1ad/0x230
[  142.987883]  [<ffffffff815ade7d>] netlink_sendmsg+0x24d/0x380
[  142.987885]  [<ffffffff8156f419>] sock_sendmsg+0xb9/0xf0
[  142.987889]  [<ffffffff8114b556>] ? alloc_pages_vma+0xb6/0x190
[  142.987891]  [<ffffffff81570e92>] ? move_addr_to_kernel+0x52/0x90
[  142.987892]  [<ffffffff81570e2e>] __sys_sendmsg+0x37e/0x390
[  142.987894]  [<ffffffff81132a2b>] ? handle_mm_fault+0x13b/0x210
[  142.987897]  [<ffffffff81699614>] ? do_page_fault+0x1e4/0x4b0
[  142.987900]  [<ffffffff8109e489>] ? pick_next_task_fair+0x169/0x230
[  142.987902]  [<ffffffff81694c6f>] ? __schedule+0x38f/0x760
[  142.987903]  [<ffffffff81571bb4>] sys_sendmsg+0x44/0x80
[  142.987905]  [<ffffffff8169d9e2>] system_call_fastpath+0x16/0x1b
[  142.987920] Code: 7b 78 a0 31 c0 e8 66 cf 05 e1 49 8b b4 24 08 07 00 00 48 c7 c7 10 89 78 a0 31 c0 e8 50 cf 05 e1 8b 05 3b 73 18 00 e9 50 ff ff ff <0f> 0b 48 c7 c6 d0 48 78 a0 48 c7 c7 0c 7b 78 a0 31 c0 e8 2e cf 
[  142.987925] RIP  [<ffffffffa063654a>] wl_tkip_printstats+0x378a/0x5b50 [wl]
[  142.987926]  RSP <ffff8801d2f938f8>
[  143.003545] ---[ end trace b29650b8ed6072e7 ]---
[  149.768729] hub 1-1:1.0: state 7 ports 6 chg 0000 evt 0002
[  149.769120] hub 1-1:1.0: port 1, status 0100, change 0001, 12 Mb/s
[  149.769126] usb 1-1.1: USB disconnect, device number 4
[  149.769129] usb 1-1.1: unregistering device
[  149.769132] usb 1-1.1: unregistering interface 1-1.1:1.0
[  149.769183] usb 1-1.1: unregistering interface 1-1.1:1.1
[  149.769217] usb 1-1.1: unregistering interface 1-1.1:1.2
[  149.769246] usb 1-1.1: unregistering interface 1-1.1:1.3
[  149.769271] usb 1-1.1: usb_disable_device nuking all URBs
[  149.873026] hub 1-1:1.0: debounce: port 1: total 100ms stable 100ms status 0x100
[  157.437257] hub 1-1:1.0: state 7 ports 6 chg 0000 evt 0002
[  157.437522] hub 1-1:1.0: port 1, status 0101, change 0001, 12 Mb/s
[  157.541534] hub 1-1:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
[  157.552507] hub 1-1:1.0: port 1 not reset yet, waiting 10ms
[  157.614401] usb 1-1.1: new full-speed USB device number 5 using ehci_hcd
[  157.625398] hub 1-1:1.0: port 1 not reset yet, waiting 10ms
[  157.701985] usb 1-1.1: skipped 1 descriptor after interface
[  157.702292] usb 1-1.1: default language 0x0409
[  157.703129] usb 1-1.1: udev 5, busnum 1, minor = 4
[  157.703155] usb 1-1.1: New USB device found, idVendor=0a5c, idProduct=21e3
[  157.703161] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  157.703167] usb 1-1.1: Product: BCM20702A0
[  157.703172] usb 1-1.1: Manufacturer: Broadcom Corp
[  157.703177] usb 1-1.1: SerialNumber: 60D819DB777E
[  157.703314] usb 1-1.1: usb_probe_device
[  157.703316] usb 1-1.1: configuration #1 chosen from 1 choice
[  157.703508] usb 1-1.1: adding 1-1.1:1.0 (config #1, interface 0)
[  157.703569] usb 1-1.1: adding 1-1.1:1.1 (config #1, interface 1)
[  157.703618] usb 1-1.1: adding 1-1.1:1.2 (config #1, interface 2)
[  157.703659] usb 1-1.1: adding 1-1.1:1.3 (config #1, interface 3)
Comment 27 loadby 2012-11-12 01:24:28 UTC
(In reply to comment #26)
> [  142.987230] ------------[ cut here ]------------
> [  142.987269] kernel BUG at include/net/cfg80211.h:2474!
> [  142.987294] invalid opcode: 0000 [#1] SMP 
> [  142.987315] Modules linked in: wl(PO) vboxpci(O) vboxnetflt(O)
> vboxnetadp(O) vboxdrv(O) fbcon tileblit font i915 bitblit softcursor
> drm_kms_helper drm fb fbdev cfbcopyarea i2c_algo_bit video i2c_i801
> cfbimgblt cfbfillrect i2c_core [last unloaded: wl]
> [  142.987434] CPU 1 
> [  142.987445] Pid: 2380, comm: wpa_supplicant Tainted: P           O
> 3.6.5-gentoo #21 Hewlett-Packard HP Pavilion dm4 Notebook PC/1651
> [  142.987507] RIP: 0010:[<ffffffffa063654a>]  [<ffffffffa063654a>]
> wl_tkip_printstats+0x378a/0x5b50 [wl]
> [  142.987564] RSP: 0018:ffff8801d2f938f8  EFLAGS: 00010246
> [  142.987584] RAX: 0000000000000000 RBX: ffff8801d3f154a0 RCX:
> 0000000000000000
> [  142.987610] RDX: 0000000000000000 RSI: ffff8801d3e3ec00 RDI:
> ffff8801d3f151e0
> [  142.987636] RBP: ffff8801d2f93948 R08: 0000000000000001 R09:
> ffff8801d3e3ec00
> [  142.987665] R10: 0000000000000024 R11: 0000000000000001 R12:
> ffff8801d3f15000
> [  142.987693] R13: ffff8801d65c3600 R14: ffff8801d3e3ec00 R15:
> ffff8801d7c2d824
> [  142.987720] FS:  00007fe2c2a44700(0000) GS:ffff8801dfa40000(0000)
> knlGS:0000000000000000
> [  142.987750] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> [  142.987771] CR2: 00000000012754a8 CR3: 00000001c3b49000 CR4:
> 00000000000407e0
> [  142.987798] DR0: 0000000000000000 DR1: 0000000000000000 DR2:
> 0000000000000000
> [  142.987824] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7:
> 0000000000000400
> [  142.987852] Process wpa_supplicant (pid: 2380, threadinfo
> ffff8801d2f92000, task ffff8801d8363b00)
> [  142.987852] Stack:
> [  142.987854]  ffffffff8166413e 0000000000000400 ffff8801d3f15000
> ffff8801d2f939d8
> [  142.987855]  ffff8801d3f15000 ffff8801d2f939d8 ffff8801d3f15000
> ffff8801d65c3600
> [  142.987856]  ffff8801d3e3ec00 ffff8801d7c2d824 ffff8801d2f939a8
> ffffffff8166df6b
> [  142.987857] Call Trace:
> [  142.987861]  [<ffffffff8166413e>] ? kzalloc.clone.52+0xe/0x10
> [  142.987865]  [<ffffffff8166df6b>] nl80211_trigger_scan+0x3db/0x520
> [  142.987868]  [<ffffffff815aea06>] genl_rcv_msg+0x226/0x2a0
> [  142.987872]  [<ffffffff8157a2ef>] ? __alloc_skb+0x8f/0x1d0
> [  142.987875]  [<ffffffff81129e99>] ? zone_statistics+0x99/0xc0
> [  142.987877]  [<ffffffff815ae7e0>] ? genl_rcv+0x30/0x30
> [  142.987878]  [<ffffffff815ae249>] netlink_rcv_skb+0xa9/0xd0
> [  142.987880]  [<ffffffff815ae7d0>] genl_rcv+0x20/0x30
> [  142.987882]  [<ffffffff815adbad>] netlink_unicast+0x1ad/0x230
> [  142.987883]  [<ffffffff815ade7d>] netlink_sendmsg+0x24d/0x380
> [  142.987885]  [<ffffffff8156f419>] sock_sendmsg+0xb9/0xf0
> [  142.987889]  [<ffffffff8114b556>] ? alloc_pages_vma+0xb6/0x190
> [  142.987891]  [<ffffffff81570e92>] ? move_addr_to_kernel+0x52/0x90
> [  142.987892]  [<ffffffff81570e2e>] __sys_sendmsg+0x37e/0x390
> [  142.987894]  [<ffffffff81132a2b>] ? handle_mm_fault+0x13b/0x210
> [  142.987897]  [<ffffffff81699614>] ? do_page_fault+0x1e4/0x4b0
> [  142.987900]  [<ffffffff8109e489>] ? pick_next_task_fair+0x169/0x230
> [  142.987902]  [<ffffffff81694c6f>] ? __schedule+0x38f/0x760
> [  142.987903]  [<ffffffff81571bb4>] sys_sendmsg+0x44/0x80
> [  142.987905]  [<ffffffff8169d9e2>] system_call_fastpath+0x16/0x1b
> [  142.987920] Code: 7b 78 a0 31 c0 e8 66 cf 05 e1 49 8b b4 24 08 07 00 00
> 48 c7 c7 10 89 78 a0 31 c0 e8 50 cf 05 e1 8b 05 3b 73 18 00 e9 50 ff ff ff
> <0f> 0b 48 c7 c6 d0 48 78 a0 48 c7 c7 0c 7b 78 a0 31 c0 e8 2e cf 
> [  142.987925] RIP  [<ffffffffa063654a>] wl_tkip_printstats+0x378a/0x5b50
> [wl]
> [  142.987926]  RSP <ffff8801d2f938f8>
> [  143.003545] ---[ end trace b29650b8ed6072e7 ]---
> [  149.768729] hub 1-1:1.0: state 7 ports 6 chg 0000 evt 0002
> [  149.769120] hub 1-1:1.0: port 1, status 0100, change 0001, 12 Mb/s
> [  149.769126] usb 1-1.1: USB disconnect, device number 4
> [  149.769129] usb 1-1.1: unregistering device
> [  149.769132] usb 1-1.1: unregistering interface 1-1.1:1.0
> [  149.769183] usb 1-1.1: unregistering interface 1-1.1:1.1
> [  149.769217] usb 1-1.1: unregistering interface 1-1.1:1.2
> [  149.769246] usb 1-1.1: unregistering interface 1-1.1:1.3
> [  149.769271] usb 1-1.1: usb_disable_device nuking all URBs
> [  149.873026] hub 1-1:1.0: debounce: port 1: total 100ms stable 100ms
> status 0x100
> [  157.437257] hub 1-1:1.0: state 7 ports 6 chg 0000 evt 0002
> [  157.437522] hub 1-1:1.0: port 1, status 0101, change 0001, 12 Mb/s
> [  157.541534] hub 1-1:1.0: debounce: port 1: total 100ms stable 100ms
> status 0x101
> [  157.552507] hub 1-1:1.0: port 1 not reset yet, waiting 10ms
> [  157.614401] usb 1-1.1: new full-speed USB device number 5 using ehci_hcd
> [  157.625398] hub 1-1:1.0: port 1 not reset yet, waiting 10ms
> [  157.701985] usb 1-1.1: skipped 1 descriptor after interface
> [  157.702292] usb 1-1.1: default language 0x0409
> [  157.703129] usb 1-1.1: udev 5, busnum 1, minor = 4
> [  157.703155] usb 1-1.1: New USB device found, idVendor=0a5c, idProduct=21e3
> [  157.703161] usb 1-1.1: New USB device strings: Mfr=1, Product=2,
> SerialNumber=3
> [  157.703167] usb 1-1.1: Product: BCM20702A0
> [  157.703172] usb 1-1.1: Manufacturer: Broadcom Corp
> [  157.703177] usb 1-1.1: SerialNumber: 60D819DB777E
> [  157.703314] usb 1-1.1: usb_probe_device
> [  157.703316] usb 1-1.1: configuration #1 chosen from 1 choice
> [  157.703508] usb 1-1.1: adding 1-1.1:1.0 (config #1, interface 0)
> [  157.703569] usb 1-1.1: adding 1-1.1:1.1 (config #1, interface 1)
> [  157.703618] usb 1-1.1: adding 1-1.1:1.2 (config #1, interface 2)
> [  157.703659] usb 1-1.1: adding 1-1.1:1.3 (config #1, interface 3)

after using this patch https://bugs.gentoo.org/show_bug.cgi?id=437898#c5
Comment 28 loadby 2012-11-12 01:34:55 UTC
Sorry, did not immediately understand the deployment comments
Comment 29 loadby 2012-11-12 01:37:07 UTC
3.6.5 is not WIRELESS_EXT and LIB80211_CRYPT_TKIP options
Comment 30 Neil Stone 2012-12-27 13:22:31 UTC
I had a similar (can't say if it were identical) issue. kernel 3.5.x worked just fine, 3.6.x failed horribly.

I ended up using the brcmsmac kernel driver, this should actually make for better forward compatibility for me, and possibly others ?
Comment 31 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2012-12-27 14:20:49 UTC
does not CC arch teams
Comment 32 sgt_b 2013-01-13 17:43:51 UTC
Had this exact issue with BCM43228 DeviceID:4359. Confirmed that the patch in comment#11 along with HOSTAP in kernel resolved the issue. (neither b43 or brcmsmac worked for me).
Comment 33 David Parrish 2013-01-21 19:42:17 UTC
I have a BCM43227 Device ID 4358 and the patch (comment#11) fixed my issue.  The driver was crashing either on boot or shortly after logging in.  Now my system works as it did before updating to the kernel version 3.6.11.
Comment 34 Kyle Evans 2013-01-22 18:52:06 UTC
(In reply to comment #17)

Archlinux links seem to be dead. But the patches from https://bugzilla.rpmfusion.org/show_bug.cgi?id=2526 are derrived from there and work for me on a 3.7 kernel.
Comment 35 Mike Nerone 2013-04-08 06:24:14 UTC
I hit the same problem. Again, patch from comment #11 plus CONFIG_HOSTAP fixes it for me (and I imagine the ebuild from comment #16 would, as well). Admittedly, this workaround is probably not the "right" solution.

Multiple people have reported the problem here, multiple have reported the successful fix, multiple have voted for it, multiple distros have experienced it, confirmed it, and fixed it. Can we _at_least_ move this bug past "UNCONFIRMED"?
Comment 36 Michael Palimaka (kensington) gentoo-dev 2013-04-08 07:55:22 UTC
(In reply to comment #35)
> Multiple people have reported the problem here, multiple have reported the
> successful fix, multiple have voted for it, multiple distros have
> experienced it, confirmed it, and fixed it. Can we _at_least_ move this bug
> past "UNCONFIRMED"?

The problem is this package has no maintainer. Given that it requires certain hardware, it is difficult for one of the few few developers that try to help out with maintainer-needed bugs to test and fix (especially given the length of this bug).

If you (or anyone else with the hardware) is interested in maintaining this package, please have a look at proxy-maintainers[1].

[1]: http://www.gentoo.org/proj/en/qa/proxy-maintainers/index.xml
Comment 37 Marco Ziebell 2013-04-22 11:38:41 UTC
I added the patches mentioned in here and over there 459208, because I received and bug everytime I started my wlan card - 4313 - see comment #4.

Right now the card is working without any problems.

I'm using Gentoo 64bit with gentoo-sources 3.7.10-r1.
Comment 38 M. B. 2013-05-03 00:02:50 UTC
Changed the ebuild to use WEXT for >kernel-3.6.0. It should hit upstream as soon as a dev commits them. Please refer to #438622 for further details.

Until then, get them from my overlay; tbc in layman.