Return-path: Received: from moutng.kundenserver.de ([212.227.17.9]:61047 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751415Ab3FDKGO (ORCPT ); Tue, 4 Jun 2013 06:06:14 -0400 Message-ID: <51ADBC01.6090202@blackshift.org> (sfid-20130604_120618_286669_F6E1AFC2) Date: Tue, 04 Jun 2013 12:05:53 +0200 From: Marc Kleine-Budde MIME-Version: 1.0 To: Oleksij Rempel CC: "linux-wireless@vger.kernel.org" , ath9k-devel@lists.ath9k.org Subject: Re: [PATCH RFC] Re: skb_under_panic in ath9k References: <519D405B.2080806@blackshift.org> <519F291B.1060905@blackshift.org> <51A1A9C4.4000203@rempel-privat.de> <51A1C19F.6050604@rempel-privat.de> In-Reply-To: <51A1C19F.6050604@rempel-privat.de> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2DHHWDUSQFWPDPPATPDRW" Sender: linux-wireless-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2DHHWDUSQFWPDPPATPDRW Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable On 05/26/2013 10:02 AM, Oleksij Rempel wrote: > Am 26.05.2013 08:20, schrieb Oleksij Rempel: >> Am 24.05.2013 10:47, schrieb Marc Kleine-Budde: >>> added ath9k-devel to Cc >>> >>> On 05/23/2013 12:02 AM, Marc Kleine-Budde wrote: >>>> 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 mo= de >>>> 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 followin= g >>>> 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/skbu= ff.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 : [] lr : [] psr: 20000= 013 >>>> [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 =3D 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] [] (skb_push+0x6c/0x84) from [] >>>> (htc_issue_send.constprop.0+0x28/0x68 [ath9k_htc]) >>>> [633625.937158] [] (htc_issue_send.constprop.0+0x28/0x68 >>>> [ath9k_htc]) from [] (ath9k_htc_tx_start+0x290/0x2a4 >>>> [ath9k_htc]) >>>> [633625.949877] [] (ath9k_htc_tx_start+0x290/0x2a4 >>>> [ath9k_htc]) from [] (ath9k_htc_tx+0x98/0xcc [ath9k_htc]) >>>> [633625.961458] [] (ath9k_htc_tx+0x98/0xcc [ath9k_htc]) >>>> from [] (__ieee80211_tx+0x210/0x2a8 [mac80211]) >>>> [633625.972695] [] (__ieee80211_tx+0x210/0x2a8 [mac80211])= >>>> from [] (ieee80211_tx+0xbc/0xc4 [mac80211]) >>>> [633625.983816] [] (ieee80211_tx+0xbc/0xc4 [mac80211]) fro= m >>>> [] (ieee80211_tx_pending+0xf0/0x194 [mac80211]) >>>> [633625.995326] [] (ieee80211_tx_pending+0xf0/0x194 >>>> [mac80211]) from [] (tasklet_action+0x84/0xcc) >>>> [633626.005905] [] (tasklet_action+0x84/0xcc) from >>>> [] (__do_softirq+0xdc/0x204) >>>> [633626.014750] [] (__do_softirq+0xdc/0x204) from >>>> [] (irq_exit+0x40/0x8c) >>>> [633626.023103] [] (irq_exit+0x40/0x8c) from [] >>>> (handle_IRQ+0x64/0x84) >>>> [633626.031193] [] (handle_IRQ+0x64/0x84) from [= ] >>>> (__irq_svc+0x34/0x78) >>>> [633626.039412] [] (__irq_svc+0x34/0x78) from []= >>>> (cpuidle_wrap_enter+0x54/0x9c) >>>> [633626.048331] [] (cpuidle_wrap_enter+0x54/0x9c) from >>>> [] (cpuidle_enter_state+0x14/0x68) >>>> [633626.058162] [] (cpuidle_enter_state+0x14/0x68) from >>>> [] (cpuidle_idle_call+0x138/0x25c) >>>> [633626.067998] [] (cpuidle_idle_call+0x138/0x25c) from >>>> [] (cpu_idle+0x68/0xc8) >>>> [633626.076852] [] (cpu_idle+0x68/0xc8) from [] >>>> (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 rec= ent >>>> 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. Interestin= g >> where this buffer was allocated. >> >=20 > 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 ------enig2DHHWDUSQFWPDPPATPDRW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJRrbwFAAoJEF5D1i44JRMahTkP/Rmw234+A5DXPx2xXawQnNMF +ukEtsSEpY25LMqUTr5ENc2zuacmk1so1LnmcPUb9odM44m1OwHBV9xJtVadIykd DGBg9eAL+Zdi46IjzOwtVzzNu4JOatc/acztEEwI7Tj47GnZ5lTZqMDIsy78o7h1 6zHMujpepC4td48Kd3ipgD8HLej60Z8Z2TJVH5h079DEywOfSKXJojTzZlfPxwYF rhdEGtCBgeJXzLtDSZDZgXSmkAfJVgQKEfViLm7MCxG/0q3VwkQp4mBRKLMeIhah 0p7ucDATns8kGsjz61L3JnGya8YcZ59ffMRubOJCTqUQvwM9VK8M3eFOoTnkci+f PJ0zJbtBZWYWUoDvlSctjrFccgiFN2agpjpbzeXOdg/ymdRNvvGXEGtzRrNJjQ9d /0X0w2FQUrDs2ns3b3GxYCv6sJgvaFPmf9RCsP87EnOO9EZah351qWHwZWIS6G3V DTwfoT+Mg5iGY/ss0/bzxJRqcjQaVcrSiQ4uQv8fmu/kEVqf2A2t8aw1KJ23J4w5 GlPCEYdlxSjEA8tBaBEpk9nRlOyYw2QZskf/AV5GY7p4sQS8+nIQEgrAoIXI6ag7 7YBFT7kpZ3zeKBwzN+5m6AEK2D562xi94Vkv2gRZ5LbsXWqfkDPMqe+pWkjSpxKS VNokcXWCS/3a5nVtjymy =75m+ -----END PGP SIGNATURE----- ------enig2DHHWDUSQFWPDPPATPDRW--