skb_under_panic in ath9k
Hello,
I'm on a kirkwood based armv5 system with an USB attached TP-Link TL-WN821N - Atheros AR7010+AR9287, [1]. the wlan is running in AP mode with hostapd-1.0. The kernel is v3.8.12 from debian (3.8-1-kirkwood #1 Debian 3.8.12-1).
The system crashes repeatedly after about one week with the following oops:
[633625.401875] skbuff: skb_under_panic: text:bf501028 len:128 put:8 head:d2788800 data:d27887fe tail:0xd278887e end:0xd2788f40 dev:wlan1 [633625.414180] ------------[ cut here ]------------ [633625.418909] kernel BUG at /build/buildd-linux_3.8.12-1-armel-7F6kBx/linux-3.8.12/net/core/skbuff.c:145! [633625.428430] Internal error: Oops - BUG: 0 [#1] ARM [633625.433322] Modules linked in: [...] [633625.583170] CPU: 0 Not tainted (3.8-1-kirkwood #1 Debian 3.8.12-1) [633625.589821] PC is at skb_push+0x6c/0x84 [633625.593763] LR is at skb_push+0x6c/0x84 [633625.597707] pc : [<c0282990>] lr : [<c0282990>] psr: 20000013 [633625.597707] sp : c04c1d50 ip : 000008f8 fp : df04ea54 [633625.609404] r10: 00000002 r9 : 00000008 r8 : df00dca8 [633625.614734] r7 : 00000006 r6 : c04410a0 r5 : d278887e r4 : d2788800 [633625.621378] r3 : c04d328c r2 : 20000093 r1 : 00000001 r0 : 00000079 [633625.628015] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel [633625.635443] Control: 0005317f Table: 1f224000 DAC: 00000017 [633625.641295] Process swapper (pid: 0, stack limit = 0xc04c01b8) [633625.647241] Stack: (0xc04c1d50 to 0xc04c2000) [633625.657414] 1d40: 00000008 d2788800 d27887fe d278887e [633625.666101] 1d60: d2788f40 df04e000 df00dc00 df2e0c00 00000078 bf501028 df2e0c00 dfba3120 [633625.675025] 1d80: d278882a df04e9a0 00000000 bf504110 dfb3ce20 00000201 00000000 00084502 [633625.683954] 1da0: 00000001 df2e0c00 dfba3120 00000008 00000002 c04c1df4 00000000 00000001 [633625.693553] 1dc0: 0000006a bf5058b0 00000000 c04c1df4 c04c1e30 dfba2300 c151ff18 df04e9a0 [633625.702041] 1de0: c04c1e30 bf37560c 0000000c 00004288 c04c1e2c c151ff18 0000006a df2e0c00 [633625.710540] 1e00: dfba2300 00000000 0000006a df04e462 00000000 00000001 60000013 bf375760 [633625.718904] 1e20: 00000001 c14c19a0 c14c0460 00000000 c04c1e30 c04c1e30 00000000 dfba2300 [633625.727374] 1e40: df04e460 c151fc00 de5af200 00000002 00000002 dfba2300 dfba2308 dfba28a8 [633625.787263] 1e60: c04c1e7c dfba28ac df2e0c00 bf376d58 c0508ae0 00000000 0000012c 00000080 [633625.798914] 1e80: 03c66eab c0508ae8 c04d4c68 c04d3494 00000000 00000000 00000006 00000100 [633625.810249] 1ea0: c052b3a0 00000009 c052b3c0 c0026e2c 00000001 00000018 c04c0000 c0026644 [633625.818620] 1ec0: c04d8f74 c1484260 1144b25a c04d8f74 00000000 00200000 c04c1f4c 00000013 [633625.831230] 1ee0: 00000000 fed20200 c04c1f4c 00000000 56251311 c04d0420 00000000 c0026a2c [633625.842695] 1f00: 00002000 c000f28c c004e27c c0271318 20000013 c000df94 c04c1f60 60000013 [633625.853824] 1f20: 000e32dc 0002404f b5def004 0002404f c04d0698 00000000 00000000 56251311 [633625.864745] 1f40: c04d0420 00000000 00000003 c04c1f60 c004e27c c0271318 20000013 ffffffff [633625.875714] 1f60: b5ed22e0 0002404f 0084d405 00000000 00000000 c04d0698 00000000 c04d0698 [633625.886646] 1f80: 00000000 c04d0420 004b8074 c0270e88 c04d0698 00000000 c050918c c0271014 [633625.898317] 1fa0: c04c0000 c0509b28 c04cc1cc c096f0e0 00004000 c000f484 c04c8c20 00000000 [633625.909787] 1fc0: c04b9650 c0498764 ffffffff ffffffff c0498284 00000000 00000000 c04b9650 [633625.918159] 1fe0: 00000000 00053175 c04c8048 c04b964c c04cc1c4 00008040 00000000 00000000 [633625.926557] [<c0282990>] (skb_push+0x6c/0x84) from [<bf501028>] (htc_issue_send.constprop.0+0x28/0x68 [ath9k_htc]) [633625.937158] [<bf501028>] (htc_issue_send.constprop.0+0x28/0x68 [ath9k_htc]) from [<bf504110>] (ath9k_htc_tx_start+0x290/0x2a4 [ath9k_htc]) [633625.949877] [<bf504110>] (ath9k_htc_tx_start+0x290/0x2a4 [ath9k_htc]) from [<bf5058b0>] (ath9k_htc_tx+0x98/0xcc [ath9k_htc]) [633625.961458] [<bf5058b0>] (ath9k_htc_tx+0x98/0xcc [ath9k_htc]) from [<bf37560c>] (__ieee80211_tx+0x210/0x2a8 [mac80211]) [633625.972695] [<bf37560c>] (__ieee80211_tx+0x210/0x2a8 [mac80211]) from [<bf375760>] (ieee80211_tx+0xbc/0xc4 [mac80211]) [633625.983816] [<bf375760>] (ieee80211_tx+0xbc/0xc4 [mac80211]) from [<bf376d58>] (ieee80211_tx_pending+0xf0/0x194 [mac80211]) [633625.995326] [<bf376d58>] (ieee80211_tx_pending+0xf0/0x194 [mac80211]) from [<c0026e2c>] (tasklet_action+0x84/0xcc) [633626.005905] [<c0026e2c>] (tasklet_action+0x84/0xcc) from [<c0026644>] (__do_softirq+0xdc/0x204) [633626.014750] [<c0026644>] (__do_softirq+0xdc/0x204) from [<c0026a2c>] (irq_exit+0x40/0x8c) [633626.023103] [<c0026a2c>] (irq_exit+0x40/0x8c) from [<c000f28c>] (handle_IRQ+0x64/0x84) [633626.031193] [<c000f28c>] (handle_IRQ+0x64/0x84) from [<c000df94>] (__irq_svc+0x34/0x78) [633626.039412] [<c000df94>] (__irq_svc+0x34/0x78) from [<c0271318>] (cpuidle_wrap_enter+0x54/0x9c) [633626.048331] [<c0271318>] (cpuidle_wrap_enter+0x54/0x9c) from [<c0270e88>] (cpuidle_enter_state+0x14/0x68) [633626.058162] [<c0270e88>] (cpuidle_enter_state+0x14/0x68) from [<c0271014>] (cpuidle_idle_call+0x138/0x25c) [633626.067998] [<c0271014>] (cpuidle_idle_call+0x138/0x25c) from [<c000f484>] (cpu_idle+0x68/0xc8) [633626.076852] [<c000f484>] (cpu_idle+0x68/0xc8) from [<c0498764>] (start_kernel+0x2b4/0x30c) [633626.146230] Code: e58dc014 e59f1014 e59f0014 eb0308b0 (e7f001f2) [633626.152520] ---[ end trace ee5dbceea3381e46 ]--- [633626.157249] Kernel panic - not syncing: Fatal exception in interrupt
Has the problem been fixed already? I can update the kernel to a recent version if needed.
regards,
Marc
[1] lsusb:
Bus 001 Device 004: ID 0cf3:7015 Atheros Communications, Inc. TP-Link TL-WN821N v3 802.11n [Atheros AR7010+AR9287]
added ath9k-devel to Cc
Quoted 70 lines · Marc Kleine-Budde
Hello,
I'm on a kirkwood based armv5 system with an USB attached TP-Link TL-WN821N - Atheros AR7010+AR9287, [1]. the wlan is running in AP mode with hostapd-1.0. The kernel is v3.8.12 from debian (3.8-1-kirkwood #1 Debian 3.8.12-1).
The system crashes repeatedly after about one week with the following oops:
[633625.401875] skbuff: skb_under_panic: text:bf501028 len:128 put:8 head:d2788800 data:d27887fe tail:0xd278887e end:0xd2788f40 dev:wlan1 [633625.414180] ------------[ cut here ]------------ [633625.418909] kernel BUG at /build/buildd-linux_3.8.12-1-armel-7F6kBx/linux-3.8.12/net/core/skbuff.c:145! [633625.428430] Internal error: Oops - BUG: 0 [#1] ARM [633625.433322] Modules linked in: [...] [633625.583170] CPU: 0 Not tainted (3.8-1-kirkwood #1 Debian 3.8.12-1) [633625.589821] PC is at skb_push+0x6c/0x84 [633625.593763] LR is at skb_push+0x6c/0x84 [633625.597707] pc : [<c0282990>] lr : [<c0282990>] psr: 20000013 [633625.597707] sp : c04c1d50 ip : 000008f8 fp : df04ea54 [633625.609404] r10: 00000002 r9 : 00000008 r8 : df00dca8 [633625.614734] r7 : 00000006 r6 : c04410a0 r5 : d278887e r4 : d2788800 [633625.621378] r3 : c04d328c r2 : 20000093 r1 : 00000001 r0 : 00000079 [633625.628015] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel [633625.635443] Control: 0005317f Table: 1f224000 DAC: 00000017 [633625.641295] Process swapper (pid: 0, stack limit = 0xc04c01b8) [633625.647241] Stack: (0xc04c1d50 to 0xc04c2000) [633625.657414] 1d40: 00000008 d2788800 d27887fe d278887e [633625.666101] 1d60: d2788f40 df04e000 df00dc00 df2e0c00 00000078 bf501028 df2e0c00 dfba3120 [633625.675025] 1d80: d278882a df04e9a0 00000000 bf504110 dfb3ce20 00000201 00000000 00084502 [633625.683954] 1da0: 00000001 df2e0c00 dfba3120 00000008 00000002 c04c1df4 00000000 00000001 [633625.693553] 1dc0: 0000006a bf5058b0 00000000 c04c1df4 c04c1e30 dfba2300 c151ff18 df04e9a0 [633625.702041] 1de0: c04c1e30 bf37560c 0000000c 00004288 c04c1e2c c151ff18 0000006a df2e0c00 [633625.710540] 1e00: dfba2300 00000000 0000006a df04e462 00000000 00000001 60000013 bf375760 [633625.718904] 1e20: 00000001 c14c19a0 c14c0460 00000000 c04c1e30 c04c1e30 00000000 dfba2300 [633625.727374] 1e40: df04e460 c151fc00 de5af200 00000002 00000002 dfba2300 dfba2308 dfba28a8 [633625.787263] 1e60: c04c1e7c dfba28ac df2e0c00 bf376d58 c0508ae0 00000000 0000012c 00000080 [633625.798914] 1e80: 03c66eab c0508ae8 c04d4c68 c04d3494 00000000 00000000 00000006 00000100 [633625.810249] 1ea0: c052b3a0 00000009 c052b3c0 c0026e2c 00000001 00000018 c04c0000 c0026644 [633625.818620] 1ec0: c04d8f74 c1484260 1144b25a c04d8f74 00000000 00200000 c04c1f4c 00000013 [633625.831230] 1ee0: 00000000 fed20200 c04c1f4c 00000000 56251311 c04d0420 00000000 c0026a2c [633625.842695] 1f00: 00002000 c000f28c c004e27c c0271318 20000013 c000df94 c04c1f60 60000013 [633625.853824] 1f20: 000e32dc 0002404f b5def004 0002404f c04d0698 00000000 00000000 56251311 [633625.864745] 1f40: c04d0420 00000000 00000003 c04c1f60 c004e27c c0271318 20000013 ffffffff [633625.875714] 1f60: b5ed22e0 0002404f 0084d405 00000000 00000000 c04d0698 00000000 c04d0698 [633625.886646] 1f80: 00000000 c04d0420 004b8074 c0270e88 c04d0698 00000000 c050918c c0271014 [633625.898317] 1fa0: c04c0000 c0509b28 c04cc1cc c096f0e0 00004000 c000f484 c04c8c20 00000000 [633625.909787] 1fc0: c04b9650 c0498764 ffffffff ffffffff c0498284 00000000 00000000 c04b9650 [633625.918159] 1fe0: 00000000 00053175 c04c8048 c04b964c c04cc1c4 00008040 00000000 00000000 [633625.926557] [<c0282990>] (skb_push+0x6c/0x84) from [<bf501028>] (htc_issue_send.constprop.0+0x28/0x68 [ath9k_htc]) [633625.937158] [<bf501028>] (htc_issue_send.constprop.0+0x28/0x68 [ath9k_htc]) from [<bf504110>] (ath9k_htc_tx_start+0x290/0x2a4 [ath9k_htc]) [633625.949877] [<bf504110>] (ath9k_htc_tx_start+0x290/0x2a4 [ath9k_htc]) from [<bf5058b0>] (ath9k_htc_tx+0x98/0xcc [ath9k_htc]) [633625.961458] [<bf5058b0>] (ath9k_htc_tx+0x98/0xcc [ath9k_htc]) from [<bf37560c>] (__ieee80211_tx+0x210/0x2a8 [mac80211]) [633625.972695] [<bf37560c>] (__ieee80211_tx+0x210/0x2a8 [mac80211]) from [<bf375760>] (ieee80211_tx+0xbc/0xc4 [mac80211]) [633625.983816] [<bf375760>] (ieee80211_tx+0xbc/0xc4 [mac80211]) from [<bf376d58>] (ieee80211_tx_pending+0xf0/0x194 [mac80211]) [633625.995326] [<bf376d58>] (ieee80211_tx_pending+0xf0/0x194 [mac80211]) from [<c0026e2c>] (tasklet_action+0x84/0xcc) [633626.005905] [<c0026e2c>] (tasklet_action+0x84/0xcc) from [<c0026644>] (__do_softirq+0xdc/0x204) [633626.014750] [<c0026644>] (__do_softirq+0xdc/0x204) from [<c0026a2c>] (irq_exit+0x40/0x8c) [633626.023103] [<c0026a2c>] (irq_exit+0x40/0x8c) from [<c000f28c>] (handle_IRQ+0x64/0x84) [633626.031193] [<c000f28c>] (handle_IRQ+0x64/0x84) from [<c000df94>] (__irq_svc+0x34/0x78) [633626.039412] [<c000df94>] (__irq_svc+0x34/0x78) from [<c0271318>] (cpuidle_wrap_enter+0x54/0x9c) [633626.048331] [<c0271318>] (cpuidle_wrap_enter+0x54/0x9c) from [<c0270e88>] (cpuidle_enter_state+0x14/0x68) [633626.058162] [<c0270e88>] (cpuidle_enter_state+0x14/0x68) from [<c0271014>] (cpuidle_idle_call+0x138/0x25c) [633626.067998] [<c0271014>] (cpuidle_idle_call+0x138/0x25c) from [<c000f484>] (cpu_idle+0x68/0xc8) [633626.076852] [<c000f484>] (cpu_idle+0x68/0xc8) from [<c0498764>] (start_kernel+0x2b4/0x30c) [633626.146230] Code: e58dc014 e59f1014 e59f0014 eb0308b0 (e7f001f2) [633626.152520] ---[ end trace ee5dbceea3381e46 ]--- [633626.157249] Kernel panic - not syncing: Fatal exception in interrupt
Quoted 8 lines
Has the problem been fixed already? I can update the kernel to a recent version if needed.
regards,
Marc[1] lsusb:
Bus 001 Device 004: ID 0cf3:7015 Atheros Communications, Inc. TP-Link TL-WN821N v3 802.11n [Atheros AR7010+AR9287]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
Url : http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20130524/adb4a140/attachment.pgp
Am 24.05.2013 10:47, schrieb Marc Kleine-Budde:
Quoted 75 lines
added ath9k-devel to Cc
Quoted 72 lines · Marc Kleine-Budde
Hello,
I'm on a kirkwood based armv5 system with an USB attached TP-Link TL-WN821N - Atheros AR7010+AR9287, [1]. the wlan is running in AP mode with hostapd-1.0. The kernel is v3.8.12 from debian (3.8-1-kirkwood #1 Debian 3.8.12-1).
The system crashes repeatedly after about one week with the following oops:
[633625.401875] skbuff: skb_under_panic: text:bf501028 len:128 put:8 head:d2788800 data:d27887fe tail:0xd278887e end:0xd2788f40 dev:wlan1 [633625.414180] ------------[ cut here ]------------ [633625.418909] kernel BUG at /build/buildd-linux_3.8.12-1-armel-7F6kBx/linux-3.8.12/net/core/skbuff.c:145! [633625.428430] Internal error: Oops - BUG: 0 [#1] ARM [633625.433322] Modules linked in: [...] [633625.583170] CPU: 0 Not tainted (3.8-1-kirkwood #1 Debian 3.8.12-1) [633625.589821] PC is at skb_push+0x6c/0x84 [633625.593763] LR is at skb_push+0x6c/0x84 [633625.597707] pc : [<c0282990>] lr : [<c0282990>] psr: 20000013 [633625.597707] sp : c04c1d50 ip : 000008f8 fp : df04ea54 [633625.609404] r10: 00000002 r9 : 00000008 r8 : df00dca8 [633625.614734] r7 : 00000006 r6 : c04410a0 r5 : d278887e r4 : d2788800 [633625.621378] r3 : c04d328c r2 : 20000093 r1 : 00000001 r0 : 00000079 [633625.628015] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel [633625.635443] Control: 0005317f Table: 1f224000 DAC: 00000017 [633625.641295] Process swapper (pid: 0, stack limit = 0xc04c01b8) [633625.647241] Stack: (0xc04c1d50 to 0xc04c2000) [633625.657414] 1d40: 00000008 d2788800 d27887fe d278887e [633625.666101] 1d60: d2788f40 df04e000 df00dc00 df2e0c00 00000078 bf501028 df2e0c00 dfba3120 [633625.675025] 1d80: d278882a df04e9a0 00000000 bf504110 dfb3ce20 00000201 00000000 00084502 [633625.683954] 1da0: 00000001 df2e0c00 dfba3120 00000008 00000002 c04c1df4 00000000 00000001 [633625.693553] 1dc0: 0000006a bf5058b0 00000000 c04c1df4 c04c1e30 dfba2300 c151ff18 df04e9a0 [633625.702041] 1de0: c04c1e30 bf37560c 0000000c 00004288 c04c1e2c c151ff18 0000006a df2e0c00 [633625.710540] 1e00: dfba2300 00000000 0000006a df04e462 00000000 00000001 60000013 bf375760 [633625.718904] 1e20: 00000001 c14c19a0 c14c0460 00000000 c04c1e30 c04c1e30 00000000 dfba2300 [633625.727374] 1e40: df04e460 c151fc00 de5af200 00000002 00000002 dfba2300 dfba2308 dfba28a8 [633625.787263] 1e60: c04c1e7c dfba28ac df2e0c00 bf376d58 c0508ae0 00000000 0000012c 00000080 [633625.798914] 1e80: 03c66eab c0508ae8 c04d4c68 c04d3494 00000000 00000000 00000006 00000100 [633625.810249] 1ea0: c052b3a0 00000009 c052b3c0 c0026e2c 00000001 00000018 c04c0000 c0026644 [633625.818620] 1ec0: c04d8f74 c1484260 1144b25a c04d8f74 00000000 00200000 c04c1f4c 00000013 [633625.831230] 1ee0: 00000000 fed20200 c04c1f4c 00000000 56251311 c04d0420 00000000 c0026a2c [633625.842695] 1f00: 00002000 c000f28c c004e27c c0271318 20000013 c000df94 c04c1f60 60000013 [633625.853824] 1f20: 000e32dc 0002404f b5def004 0002404f c04d0698 00000000 00000000 56251311 [633625.864745] 1f40: c04d0420 00000000 00000003 c04c1f60 c004e27c c0271318 20000013 ffffffff [633625.875714] 1f60: b5ed22e0 0002404f 0084d405 00000000 00000000 c04d0698 00000000 c04d0698 [633625.886646] 1f80: 00000000 c04d0420 004b8074 c0270e88 c04d0698 00000000 c050918c c0271014 [633625.898317] 1fa0: c04c0000 c0509b28 c04cc1cc c096f0e0 00004000 c000f484 c04c8c20 00000000 [633625.909787] 1fc0: c04b9650 c0498764 ffffffff ffffffff c0498284 00000000 00000000 c04b9650 [633625.918159] 1fe0: 00000000 00053175 c04c8048 c04b964c c04cc1c4 00008040 00000000 00000000 [633625.926557] [<c0282990>] (skb_push+0x6c/0x84) from [<bf501028>] (htc_issue_send.constprop.0+0x28/0x68 [ath9k_htc]) [633625.937158] [<bf501028>] (htc_issue_send.constprop.0+0x28/0x68 [ath9k_htc]) from [<bf504110>] (ath9k_htc_tx_start+0x290/0x2a4 [ath9k_htc]) [633625.949877] [<bf504110>] (ath9k_htc_tx_start+0x290/0x2a4 [ath9k_htc]) from [<bf5058b0>] (ath9k_htc_tx+0x98/0xcc [ath9k_htc]) [633625.961458] [<bf5058b0>] (ath9k_htc_tx+0x98/0xcc [ath9k_htc]) from [<bf37560c>] (__ieee80211_tx+0x210/0x2a8 [mac80211]) [633625.972695] [<bf37560c>] (__ieee80211_tx+0x210/0x2a8 [mac80211]) from [<bf375760>] (ieee80211_tx+0xbc/0xc4 [mac80211]) [633625.983816] [<bf375760>] (ieee80211_tx+0xbc/0xc4 [mac80211]) from [<bf376d58>] (ieee80211_tx_pending+0xf0/0x194 [mac80211]) [633625.995326] [<bf376d58>] (ieee80211_tx_pending+0xf0/0x194 [mac80211]) from [<c0026e2c>] (tasklet_action+0x84/0xcc) [633626.005905] [<c0026e2c>] (tasklet_action+0x84/0xcc) from [<c0026644>] (__do_softirq+0xdc/0x204) [633626.014750] [<c0026644>] (__do_softirq+0xdc/0x204) from [<c0026a2c>] (irq_exit+0x40/0x8c) [633626.023103] [<c0026a2c>] (irq_exit+0x40/0x8c) from [<c000f28c>] (handle_IRQ+0x64/0x84) [633626.031193] [<c000f28c>] (handle_IRQ+0x64/0x84) from [<c000df94>] (__irq_svc+0x34/0x78) [633626.039412] [<c000df94>] (__irq_svc+0x34/0x78) from [<c0271318>] (cpuidle_wrap_enter+0x54/0x9c) [633626.048331] [<c0271318>] (cpuidle_wrap_enter+0x54/0x9c) from [<c0270e88>] (cpuidle_enter_state+0x14/0x68) [633626.058162] [<c0270e88>] (cpuidle_enter_state+0x14/0x68) from [<c0271014>] (cpuidle_idle_call+0x138/0x25c) [633626.067998] [<c0271014>] (cpuidle_idle_call+0x138/0x25c) from [<c000f484>] (cpu_idle+0x68/0xc8) [633626.076852] [<c000f484>] (cpu_idle+0x68/0xc8) from [<c0498764>] (start_kernel+0x2b4/0x30c) [633626.146230] Code: e58dc014 e59f1014 e59f0014 eb0308b0 (e7f001f2) [633626.152520] ---[ end trace ee5dbceea3381e46 ]--- [633626.157249] Kernel panic - not syncing: Fatal exception in interruptHas the problem been fixed already? I can update the kernel to a recent version if needed.
this oops was generated by skb_push:
" skb_push() will decrement the 'skb->data' pointer by the specified number of bytes. It will also increment 'skb->len' by that number of bytes as well. The caller must make sure there is enough head room for the push being performed. This condition is checked for by skb_push() and an assertion failure will trigger if this rule is violated."
hmm... theoretically driver should check the size of date before skb_push, but i do not see that other driver do this check. Interesting where this buffer was allocated.
Signature · 2 lines
Regards, Oleksij
Am 26.05.2013 08:20, schrieb Oleksij Rempel:
Quoted 130 lines
Am 24.05.2013 10:47, schrieb Marc Kleine-Budde:
Quoted 121 lines
added ath9k-devel to Cc
Quoted 118 lines · Marc Kleine-Budde
Hello,
I'm on a kirkwood based armv5 system with an USB attached TP-Link TL-WN821N - Atheros AR7010+AR9287, [1]. the wlan is running in AP mode with hostapd-1.0. The kernel is v3.8.12 from debian (3.8-1-kirkwood #1 Debian 3.8.12-1).
The system crashes repeatedly after about one week with the following oops:
[633625.401875] skbuff: skb_under_panic: text:bf501028 len:128 put:8 head:d2788800 data:d27887fe tail:0xd278887e end:0xd2788f40 dev:wlan1 [633625.414180] ------------[ cut here ]------------ [633625.418909] kernel BUG at/build/buildd-linux_3.8.12-1-armel-7F6kBx/linux-3.8.12/net/core/skbuff.c:145!
[633625.428430] Internal error: Oops - BUG: 0 [#1] ARM [633625.433322] Modules linked in: [...] [633625.583170] CPU: 0 Not tainted (3.8-1-kirkwood #1 Debian 3.8.12-1) [633625.589821] PC is at skb_push+0x6c/0x84 [633625.593763] LR is at skb_push+0x6c/0x84 [633625.597707] pc : [<c0282990>] lr : [<c0282990>] psr: 20000013 [633625.597707] sp : c04c1d50 ip : 000008f8 fp : df04ea54 [633625.609404] r10: 00000002 r9 : 00000008 r8 : df00dca8 [633625.614734] r7 : 00000006 r6 : c04410a0 r5 : d278887e r4 : d2788800 [633625.621378] r3 : c04d328c r2 : 20000093 r1 : 00000001 r0 : 00000079 [633625.628015] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel [633625.635443] Control: 0005317f Table: 1f224000 DAC: 00000017 [633625.641295] Process swapper (pid: 0, stack limit = 0xc04c01b8) [633625.647241] Stack: (0xc04c1d50 to 0xc04c2000) [633625.657414] 1d40: 00000008 d2788800 d27887fe d278887e [633625.666101] 1d60: d2788f40 df04e000 df00dc00 df2e0c00 00000078 bf501028 df2e0c00 dfba3120 [633625.675025] 1d80: d278882a df04e9a0 00000000 bf504110 dfb3ce20 00000201 00000000 00084502 [633625.683954] 1da0: 00000001 df2e0c00 dfba3120 00000008 00000002 c04c1df4 00000000 00000001 [633625.693553] 1dc0: 0000006a bf5058b0 00000000 c04c1df4 c04c1e30 dfba2300 c151ff18 df04e9a0 [633625.702041] 1de0: c04c1e30 bf37560c 0000000c 00004288 c04c1e2c c151ff18 0000006a df2e0c00 [633625.710540] 1e00: dfba2300 00000000 0000006a df04e462 00000000 00000001 60000013 bf375760 [633625.718904] 1e20: 00000001 c14c19a0 c14c0460 00000000 c04c1e30 c04c1e30 00000000 dfba2300 [633625.727374] 1e40: df04e460 c151fc00 de5af200 00000002 00000002 dfba2300 dfba2308 dfba28a8 [633625.787263] 1e60: c04c1e7c dfba28ac df2e0c00 bf376d58 c0508ae0 00000000 0000012c 00000080 [633625.798914] 1e80: 03c66eab c0508ae8 c04d4c68 c04d3494 00000000 00000000 00000006 00000100 [633625.810249] 1ea0: c052b3a0 00000009 c052b3c0 c0026e2c 00000001 00000018 c04c0000 c0026644 [633625.818620] 1ec0: c04d8f74 c1484260 1144b25a c04d8f74 00000000 00200000 c04c1f4c 00000013 [633625.831230] 1ee0: 00000000 fed20200 c04c1f4c 00000000 56251311 c04d0420 00000000 c0026a2c [633625.842695] 1f00: 00002000 c000f28c c004e27c c0271318 20000013 c000df94 c04c1f60 60000013 [633625.853824] 1f20: 000e32dc 0002404f b5def004 0002404f c04d0698 00000000 00000000 56251311 [633625.864745] 1f40: c04d0420 00000000 00000003 c04c1f60 c004e27c c0271318 20000013 ffffffff [633625.875714] 1f60: b5ed22e0 0002404f 0084d405 00000000 00000000 c04d0698 00000000 c04d0698 [633625.886646] 1f80: 00000000 c04d0420 004b8074 c0270e88 c04d0698 00000000 c050918c c0271014 [633625.898317] 1fa0: c04c0000 c0509b28 c04cc1cc c096f0e0 00004000 c000f484 c04c8c20 00000000 [633625.909787] 1fc0: c04b9650 c0498764 ffffffff ffffffff c0498284 00000000 00000000 c04b9650 [633625.918159] 1fe0: 00000000 00053175 c04c8048 c04b964c c04cc1c4 00008040 00000000 00000000 [633625.926557] [<c0282990>] (skb_push+0x6c/0x84) from [<bf501028>] (htc_issue_send.constprop.0+0x28/0x68 [ath9k_htc]) [633625.937158] [<bf501028>] (htc_issue_send.constprop.0+0x28/0x68 [ath9k_htc]) from [<bf504110>] (ath9k_htc_tx_start+0x290/0x2a4 [ath9k_htc]) [633625.949877] [<bf504110>] (ath9k_htc_tx_start+0x290/0x2a4 [ath9k_htc]) from [<bf5058b0>] (ath9k_htc_tx+0x98/0xcc [ath9k_htc]) [633625.961458] [<bf5058b0>] (ath9k_htc_tx+0x98/0xcc [ath9k_htc]) from [<bf37560c>] (__ieee80211_tx+0x210/0x2a8 [mac80211]) [633625.972695] [<bf37560c>] (__ieee80211_tx+0x210/0x2a8 [mac80211]) from [<bf375760>] (ieee80211_tx+0xbc/0xc4 [mac80211]) [633625.983816] [<bf375760>] (ieee80211_tx+0xbc/0xc4 [mac80211]) from [<bf376d58>] (ieee80211_tx_pending+0xf0/0x194 [mac80211]) [633625.995326] [<bf376d58>] (ieee80211_tx_pending+0xf0/0x194 [mac80211]) from [<c0026e2c>] (tasklet_action+0x84/0xcc) [633626.005905] [<c0026e2c>] (tasklet_action+0x84/0xcc) from [<c0026644>] (__do_softirq+0xdc/0x204) [633626.014750] [<c0026644>] (__do_softirq+0xdc/0x204) from [<c0026a2c>] (irq_exit+0x40/0x8c) [633626.023103] [<c0026a2c>] (irq_exit+0x40/0x8c) from [<c000f28c>] (handle_IRQ+0x64/0x84) [633626.031193] [<c000f28c>] (handle_IRQ+0x64/0x84) from [<c000df94>] (__irq_svc+0x34/0x78) [633626.039412] [<c000df94>] (__irq_svc+0x34/0x78) from [<c0271318>] (cpuidle_wrap_enter+0x54/0x9c) [633626.048331] [<c0271318>] (cpuidle_wrap_enter+0x54/0x9c) from [<c0270e88>] (cpuidle_enter_state+0x14/0x68) [633626.058162] [<c0270e88>] (cpuidle_enter_state+0x14/0x68) from [<c0271014>] (cpuidle_idle_call+0x138/0x25c) [633626.067998] [<c0271014>] (cpuidle_idle_call+0x138/0x25c) from [<c000f484>] (cpu_idle+0x68/0xc8) [633626.076852] [<c000f484>] (cpu_idle+0x68/0xc8) from [<c0498764>] (start_kernel+0x2b4/0x30c) [633626.146230] Code: e58dc014 e59f1014 e59f0014 eb0308b0 (e7f001f2) [633626.152520] ---[ end trace ee5dbceea3381e46 ]--- [633626.157249] Kernel panic - not syncing: Fatal exception in interruptHas the problem been fixed already? I can update the kernel to a recent version if needed.
this oops was generated by
skb_push:
"skb_push()will decrement the 'skb->data' pointer by the specified number of bytes. It will also increment 'skb->len' by that number of bytes as well. The caller must make sure there is enough head room for the push being performed. This condition is checked for byskb_push()and an assertion failure will trigger if this rule is violated."
Quoted 4 lines
hmm... theoretically driver should check the size of date before
skb_push, but i do not see that other driver do this check. Interesting where this buffer was allocated.
In attachment is a patch. I hope it is proper fix. "Elders of the Internet" your comments :)
Signature · 9 lines
Regards, Oleksij -------------- next part -------------- A non-text attachment was scrubbed... Name: oops.diff Type: text/x-patch Size: 672 bytes Desc: not available Url : http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20130526/f2354b8b/attachment.bin
Quoted 133 lines · Oleksij Rempel
Am 26.05.2013 08:20, schrieb Oleksij Rempel:
Quoted 132 lines
Am 24.05.2013 10:47, schrieb Marc Kleine-Budde:
Quoted 123 lines
added ath9k-devel to Cc
Quoted 120 lines · Marc Kleine-Budde
Hello,
I'm on a kirkwood based armv5 system with an USB attached TP-Link TL-WN821N - Atheros AR7010+AR9287, [1]. the wlan is running in AP mode with hostapd-1.0. The kernel is v3.8.12 from debian (3.8-1-kirkwood #1 Debian 3.8.12-1).
The system crashes repeatedly after about one week with the following oops:
[633625.401875] skbuff: skb_under_panic: text:bf501028 len:128 put:8 head:d2788800 data:d27887fe tail:0xd278887e end:0xd2788f40 dev:wlan1 [633625.414180] ------------[ cut here ]------------ [633625.418909] kernel BUG at/build/buildd-linux_3.8.12-1-armel-7F6kBx/linux-3.8.12/net/core/skbuff.c:145!
[633625.428430] Internal error: Oops - BUG: 0 [#1] ARM [633625.433322] Modules linked in: [...] [633625.583170] CPU: 0 Not tainted (3.8-1-kirkwood #1 Debian 3.8.12-1) [633625.589821] PC is at skb_push+0x6c/0x84 [633625.593763] LR is at skb_push+0x6c/0x84 [633625.597707] pc : [<c0282990>] lr : [<c0282990>] psr: 20000013 [633625.597707] sp : c04c1d50 ip : 000008f8 fp : df04ea54 [633625.609404] r10: 00000002 r9 : 00000008 r8 : df00dca8 [633625.614734] r7 : 00000006 r6 : c04410a0 r5 : d278887e r4 : d2788800 [633625.621378] r3 : c04d328c r2 : 20000093 r1 : 00000001 r0 : 00000079 [633625.628015] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel [633625.635443] Control: 0005317f Table: 1f224000 DAC: 00000017 [633625.641295] Process swapper (pid: 0, stack limit = 0xc04c01b8) [633625.647241] Stack: (0xc04c1d50 to 0xc04c2000) [633625.657414] 1d40: 00000008 d2788800 d27887fe d278887e [633625.666101] 1d60: d2788f40 df04e000 df00dc00 df2e0c00 00000078 bf501028 df2e0c00 dfba3120 [633625.675025] 1d80: d278882a df04e9a0 00000000 bf504110 dfb3ce20 00000201 00000000 00084502 [633625.683954] 1da0: 00000001 df2e0c00 dfba3120 00000008 00000002 c04c1df4 00000000 00000001 [633625.693553] 1dc0: 0000006a bf5058b0 00000000 c04c1df4 c04c1e30 dfba2300 c151ff18 df04e9a0 [633625.702041] 1de0: c04c1e30 bf37560c 0000000c 00004288 c04c1e2c c151ff18 0000006a df2e0c00 [633625.710540] 1e00: dfba2300 00000000 0000006a df04e462 00000000 00000001 60000013 bf375760 [633625.718904] 1e20: 00000001 c14c19a0 c14c0460 00000000 c04c1e30 c04c1e30 00000000 dfba2300 [633625.727374] 1e40: df04e460 c151fc00 de5af200 00000002 00000002 dfba2300 dfba2308 dfba28a8 [633625.787263] 1e60: c04c1e7c dfba28ac df2e0c00 bf376d58 c0508ae0 00000000 0000012c 00000080 [633625.798914] 1e80: 03c66eab c0508ae8 c04d4c68 c04d3494 00000000 00000000 00000006 00000100 [633625.810249] 1ea0: c052b3a0 00000009 c052b3c0 c0026e2c 00000001 00000018 c04c0000 c0026644 [633625.818620] 1ec0: c04d8f74 c1484260 1144b25a c04d8f74 00000000 00200000 c04c1f4c 00000013 [633625.831230] 1ee0: 00000000 fed20200 c04c1f4c 00000000 56251311 c04d0420 00000000 c0026a2c [633625.842695] 1f00: 00002000 c000f28c c004e27c c0271318 20000013 c000df94 c04c1f60 60000013 [633625.853824] 1f20: 000e32dc 0002404f b5def004 0002404f c04d0698 00000000 00000000 56251311 [633625.864745] 1f40: c04d0420 00000000 00000003 c04c1f60 c004e27c c0271318 20000013 ffffffff [633625.875714] 1f60: b5ed22e0 0002404f 0084d405 00000000 00000000 c04d0698 00000000 c04d0698 [633625.886646] 1f80: 00000000 c04d0420 004b8074 c0270e88 c04d0698 00000000 c050918c c0271014 [633625.898317] 1fa0: c04c0000 c0509b28 c04cc1cc c096f0e0 00004000 c000f484 c04c8c20 00000000 [633625.909787] 1fc0: c04b9650 c0498764 ffffffff ffffffff c0498284 00000000 00000000 c04b9650 [633625.918159] 1fe0: 00000000 00053175 c04c8048 c04b964c c04cc1c4 00008040 00000000 00000000 [633625.926557] [<c0282990>] (skb_push+0x6c/0x84) from [<bf501028>] (htc_issue_send.constprop.0+0x28/0x68 [ath9k_htc]) [633625.937158] [<bf501028>] (htc_issue_send.constprop.0+0x28/0x68 [ath9k_htc]) from [<bf504110>] (ath9k_htc_tx_start+0x290/0x2a4 [ath9k_htc]) [633625.949877] [<bf504110>] (ath9k_htc_tx_start+0x290/0x2a4 [ath9k_htc]) from [<bf5058b0>] (ath9k_htc_tx+0x98/0xcc [ath9k_htc]) [633625.961458] [<bf5058b0>] (ath9k_htc_tx+0x98/0xcc [ath9k_htc]) from [<bf37560c>] (__ieee80211_tx+0x210/0x2a8 [mac80211]) [633625.972695] [<bf37560c>] (__ieee80211_tx+0x210/0x2a8 [mac80211]) from [<bf375760>] (ieee80211_tx+0xbc/0xc4 [mac80211]) [633625.983816] [<bf375760>] (ieee80211_tx+0xbc/0xc4 [mac80211]) from [<bf376d58>] (ieee80211_tx_pending+0xf0/0x194 [mac80211]) [633625.995326] [<bf376d58>] (ieee80211_tx_pending+0xf0/0x194 [mac80211]) from [<c0026e2c>] (tasklet_action+0x84/0xcc) [633626.005905] [<c0026e2c>] (tasklet_action+0x84/0xcc) from [<c0026644>] (__do_softirq+0xdc/0x204) [633626.014750] [<c0026644>] (__do_softirq+0xdc/0x204) from [<c0026a2c>] (irq_exit+0x40/0x8c) [633626.023103] [<c0026a2c>] (irq_exit+0x40/0x8c) from [<c000f28c>] (handle_IRQ+0x64/0x84) [633626.031193] [<c000f28c>] (handle_IRQ+0x64/0x84) from [<c000df94>] (__irq_svc+0x34/0x78) [633626.039412] [<c000df94>] (__irq_svc+0x34/0x78) from [<c0271318>] (cpuidle_wrap_enter+0x54/0x9c) [633626.048331] [<c0271318>] (cpuidle_wrap_enter+0x54/0x9c) from [<c0270e88>] (cpuidle_enter_state+0x14/0x68) [633626.058162] [<c0270e88>] (cpuidle_enter_state+0x14/0x68) from [<c0271014>] (cpuidle_idle_call+0x138/0x25c) [633626.067998] [<c0271014>] (cpuidle_idle_call+0x138/0x25c) from [<c000f484>] (cpu_idle+0x68/0xc8) [633626.076852] [<c000f484>] (cpu_idle+0x68/0xc8) from [<c0498764>] (start_kernel+0x2b4/0x30c) [633626.146230] Code: e58dc014 e59f1014 e59f0014 eb0308b0 (e7f001f2) [633626.152520] ---[ end trace ee5dbceea3381e46 ]--- [633626.157249] Kernel panic - not syncing: Fatal exception ininterrupt
Has the problem been fixed already? I can update the kernel to a recent version if needed.
this oops was generated by
skb_push:
"skb_push()will decrement the 'skb->data' pointer by the specified number of bytes. It will also increment 'skb->len' by that number of bytes as well. The caller must make sure there is enough head room for the push being performed. This condition is checked for byskb_push()and an assertion failure will trigger if this rule is violated."
Quoted 7 lines
Quoted 4 lines
hmm... theoretically driver should check the size of date before
skb_push, but i do not see that other driver do this check. Interesting where this buffer was allocated.In attachment is a patch. I hope it is proper fix. "Elders of the Internet" your comments :)
Ping, anyone interested to review this patch?
Marc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
Url : http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20130604/24304ddd/attachment.pgp
PATCH 1/1 ath9k_htc: fix skb_under_panic error
This error seems to be really rare, and we do not know real couse of it. But, in any case, we should check size of head before reducing it.
--- drivers/net/wireless/ath/ath9k/htc_hst.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/net/wireless/ath/ath9k/htc_hst.c +6 -0
@@ -26,6 +26,12 @@ static int htc_issue_send(struct htc_target *target, struct sk_buff* skb,struct htc_endpoint *endpoint = &target->endpoint[epid];int status; +if (skb_headroom (skb) < len && +pskb_expand_head (skb, len,0 ,GFP_ATOMIC )) { +dev_err (target->dev,"Unable to expand headrom to %d\n" , len); +return -ENOMEM ; + } + hdr = (struct htc_frame_hdr *)skb_push (skb,sizeof (struct htc_frame_hdr )); hdr->endpoint_id = epid;
Signature · 1 line
1.8.1.2
PATCH 1/1 ath9k_htc: fix skb_under_panic error
Hi,
Quoted 2 lines · Oleksij Rempel
This error seems to be really rare, and we do not know real couse of it. But, in any case, we should check size of head before reducing it.
We had a similar issue in rt2x00 quite some time ago.
In general mac80211 should always reserve enough headroom as requested by the driver in hw->extra_tx_headroom. However, there is a chance that a frame is send to the driver again (see ieee80211_handle_filtered_frame). But if the frame payload (or head) was moved due to padding and was not restored before calling ieee80211_tx_status by the driver the second trip through the driver has reduced headroom and could lead to such an error.
Quickly checking ath9k_htc it seems as if ath9k_htc_tx adds some padding but ath9k_htc_tx_process does not remove the padding when passing the frame back to mac80211.
Helmut
PATCH 1/1 ath9k_htc: fix skb_under_panic error
In reply to Oleksij RempelQuoted 2 lines · Oleksij Rempel
This error seems to be really rare, and we do not know real couse of it. But, in any case, we should check size of head before reducing it.
Mind to try the (completely untested) patch against wireless-testing instead? Helmut
---
Subject: [PATCH] ath9k_htc: Restore skb headroom when returning skb to mac80211
ath9k_htc adds padding between the 802.11 header and the payload during TX by moving the header. When handing the frame back to mac80211 for TX status handling the header is not moved back into its original position. This can result in a too small skb headroom when entering ath9k_htc again (due to a soft retransmission for example) causing an skb_under_panic oops.
Fix this by moving the 802.11 header back into its original position before returning the frame to mac80211 as other drivers like rt2x00 or ath5k do.
--- drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
(quoted diff) +0 -0
b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
index e602c95..666cfb6 100644
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c +0 -0
@@ -448,6 +448,8 @@ static void ath9k_htc_tx_process(struct
ath9k_htc_priv *priv,
struct ieee80211_conf *cur_conf = &priv->hw->conf;
bool txok;
int slot;+ struct ieee80211_hdr *hdr;
+ int padpos, padsize;
slot = strip_drv_header(priv, skb);
if (slot < 0) {@@ -504,6 +506,15 @@ send_mac80211:
ath9k_htc_tx_clear_slot(priv, slot);
+ /* Remove padding before handing frame back to mac80211 */
+ hdr = (struct ieee80211_hdr *) skb->data;
+ padpos = ieee80211_hdrlen(hdr->frame_control);
+ padsize = padpos & 3;
+ if (padsize && skb->len > padpos + padsize) {+ memmove(skb->data + padsize, skb->data, padpos);
+ skb_pull(skb, padsize);
+ }
+
/* Send status to mac80211 */
ieee80211_tx_status(priv->hw, skb); }
--
1.7.10.4
PATCH 1/1 ath9k_htc: fix skb_under_panic error
Quoted 6 lines · Helmut Schaa
Quoted 2 lines · Oleksij Rempel
This error seems to be really rare, and we do not know real couse of it. But, in any case, we should check size of head before reducing it.
Mind to try the (completely untested) patch against wireless-testing instead? Helmut
I will do, however I'm not in range of that USB wireless adapter for about 1,5 weeks.
Marc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
Url : http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20130605/a0defc1c/attachment.pgp
PATCH 1/1 ath9k_htc: fix skb_under_panic error
Am 05.06.2013 16:26, schrieb Marc Kleine-Budde:
Quoted 10 lines · Helmut Schaa
Quoted 6 lines · Oleksij Rempel
Quoted 2 lines
This error seems to be really rare, and we do not know real couse of it. But, in any case, we should check size of head before reducing it.
Mind to try the (completely untested) patch against wireless-testing instead? Helmut
I will do, however I'm not in range of that USB wireless adapter for about 1,5 weeks.
Helmut, thank you for patch!
i'll do regression test, but not week long test. So i probably won't reproduce this issue.
Signature · 2 lines
Regards, Oleksij
PATCH 1/1 ath9k_htc: fix skb_under_panic error
Am 05.06.2013 16:46, schrieb Oleksij Rempel:
Quoted 12 lines
Am 05.06.2013 16:26, schrieb Marc Kleine-Budde:
Quoted 11 lines · Helmut Schaa
Quoted 9 lines
Quoted 3 lines · Oleksij Rempel
This error seems to be really rare, and we do not know real couse of it.
But, in any case, we should check size of head before reducing it.Mind to try the (completely untested) patch against wireless-testing instead?
Helmut
Quoted 7 lines
Quoted 2 lines
I will do, however I'm not in range of that USB wireless adapter for about 1,5 weeks.
Helmut, thank you for patch!
i'll do regression test, but not week long test. So i probably won't reproduce this issue.
I was running two stream netperf test for 2 hours without visible regressions.
Signature · 2 lines
Regards, Oleksij
PATCH 1/1 ath9k_htc: fix skb_under_panic error
Quoted 2 lines · Oleksij Rempel
I was running two stream netperf test for 2 hours without visible regressions.
With or without your pskb_expand_head patch applied?
Thanks,
Helmut
PATCH 1/1 ath9k_htc: fix skb_under_panic error
Am 06.06.2013 13:48, schrieb Helmut Schaa:
Quoted 9 lines · Oleksij Rempel
Quoted 2 lines
I was running two stream netperf test for 2 hours without visible regressions.
With or without your
pskb_expand_headpatch applied?Thanks,
Helmut
whithout my patch, on to of wireless-testing master git. But i didn't had this problem before. So, may be this scenario was not used by me. Shouldn't we actually have this check from my patch, to avoid other oopses?
Signature · 2 lines
Regards, Oleksij
PATCH 1/1 ath9k_htc: fix skb_under_panic error
In reply to Helmut SchaaHello,
Quoted 6 lines · Helmut Schaa
Quoted 2 lines · Oleksij Rempel
This error seems to be really rare, and we do not know real couse of it. But, in any case, we should check size of head before reducing it.
Mind to try the (completely untested) patch against wireless-testing instead? Helmut
I'm running a kernel with a slightly modified version of that patch for 4 weeks without problems so far. I'll send a mail with that patch.
Marc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 897 bytes
Desc: OpenPGP digital signature
Url : http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20130816/fe6286a9/attachment.pgp
Quoted 54 lines · Marc Kleine-Budde
The system crashes repeatedly after about one week with the following oops:
[633625.401875] skbuff: skb_under_panic: text:bf501028 len:128 put:8 head:d2788800 data:d27887fe tail:0xd278887e end:0xd2788f40 dev:wlan1 [633625.414180] ------------[ cut here ]------------ [633625.418909] kernel BUG at /build/buildd-linux_3.8.12-1-armel-7F6kBx/linux-3.8.12/net/core/skbuff.c:145! [633625.428430] Internal error: Oops - BUG: 0 [#1] ARM [633625.433322] Modules linked in: [...] [633625.583170] CPU: 0 Not tainted (3.8-1-kirkwood #1 Debian 3.8.12-1) [633625.589821] PC is at skb_push+0x6c/0x84 [633625.593763] LR is at skb_push+0x6c/0x84 [633625.597707] pc : [<c0282990>] lr : [<c0282990>] psr: 20000013 [633625.597707] sp : c04c1d50 ip : 000008f8 fp : df04ea54 [633625.609404] r10: 00000002 r9 : 00000008 r8 : df00dca8 [633625.614734] r7 : 00000006 r6 : c04410a0 r5 : d278887e r4 : d2788800 [633625.621378] r3 : c04d328c r2 : 20000093 r1 : 00000001 r0 : 00000079 [633625.628015] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel [633625.635443] Control: 0005317f Table: 1f224000 DAC: 00000017 [633625.641295] Process swapper (pid: 0, stack limit = 0xc04c01b8) [633625.647241] Stack: (0xc04c1d50 to 0xc04c2000) [633625.657414] 1d40: 00000008 d2788800 d27887fe d278887e [633625.666101] 1d60: d2788f40 df04e000 df00dc00 df2e0c00 00000078 bf501028 df2e0c00 dfba3120 [633625.675025] 1d80: d278882a df04e9a0 00000000 bf504110 dfb3ce20 00000201 00000000 00084502 [633625.683954] 1da0: 00000001 df2e0c00 dfba3120 00000008 00000002 c04c1df4 00000000 00000001 [633625.693553] 1dc0: 0000006a bf5058b0 00000000 c04c1df4 c04c1e30 dfba2300 c151ff18 df04e9a0 [633625.702041] 1de0: c04c1e30 bf37560c 0000000c 00004288 c04c1e2c c151ff18 0000006a df2e0c00 [633625.710540] 1e00: dfba2300 00000000 0000006a df04e462 00000000 00000001 60000013 bf375760 [633625.718904] 1e20: 00000001 c14c19a0 c14c0460 00000000 c04c1e30 c04c1e30 00000000 dfba2300 [633625.727374] 1e40: df04e460 c151fc00 de5af200 00000002 00000002 dfba2300 dfba2308 dfba28a8 [633625.787263] 1e60: c04c1e7c dfba28ac df2e0c00 bf376d58 c0508ae0 00000000 0000012c 00000080 [633625.798914] 1e80: 03c66eab c0508ae8 c04d4c68 c04d3494 00000000 00000000 00000006 00000100 [633625.810249] 1ea0: c052b3a0 00000009 c052b3c0 c0026e2c 00000001 00000018 c04c0000 c0026644 [633625.818620] 1ec0: c04d8f74 c1484260 1144b25a c04d8f74 00000000 00200000 c04c1f4c 00000013 [633625.831230] 1ee0: 00000000 fed20200 c04c1f4c 00000000 56251311 c04d0420 00000000 c0026a2c [633625.842695] 1f00: 00002000 c000f28c c004e27c c0271318 20000013 c000df94 c04c1f60 60000013 [633625.853824] 1f20: 000e32dc 0002404f b5def004 0002404f c04d0698 00000000 00000000 56251311 [633625.864745] 1f40: c04d0420 00000000 00000003 c04c1f60 c004e27c c0271318 20000013 ffffffff [633625.875714] 1f60: b5ed22e0 0002404f 0084d405 00000000 00000000 c04d0698 00000000 c04d0698 [633625.886646] 1f80: 00000000 c04d0420 004b8074 c0270e88 c04d0698 00000000 c050918c c0271014 [633625.898317] 1fa0: c04c0000 c0509b28 c04cc1cc c096f0e0 00004000 c000f484 c04c8c20 00000000 [633625.909787] 1fc0: c04b9650 c0498764 ffffffff ffffffff c0498284 00000000 00000000 c04b9650 [633625.918159] 1fe0: 00000000 00053175 c04c8048 c04b964c c04cc1c4 00008040 00000000 00000000 [633625.926557] [<c0282990>] (skb_push+0x6c/0x84) from [<bf501028>] (htc_issue_send.constprop.0+0x28/0x68 [ath9k_htc]) [633625.937158] [<bf501028>] (htc_issue_send.constprop.0+0x28/0x68 [ath9k_htc]) from [<bf504110>] (ath9k_htc_tx_start+0x290/0x2a4 [ath9k_htc]) [633625.949877] [<bf504110>] (ath9k_htc_tx_start+0x290/0x2a4 [ath9k_htc]) from [<bf5058b0>] (ath9k_htc_tx+0x98/0xcc [ath9k_htc]) [633625.961458] [<bf5058b0>] (ath9k_htc_tx+0x98/0xcc [ath9k_htc]) from [<bf37560c>] (__ieee80211_tx+0x210/0x2a8 [mac80211]) [633625.972695] [<bf37560c>] (__ieee80211_tx+0x210/0x2a8 [mac80211]) from [<bf375760>] (ieee80211_tx+0xbc/0xc4 [mac80211]) [633625.983816] [<bf375760>] (ieee80211_tx+0xbc/0xc4 [mac80211]) from [<bf376d58>] (ieee80211_tx_pending+0xf0/0x194 [mac80211]) [633625.995326] [<bf376d58>] (ieee80211_tx_pending+0xf0/0x194 [mac80211]) from [<c0026e2c>] (tasklet_action+0x84/0xcc) [633626.005905] [<c0026e2c>] (tasklet_action+0x84/0xcc) from [<c0026644>] (__do_softirq+0xdc/0x204) [633626.014750] [<c0026644>] (__do_softirq+0xdc/0x204) from [<c0026a2c>] (irq_exit+0x40/0x8c) [633626.023103] [<c0026a2c>] (irq_exit+0x40/0x8c) from [<c000f28c>] (handle_IRQ+0x64/0x84) [633626.031193] [<c000f28c>] (handle_IRQ+0x64/0x84) from [<c000df94>] (__irq_svc+0x34/0x78)
Quoted 8 lines
[633626.039412] [<c000df94>] (__irq_svc+0x34/0x78) from [<c0271318>] (cpuidle_wrap_enter+0x54/0x9c) [633626.048331] [<c0271318>] (cpuidle_wrap_enter+0x54/0x9c) from [<c0270e88>] (cpuidle_enter_state+0x14/0x68) [633626.058162] [<c0270e88>] (cpuidle_enter_state+0x14/0x68) from [<c0271014>] (cpuidle_idle_call+0x138/0x25c) [633626.067998] [<c0271014>] (cpuidle_idle_call+0x138/0x25c) from [<c000f484>] (cpu_idle+0x68/0xc8) [633626.076852] [<c000f484>] (cpu_idle+0x68/0xc8) from [<c0498764>] (start_kernel+0x2b4/0x30c) [633626.146230] Code: e58dc014 e59f1014 e59f0014 eb0308b0 (e7f001f2) [633626.152520] ---[ end trace ee5dbceea3381e46 ]--- [633626.157249] Kernel panic - not syncing: Fatal exception in interrupt
I got another crash with the same backtrace:
Quoted 56 lines
[928701.926691] skbuff: skb_under_panic: text:bf3f0028 len:96 put:8 head:def9a600 data:def9a5fe tail:0xdef9a65e end:0xdef9a740 dev:wlan1 [928701.938845] ------------[ cut here ]------------ [928701.943572] kernel BUG at /build/buildd-linux_3.8.13-1-armel-0oa5Oc/linux-3.8.13/net/core/skbuff.c:145! [928701.953093] Internal error: Oops - BUG: 0 [#1] ARM [928701.957985] Modules linked in: sch_cbq rt2800usb rt2x00usb rt2800lib rt2x00lib crc_ccitt sit tunnel4 act_police cls_basic cls_flow cls_fw cls_u32 sch_fq
_codelsch_tbfsch_priosch_htbsch_hfscsch_ingresssch_sfqnf_conntrack_sipxt_CHECKSUMipt_rpfilterxt_statisticxt_CTxt_LOGxt_connlimitxt_realmxt_addrtypext_commentxt_recentxt_natipt_ULOGipt_REJECTipt_MASQUERADEipt_ECNipt_CLUSTERIPipt_ahxt_setip_setnf_nat_tftpnf_nat_snmp_basicnf_conntrack_snmpnf_nat_pptpnf_nat_proto_grenf_nat_ircnf_nat_h323nf_nat_ftpnf_nat_amandats_kmpnf_conntrack_amandanf_conntrack_sanenf_conntrack_tftpnf_conntrack_proto_sctpnf_conntrack_pptpnf_conntrack_proto_grenf_conntrack_netlinknf_conntrack_netbios_nsnf_conntrack_broadcastnf_conntrack_ircnf_conntrack_h323
nf_conntrack_ftpxt_TPROXYnf_defrag_ipv6nf_tproxy_corext_timext_TCPMSSxt_tcpmssxt_sctpxt_policyxt_pkttypext_physdevxt_ownerxt_NFQUEUExt_NFLOGnfnetlink_logxt_multiportxt_markxt_macxt_limitxt_lengthxt_iprangext_helperxt_hashlimitxt_DSCPxt_dscpxt_dccpxt_conntrackxt_connmarkxt_CLASSIFYxt_AUDITxt_tcpudpxt_stateiptable_rawiptable_natnf_nat_ipv4nf_natnf_conntrack_ipv4nf_defrag_ipv4nf_conntrackiptable_manglenfnetlink pppoe pppox iptable_filterip_tablesx_tablesfuse nfsdauth_rpcgssnfs_aclnfs lockddns_resolverfscache sunrpcppp_genericslhc 8021q garp tun bridge stp llc ext2dm_crypt sg arc4ath9k_htcath9k_commonath9k_hwath cp210x mac80211mct_u232hmac cfg80211 rfkill usbserialsha1_genericsd_modcrc_t10difmv_cesausb_storageu sbhid hid ext4 jbd2 mbcachedm_modmmc_blockehci_hcdsata_mvlibata mvsdio usbcorescsi_modusb_commonmmc_coremv643xx_ethinet_lrolibphy[928702.107833] CPU: 0 Not tainted (3.8-2-kirkwood #1 Debian 3.8.13-1) [928702.114484] PC is at skb_push+0x6c/0x84 [928702.118426] LR is at skb_push+0x6c/0x84 [928702.122370] pc : [<c0282a7c>] lr : [<c0282a7c>] psr: 20000013 [928702.122370] sp : c04c1da0 ip : 000008f8 fp : df057a54 [928702.134068] r10: 00000002 r9 : 00000030 r8 : dfb7b0a8 [928702.139397] r7 : 00000006 r6 : c04410a0 r5 : def9a65e r4 : def9a600 [928702.146041] r3 : c04d328c r2 : 20000093 r1 : 00000001 r0 : 00000078 [928702.152687] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel [928702.160116] Control: 0005317f Table: 1e324000 DAC: 00000017 [928702.165975] Process swapper (pid: 0, stack limit = 0xc04c01b8) [928702.171923] Stack: (0xc04c1da0 to 0xc04c2000) [928702.185802] 1da0: 00000008 def9a600 def9a5fe def9a65e def9a740 df057000 dfb7b000 dfa63800 [928702.194801] 1dc0: 00000058 bf3f0028 dfa63800 dedf7120 def9a62a df0579a0 00000000 bf3f3110 [928702.204372] 1de0: 1f904720 00000201 00000000 00300602 c0508880 dfa63800 dedf7120 00000030 [928702.213017] 1e00: 00000002 c04c1e44 00000000 00000001 0000004a bf3f48b0 00000000 c04c1e44 [928702.221498] 1e20: c04c1e7c dedf6300 de9d6b18 df0579a0 c04c1e7c bf31160c 0000000c 00004288 [928702.229985] 1e40: 00000007 de9d6b18 00000003 00000002 dedf6300 dedf6308 dedf68a8 c04c1e7c [928702.238815] 1e60: dedf68ac dfa63800 20000013 bf312d9c 00000001 00000000 00000040 c04c1e7c [928702.247802] 1e80: c04c1e7c 00000000 ddeaa000 c04d3494 00000000 00000000 00000006 00000100 [928702.257007] 1ea0: c052b140 00000009 c052b160 c0026e2c 00000001 00000018 c04c0000 c0026644 [928702.266932] 1ec0: c04d8e74 c14a2360 1128d4b5 c04d8e74 00000000 00200000 c04c1f4c 00000013 [928702.275727] 1ee0: 00000000 fed20200 c04c1f4c 00000000 56251311 c04d0420 00000000 c0026a2c [928702.285474] 1f00: 00002000 c000f28c c004e27c c0271404 20000013 c000df94 c04c1f60 60000013 [928702.333352] 1f20: 000459bb 00034cb4 57c485a3 00034cb4 c04d0698 00000000 00000000 56251311 [928702.345256] 1f40: c04d0420 00000000 00000003 c04c1f60 c004e27c c0271404 20000013 ffffffff [928702.357459] 1f60: 57c8df5e 00034cb4 0091cbfe 00000000 00000000 c04d0698 00000000 c04d0698 [928702.365856] 1f80: 00000000 c04d0420 004b8074 c0270f74 c04d0698 00000000 c0508f2c c0271100 [928702.378646] 1fa0: c04c0000 c05098c8 c04cc1cc c096f0e0 00004000 c000f484 c04c8c20 00000000 [928702.390861] 1fc0: c04b9650 c0498764 ffffffff ffffffff c0498284 00000000 00000000 c04b9650 [928702.402617] 1fe0: 00000000 00053175 c04c8048 c04b964c c04cc1c4 00008040 00000000 00000000 [928702.411182] [<c0282a7c>] (skb_push+0x6c/0x84) from [<bf3f0028>] (htc_issue_send.constprop.0+0x28/0x68 [ath9k_htc]) [928702.421866] [<bf3f0028>] (htc_issue_send.constprop.0+0x28/0x68 [ath9k_htc]) from [<bf3f3110>] (ath9k_htc_tx_start+0x290/0x2a4 [ath9k_htc]) [928702.434567] [<bf3f3110>] (ath9k_htc_tx_start+0x290/0x2a4 [ath9k_htc]) from [<bf3f48b0>] (ath9k_htc_tx+0x98/0xcc [ath9k_htc]) [928702.446402] [<bf3f48b0>] (ath9k_htc_tx+0x98/0xcc [ath9k_htc]) from [<bf31160c>] (__ieee80211_tx+0x210/0x2a8 [mac80211]) [928702.457691] [<bf31160c>] (__ieee80211_tx+0x210/0x2a8 [mac80211]) from [<bf312d9c>] (ieee80211_tx_pending+0x134/0x194 [mac80211]) [928702.469633] [<bf312d9c>] (ieee80211_tx_pending+0x134/0x194 [mac80211]) from [<c0026e2c>] (tasklet_action+0x84/0xcc) [928702.480285] [<c0026e2c>] (tasklet_action+0x84/0xcc) from [<c0026644>] (__do_softirq+0xdc/0x204) [928702.489167] [<c0026644>] (__do_softirq+0xdc/0x204) from [<c0026a2c>] (irq_exit+0x40/0x8c) [928702.497533] [<c0026a2c>] (irq_exit+0x40/0x8c) from [<c000f28c>] (handle_IRQ+0x64/0x84) [928702.505610] [<c000f28c>] (handle_IRQ+0x64/0x84) from [<c000df94>] (__irq_svc+0x34/0x78)
Quoted 8 lines
[928702.513766] [<c000df94>] (__irq_svc+0x34/0x78) from [<c0271404>] (cpuidle_wrap_enter+0x54/0x9c) [928702.522664] [<c0271404>] (cpuidle_wrap_enter+0x54/0x9c) from [<c0270f74>] (cpuidle_enter_state+0x14/0x68) [928702.532408] [<c0270f74>] (cpuidle_enter_state+0x14/0x68) from [<c0271100>] (cpuidle_idle_call+0x138/0x25c) [928702.542214] [<c0271100>] (cpuidle_idle_call+0x138/0x25c) from [<c000f484>] (cpu_idle+0x68/0xc8) [928702.551090] [<c000f484>] (cpu_idle+0x68/0xc8) from [<c0498764>] (start_kernel+0x2b4/0x30c) [928702.580308] Code: e58dc014 e59f1014 e59f0014 eb0308b0 (e7f001f2) [928702.586611] ---[ end trace 908fdc07dd882304 ]--- [928702.591337] Kernel panic - not syncing: Fatal exception in interrupt
regards,
Marc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
Url : http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20130604/77bed108/attachment.pgp