Re: [ath9k-devel] 3.14 Regression, kernel panic when suspend, looks ath9k / wireless related

2014-04-22 Thread Luis R. Rodriguez
A patch has been sent to stable that fixes this, the patch is already
upstream fortunately.

  Luis
___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel


[ath9k-devel] 3.14 Regression, kernel panic when suspend, looks ath9k / wireless related

2014-04-21 Thread Michael Leun
Hi,

since 3.14 I get an kernel panic when trying to suspend or hibernate (and in 
several other situations). Looks ath9k or wireless related, does not happen 
when I for test remove /lib/modules/3.14.1/kernel/net/wireless/ath* (also from 
initrd).

Did not bisect yet, but could if needed.


[  116.006227] PM: Syncing filesystems ... done.
[  116.238271] PM: Preparing system for mem sleep
[  116.382917] Freezing user space processes ... (elapsed 0.001 seconds) done.
[  116.384816] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) 
done.
[  116.386178] PM: Entering mem sleep
[  116.386855] wlan0: deauthenticating from 90:f6:52:4e:ba:b6 by local choice 
(reason=3)
[  116.406743] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[  116.406926] BUG: unable to handle kernel NULL pointer dereference at 
0038
[  116.407009] IP:[  116.407022] sd 0:0:0:0: [sda] Stopping disk

[  116.407092]  [a002c1f1] reg_todo+0xc1/0x4c0 [cfg80211]
[  116.407151] PGD 366ad067 PUD 366ac067 PMD 0 
[  116.407212] Oops:  [#1] SMP 
[  116.407258] Modules linked in: netconsole configfs bnep bluetooth 
6lowpan_iphc ipt_REJECT xt_LOG xt_limit xt_recent iptable_mangle iptable_nat 
nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 iptable_filter nf_conntrack_ipv6 
nf_defrag_ipv6 xt_conntrack xt_tcpudp ip6table_filter ip6_tables nf_nat_ftp 
nf_nat nf_conntrack_ftp nf_conntrack ip_tables x_tables ctr ccm 
snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel 
snd_hda_codec snd_hwdep snd_pcm_oss snd_pcm snd_seq iTCO_wdt acer_wmi 
sparse_keymap iTCO_vendor_support ath9k snd_seq_device snd_timer snd_mixer_oss 
snd atl1c coretemp shpchp lpc_ich pcspkr joydev i2c_i801 hid_multitouch 
serio_raw mfd_core ac wmi battery acpi_cpufreq soundcore sg sha256_ssse3 
sha256_generic cbc linear md_mod af_packet usbhid i915 uhci_hcd i2c_algo_bit 
drm_kms_helper drm ehci_pci ehci_hcd video usbcore button usb_common 
scsi_dh_rdac scsi_dh_alua scsi_dh_emc scsi_dh_hp_sw scsi_dh dm_mirror 
dm_region_hash dm_log dm_crypt dm_snap!
 shot dm_bufio dm_mod glue_helper lrw gf128mul ablk_helper cryptd aes_x86_64 
arc4 ath9k_common ath9k_hw ath mac80211 cfg80211 rfkill fan processor thermal 
[last unloaded: ath9k]
[  116.408005] CPU: 1 PID: 3405 Comm: kworker/1:3 Tainted: G  I  3.14.1 
#3
[  116.408005] Hardware name: Acer Aspire 1825PTZ/JM12-MS-CAP, BIOS V1.3127 
04/23/2010
[  116.408005] Workqueue: events reg_todo [cfg80211]
[  116.408005] task: 8801b38225d0 ti: 8800370cc000 task.ti: 
8800370cc000
[  116.408005] RIP: 0010:[a002c1f1]  [a002c1f1] 
reg_todo+0xc1/0x4c0 [cfg80211]
[  116.408005] RSP: 0018:8800370cdde8  EFLAGS: 00010297
[  116.408005] RAX: a0075360 RBX: 8801b256e530 RCX: 0003
[  116.408005] RDX:  RSI: 8801bfc92ed8 RDI: 
[  116.408005] RBP: 8800370cde20 R08: fffe801d4b00 R09: 9600
[  116.408005] R10: 00017fe2550752c0 R11:  R12: 
[  116.408005] R13: 8801b256e51c R14: 8801b256e500 R15: 0040
[  116.408005] FS:  () GS:8801bfc8() 
knlGS:
[  116.408005] CS:  0010 DS:  ES:  CR0: 8005003b
[  116.408005] CR2: 0038 CR3: 37bb9000 CR4: 000407e0
[  116.408005] Stack:
[  116.408005]  8800370cde20 a004aaff 8801b2f9f800 
8801bfc92ec0
[  116.408005]  a00752c0  0040 
8800370cde68
[  116.408005]  81071dd8 b2e45800 8801bfc96a00 
8801bfc92ed8
[  116.408005] Call Trace:
[  116.408005]  [a004aaff] ? disconnect_work+0xbf/0xd0 [cfg80211]
[  116.408005]  [81071dd8] process_one_work+0x178/0x420
[  116.408005]  [810729f9] worker_thread+0x119/0x3a0
[  116.408005]  [810728e0] ? rescuer_thread+0x360/0x360
[  116.408005]  [81078f9d] kthread+0xcd/0xf0
[  116.408005]  [81078ed0] ? kthread_create_on_node+0x180/0x180
[  116.408005]  [8159a24c] ret_from_fork+0x7c/0xb0
[  116.408005]  [81078ed0] ? kthread_create_on_node+0x180/0x180
[  116.408005] Code: 86 02 00 00 83 f9 01 0f 84 cc 01 00 00 72 4b 83 f9 03 0f 
85 a2 01 00 00 48 8b 05 6b 91 04 00 8b 50 14 83 fa 01 0f 84 63 03 00 00 41 f6 
44 24 38 10 0f 85 3e 03 00 00 0f b6 4b ec f6 81 00 5d 64 
[  116.408005] RIP  [a002c1f1] reg_todo+0xc1/0x4c0 [cfg80211]
[  116.408005]  RSP 8800370cdde8
[  116.408005] CR2: 0038
[  116.408005] ---[ end trace fab5039fc72cc2f8 ]---
[  116.421606] BUG: unable to handle kernel paging request at ffd8
[  116.424210] IP: [8107953b] kthread_data+0xb/0x20
[  116.425551] PGD 1a0f067 PUD 1a11067 PMD 0 
[  116.425551] Oops:  [#2] SMP 
[  116.425551] Modules linked in: netconsole configfs bnep bluetooth 
6lowpan_iphc ipt_REJECT xt_LOG xt_limit xt_recent iptable_mangle iptable_nat 
nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 

Re: [ath9k-devel] 3.14 Regression, kernel panic when suspend, looks ath9k / wireless related

2014-04-21 Thread Michael Leun
On Sat, 19 Apr 2014 03:15:54 +0200
Michael Leun lkml20140...@newton.leun.net wrote:

 Hi,
 
 since 3.14 I get an kernel panic when trying to suspend or hibernate
 (and in several other situations). Looks ath9k or wireless related,
 does not happen when I for test
 remove /lib/modules/3.14.1/kernel/net/wireless/ath* (also from
 initrd).
 
 Did not bisect yet, but could if needed.

Did bisect now, yields:

2a901468c221e778af52603e006a53d286e81f90 is the first bad commit
commit 2a901468c221e778af52603e006a53d286e81f90
Author: Luis R. Rodriguez mcg...@do-not-panic.com
Date:   Mon Nov 11 22:15:31 2013 +0100

cfg80211: add an option to disable processing country IEs

Certain vendors may want to disable the processing of
country IEs so that they can continue using the regulatory
domain the driver or user has set.  Currently there is no
way to stop the core from processing country IEs, so add
support to the core to ignore country IE hints.

Cc: Mihir Shete smi...@qti.qualcomm.com
Cc: Henri Bahini hbah...@qca.qualcomm.com
Cc: Tushnim Bhattacharyya tushn...@qca.qualcomm.com
Signed-off-by: Luis R. Rodriguez mcg...@do-not-panic.com
Signed-off-by: Johannes Berg johannes.b...@intel.com

:04 04 86bdd39a7e40b95bb6a0332e0b654706cfb1e1fb 
a760753abc0241b363f71f78f13e4d42e47b M  include
:04 04 e0201f43d8aa53af3c950df61a2dfd21797187cd 
c53a936c815f3489145ae8ce0a6041ef2592d4d8 M  net


Reverting this commit from v3.14.1 makes the issue go away.




[  116.006227] PM: Syncing filesystems ... done.
[  116.238271] PM: Preparing system for mem sleep
[  116.382917] Freezing user space processes ... (elapsed 0.001 seconds) done.
[  116.384816] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) 
done.
[  116.386178] PM: Entering mem sleep
[  116.386855] wlan0: deauthenticating from 90:f6:52:4e:ba:b6 by local choice 
(reason=3)
[  116.406743] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[  116.406926] BUG: unable to handle kernel NULL pointer dereference at 
0038
[  116.407009] IP:[  116.407022] sd 0:0:0:0: [sda] Stopping disk

[  116.407092]  [a002c1f1] reg_todo+0xc1/0x4c0 [cfg80211]
[  116.407151] PGD 366ad067 PUD 366ac067 PMD 0 
[  116.407212] Oops:  [#1] SMP 
[  116.407258] Modules linked in: netconsole configfs bnep bluetooth 
6lowpan_iphc ipt_REJECT xt_LOG xt_limit xt_recent iptable_mangle iptable_nat 
nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 iptable_filter nf_conntrack_ipv6 
nf_defrag_ipv6 xt_conntrack xt_tcpudp ip6table_filter ip6_tables nf_nat_ftp 
nf_nat nf_conntrack_ftp nf_conntrack ip_tables x_tables ctr ccm 
snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel 
snd_hda_codec snd_hwdep snd_pcm_oss snd_pcm snd_seq iTCO_wdt acer_wmi 
sparse_keymap iTCO_vendor_support ath9k snd_seq_device snd_timer snd_mixer_oss 
snd atl1c coretemp shpchp lpc_ich pcspkr joydev i2c_i801 hid_multitouch 
serio_raw mfd_core ac wmi battery acpi_cpufreq soundcore sg sha256_ssse3 
sha256_generic cbc linear md_mod af_packet usbhid i915 uhci_hcd i2c_algo_bit 
drm_kms_helper drm ehci_pci ehci_hcd video usbcore button usb_common 
scsi_dh_rdac scsi_dh_alua scsi_dh_emc scsi_dh_hp_sw scsi_dh dm_mirror 
dm_region_hash dm_log dm_crypt dm_snap!
 shot dm_bufio dm_mod glue_helper lrw gf128mul ablk_helper cryptd aes_x86_64 
arc4 ath9k_common ath9k_hw ath mac80211 cfg80211 rfkill fan processor thermal 
[last unloaded: ath9k]
[  116.408005] CPU: 1 PID: 3405 Comm: kworker/1:3 Tainted: G  I  3.14.1 
#3
[  116.408005] Hardware name: Acer Aspire 1825PTZ/JM12-MS-CAP, BIOS V1.3127 
04/23/2010
[  116.408005] Workqueue: events reg_todo [cfg80211]
[  116.408005] task: 8801b38225d0 ti: 8800370cc000 task.ti: 
8800370cc000
[  116.408005] RIP: 0010:[a002c1f1]  [a002c1f1] 
reg_todo+0xc1/0x4c0 [cfg80211]
[  116.408005] RSP: 0018:8800370cdde8  EFLAGS: 00010297
[  116.408005] RAX: a0075360 RBX: 8801b256e530 RCX: 0003
[  116.408005] RDX:  RSI: 8801bfc92ed8 RDI: 
[  116.408005] RBP: 8800370cde20 R08: fffe801d4b00 R09: 9600
[  116.408005] R10: 00017fe2550752c0 R11:  R12: 
[  116.408005] R13: 8801b256e51c R14: 8801b256e500 R15: 0040
[  116.408005] FS:  () GS:8801bfc8() 
knlGS:
[  116.408005] CS:  0010 DS:  ES:  CR0: 8005003b
[  116.408005] CR2: 0038 CR3: 37bb9000 CR4: 000407e0
[  116.408005] Stack:
[  116.408005]  8800370cde20 a004aaff 8801b2f9f800 
8801bfc92ec0
[  116.408005]  a00752c0  0040 
8800370cde68
[  116.408005]  81071dd8 b2e45800 8801bfc96a00 
8801bfc92ed8
[  116.408005] Call Trace:
[  116.408005]  [a004aaff] ? disconnect_work+0xbf/0xd0 [cfg80211]
[  116.408005]  [81071dd8] 

Re: [ath9k-devel] 3.14 Regression, kernel panic when suspend, looks ath9k / wireless related

2014-04-21 Thread Luis R. Rodriguez
On Sat, Apr 19, 2014 at 12:32 PM, Michael Leun
lkml20140...@newton.leun.net wrote:
 2a901468c221e778af52603e006a53

Odd -- its unclear how you ended up with this bisect given that
REGULATORY_COUNTRY_IE_IGNORE is not set for any driver currently. To
see this you can try:

mcgrof@ergon ~/linux-stable (git::linux-3.14.y)$ git grep
REGULATORY_COUNTRY_IE_IGNORE drivers/net/wireless/

That said, I'm happy to revert this as no driver is using it anyway.
Folks who care for it can help fix this when they get the Fisher Price
(TM) driver upstream. I however don't think however this is the issue
though, this may be a timing issue and by reverting this commit you
just so happen to not get it triggered. I'll Cc you on some series of
fixes and if you can test one of those patches on top of v3.14.1
that'd be appreciated as an alternative. I'm also very curious to hear
no one else would have run into the same regression as you have.

  Luis
___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel