Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#3204 - mac80211 crash #8031

Open
openwrt-bot opened this issue Jun 26, 2020 · 2 comments
Open

FS#3204 - mac80211 crash #8031

openwrt-bot opened this issue Jun 26, 2020 · 2 comments
Labels
flyspray kernel pull request/issue with Linux kernel related changes

Comments

@openwrt-bot
Copy link

timkgh:

Netgear R7800 running hnyman's build master-r13625-d4dea7efcd-20200624-ath10k

[104369.085841] ------------[ cut here ]------------ [104369.091780] WARNING: CPU: 0 PID: 0 at backports-5.7-rc3-1/net/mac80211/sta_info.c:1929 ieee80211_sta_update_pending_airtime+0x1f8/0x1fc [mac80211] [104369.096329] STA f0:18:xxxxx AC 2 txq pending airtime underflow: 4294967244, 52 [104369.096332] Modules linked in: pppoe ppp_async ath10k_pci ath10k_core ath pptp pppox ppp_mppe ppp_generic mac80211 ipt_REJECT cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_helper xt_esp xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_MASQUERADE xt_LOG xt_HL xt_FLOWOFFLOAD xt_DSCP xt_CT xt_CLASSIFY wireguard slhc sch_cake nf_reject_ipv4 nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_conntrack_rtcache nf_conntrack_netlink nf_conncount iptable_raw iptable_nat iptable_mangle iptable_filter ipt_ah ipt_ECN ip_tables crc_ccitt compat chaoskey fuse sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred ledtrig_usbport ledtrig_heartbeat xt_set ip_set_list_set ip_set_hash_netportnet ip_set_hash_netport ip_set_hash_netnet ip_set_hash_netiface ip_set_hash_net ip_set_hash_mac [104369.109593] ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6table_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip6t_NPT nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 msdos ip_gre gre ifb ip6_udp_tunnel udp_tunnel sit tunnel4 ip_tunnel tun vfat fat hfsplus cifs nls_utf8 nls_iso8859_15 nls_iso8859_1 nls_cp850 nls_cp437 nls_cp1250 sha1_generic md5 md4 ecb des_generic libdes arc4 usb_storage leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom ohci_platform ohci_hcd phy_qcom_dwc3 ahci fsl_mph_dr_of ehci_platform ehci_fsl sd_mod ahci_platform libahci_platform libahci libata scsi_mod ehci_hcd gpio_button_hotplug ext4 mbcache jbd2 exfat(C) crc32c_generic [104369.256372] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G C 5.4.48 #0 [104369.278522] Hardware name: Generic DT based system [104369.286004] [] (unwind_backtrace) from [] (show_stack+0x14/0x20) [104369.290607] [] (show_stack) from [] (dump_stack+0x94/0xa8) [104369.298594] [] (dump_stack) from [] (__warn+0xb4/0xd0) [104369.305702] [] (__warn) from [] (warn_slowpath_fmt+0x80/0x90) [104369.312720] [] (warn_slowpath_fmt) from [] (ieee80211_sta_update_pending_airtime+0x1f8/0x1fc [mac80211]) [104369.320482] [] (ieee80211_sta_update_pending_airtime [mac80211]) from [] (ieee80211_tx_monitor+0xe38/0x10c0 [mac80211]) [104369.331785] [] (ieee80211_tx_monitor [mac80211]) from [] (ieee80211_tx_status+0x5c/0x6c [mac80211]) [104369.344456] [] (ieee80211_tx_status [mac80211]) from [] (ath10k_txrx_tx_unref+0x130/0x318 [ath10k_core]) [104369.355280] [] (ath10k_txrx_tx_unref [ath10k_core]) from [] (ath10k_htt_txrx_compl_task+0x7d0/0x1058 [ath10k_core]) [104369.366428] [] (ath10k_htt_txrx_compl_task [ath10k_core]) from [] (ath10k_pci_napi_poll+0x58/0x11c [ath10k_pci]) [104369.378748] [] (ath10k_pci_napi_poll [ath10k_pci]) from [] (net_rx_action+0x118/0x374) [104369.390603] [] (net_rx_action) from [] (__do_softirq+0x130/0x2d4) [104369.400148] [] (__do_softirq) from [] (irq_exit+0xbc/0xe0) [104369.408132] [] (irq_exit) from [] (__handle_domain_irq+0x6c/0xd0) [104369.415343] [] (__handle_domain_irq) from [] (gic_handle_irq+0x5c/0xb8) [104369.423324] [] (gic_handle_irq) from [] (__irq_svc+0x6c/0x90) [104369.431910] Exception stack(0xc0c01ee0 to 0xc0c01f28) [104369.439303] 1ee0: 00000000 00005eec 1ce52000 dd991a00 dcc2d400 00000000 dd990df0 00005eec [104369.444430] 1f00: 00005eec 00000000 524739a0 5244a280 00000015 c0c01f30 c0716b90 c0716b94 [104369.452661] 1f20: 20000013 ffffffff [104369.460907] [] (__irq_svc) from [] (cpuidle_enter_state+0x94/0x498) [104369.464643] [] (cpuidle_enter_state) from [] (cpuidle_enter+0x30/0x4c) [104369.472716] [] (cpuidle_enter) from [] (do_idle+0x1d8/0x240) [104369.480787] [] (do_idle) from [] (cpu_startup_entry+0x1c/0x20) [104369.488425] [] (cpu_startup_entry) from [] (start_kernel+0x4d8/0x4e8) [104369.495990] ---[ end trace 713bf4bd85eb5631 ]---
@openwrt-bot
Copy link
Author

atiensivu:

[354147.746549] ------------[ cut here ]------------
[354147.746661] WARNING: CPU: 0 PID: 9 at backports-5.7-rc3-1/net/mac80211/sta_info.c:1929 ieee80211_sta_update_pending_airtime+0x1f8/0x1fc [mac80211]
[354147.750291] STA a4:d9:31:00:56:37 AC 2 txq pending airtime underflow: 4294966496, 800
[354147.750293] Modules linked in: xt_connlimit pppoe ppp_async nf_conncount iptable_nat ath10k_pci ath10k_core ath xt_state xt_nat xt_helper xt_conntrack xt_connmark xt_connbytes xt_REDIRECT xt_MASQUERADE xt_FLOWOFFLOAD xt_CT pppox ppp_generic nf_nat nf_flow_table_hw nf_flow_table nf_conntrack_rtcache nf_conntrack_netlink nf_conntrack mac80211 ipt_REJECT ebtable_nat ebtable_filter ebtable_broute cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_recent xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_ecn xt_dscp xt_comment xt_TCPMSS xt_LOG xt_HL xt_DSCP xt_CLASSIFY wireguard slhc sch_cake nlmon nfnetlink_queue nfnetlink_log nf_reject_ipv4 nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables ebtables ebt_vlan ebt_stp ebt_redirect ebt_pkttype ebt_mark_m ebt_mark ebt_limit ebt_among ebt_802_3 crc_ccitt compat sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit
[354147.763399] act_mirred ledtrig_usbport ledtrig_heartbeat xt_set ip_set_list_set ip_set_hash_netportnet ip_set_hash_netport ip_set_hash_netnet ip_set_hash_netiface ip_set_hash_net ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 ifb ip6_udp_tunnel udp_tunnel netlink_diag leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom ohci_platform ohci_hcd phy_qcom_dwc3 ahci fsl_mph_dr_of ehci_platform ehci_fsl sd_mod ahci_platform libahci_platform libahci libata scsi_mod ehci_hcd gpio_button_hotplug
[354147.900989] CPU: 0 PID: 9 Comm: ksoftirqd/0 Not tainted 5.4.46 #0
[354147.923141] Hardware name: Generic DT based system
[354147.929141] [] (unwind_backtrace) from [] (show_stack+0x14/0x20)
[354147.933920] [] (show_stack) from [] (dump_stack+0x94/0xa8)
[354147.941907] [] (dump_stack) from [] (__warn+0xb4/0xd0)
[354147.949017] [] (__warn) from [] (warn_slowpath_fmt+0x80/0x90)
[354147.956008] [] (warn_slowpath_fmt) from [] (ieee80211_sta_update_pending_airtime+0x1f8/0x1fc [mac80211])
[354147.963718] [] (ieee80211_sta_update_pending_airtime [mac80211]) from [] (ieee80211_report_low_ack+0x254/0x50c [mac80211])
[354147.975047] [] (ieee80211_report_low_ack [mac80211]) from [] (ieee80211_free_txskb+0x14/0x2c [mac80211])
[354147.987733] [] (ieee80211_free_txskb [mac80211]) from [] (ath10k_txrx_tx_unref+0x608/0x738 [ath10k_core])
[354147.999168] [] (ath10k_txrx_tx_unref [ath10k_core]) from [] (ath10k_htt_t2h_msg_handler+0xe6c/0x1288 [ath10k_core])
[354148.010421] [] (ath10k_htt_t2h_msg_handler [ath10k_core]) from [] (ath10k_pci_htt_rx_cb+0x178/0x230 [ath10k_pci])
[354148.022845] [] (ath10k_pci_htt_rx_cb [ath10k_pci]) from [] (ath10k_ce_per_engine_service+0x9c/0x10c [ath10k_core])
[354148.034741] [] (ath10k_ce_per_engine_service [ath10k_core]) from [] (ath10k_ce_per_engine_service_any+0x80/0xd8 [ath10k_core])
[354148.046791] [] (ath10k_ce_per_engine_service_any [ath10k_core]) from [] (ath10k_pci_napi_poll+0x54/0x15c [ath10k_pci])
[354148.059972] [] (ath10k_pci_napi_poll [ath10k_pci]) from [] (net_rx_action+0x118/0x374)
[354148.072461] [] (net_rx_action) from [] (__do_softirq+0x130/0x2d4)
[354148.082179] [] (__do_softirq) from [] (run_ksoftirqd+0x38/0x4c)
[354148.090164] [] (run_ksoftirqd) from [] (smpboot_thread_fn+0xfc/0x1c8)
[354148.098067] [] (smpboot_thread_fn) from [] (kthread+0x160/0x164)
[354148.106135] [] (kthread) from [] (ret_from_fork+0x14/0x2c)
[354148.114030] Exception stack(0xdd465fb0 to 0xdd465ff8)
[354148.121152] 5fa0: 00000000 00000000 00000000 00000000
[354148.126369] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[354148.134611] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[354148.142905] ---[ end trace 34d2bd0d6810903a ]---

[ 15.370966] ath10k_pci 0000:01:00.0: assign IRQ: got 35
[ 15.370992] ath10k 5.1 driver, optimized for CT firmware, probing pci device: 0x46.
[ 15.371750] ath10k_pci 0000:01:00.0: enabling device (0140 -> 0142)
[ 15.377527] ath10k_pci 0000:01:00.0: enabling bus mastering
[ 15.378031] ath10k_pci 0000:01:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[ 15.966252] ath10k_pci 0000:01:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe
[ 15.966285] ath10k_pci 0000:01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[ 15.976767] ath10k_pci 0000:01:00.0: firmware ver 10.4b-ct-9984-fH-013-4ab470999 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,htt-mgt-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 34b2045a
[ 18.306064] ath10k_pci 0000:01:00.0: board_file api 2 bmi_id 0:1 crc32 85498734
[ 24.146989] ath10k_pci 0000:01:00.0: unsupported HTC service id: 1536
[ 24.148025] ath10k_pci 0000:01:00.0: 10.4 wmi init: vdevs: 16 peers: 48 tid: 96
[ 24.152495] ath10k_pci 0000:01:00.0: msdu-desc: 2500 skid: 32
[ 24.235422] ath10k_pci 0000:01:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186 msdu-desc: 2500 sw-crypt: 0 ct-sta: 0'
[ 24.236265] ath10k_pci 0000:01:00.0: wmi print 'free: 84872 iram: 13412 sram: 11224'
[ 24.524857] ath10k_pci 0000:01:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1

Build: OpenWrt SNAPSHOT r13600-9a477b833a / LuCI Master git-20.168.54087-84a0b68

Similar crash, but this is using the snapshot from OpenWRT. Pretty much identical to hnyman's build. Unfortunately it looks like it is coming from the closed binaries if I'm reading it right. It basically stalls/locks up.

The curious item - it worked, somewhat, for another 24 hours before the wireless went completely down.

Reboot brought back wireless.

@openwrt-bot
Copy link
Author

Hauke:

The same bug is reported in [[https://bugs.openwrt.org/index.php?do=details&task_id=3215|#3215]] and here: openwrt/mt76#406

@aparcar aparcar added the kernel pull request/issue with Linux kernel related changes label Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray kernel pull request/issue with Linux kernel related changes
Projects
None yet
Development

No branches or pull requests

2 participants