openwrt / openwrt/mt76

mt7921au ap mode random crash on openwrt 23.05

Open
#838 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
888
Forks
436
PR merge metrics
No merged PRs in 30d

Description

Fri Nov 10 04:11:31 2023 daemon.info hostapd: phy1-ap0: STA 72:bd:41:7c:12:7d IEEE 802.11: authenticated
Fri Nov 10 04:11:31 2023 daemon.info hostapd: phy1-ap0: STA 72:bd:41:7c:12:7d IEEE 802.11: associated (aid 2)
Fri Nov 10 04:11:31 2023 daemon.notice hostapd: phy1-ap0: AP-STA-CONNECTED 72:bd:41:7c:12:7d auth_alg=open
Fri Nov 10 04:12:11 2023 kern.err kernel: [ 417.365011] mt7921u 2-1:1.0: Message 00020002 (seq 6) timeout
Fri Nov 10 04:12:12 2023 kern.err kernel: [ 417.594940] mt7921u 2-1:1.0: timed out waiting for pending tx
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618122] ------------[ cut here ]------------
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618124] WARNING: CPU: 0 PID: 10152 at kthread_park+0x87/0xa0
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618161] Modules linked in: xt_FULLCONENAT pppoe ppp_async zstd pppox ppp_mppe ppp_generic mt7921u mt7921_common mt76_usb mt76_connac_lib mt76 mac80211 ipt_REJECT cfg80211 bnx2x amdgpu zstd_decompress zstd_compress xxhash xt_time xt_tcpudp xt_state xt_socket xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_iprange xt_helper xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TPROXY xt_TCPMSS xt_REDIRECT xt_MASQUERADE xt_LOG xt_FLOWOFFLOAD xt_CT ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda tulip tcp_bbr slhc r8168 r8125 pcnet32 nf_tproxy_ipv6 nf_tproxy_ipv4 nf_socket_ipv6 nf_socket_ipv4 nf_reject_ipv4 nf_log_syslog nf_flow_table nf_conntrack_netlink nf_conncount mlx5_core mlx4_en mlx4_core macvlan libcrc32c iptable_raw iptable_nat iptable_mangle iptable_filter ip_tables igc iavf i915 i40e gpu_sched forcedeth e1000e crc_ccitt compat bnx2 alx 8139too 8139cp ntfs3 evdev i2c_dev cryptodev xt_set
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618239] 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_ipmac 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 ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 ixgbe igbvf e1000 amd_xgbe mdio ip6_tunnel tunnel6 raid10 raid1 raid0 md_mod nls_utf8 nls_iso8859_1 nls_cp437 zram zsmalloc ena crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg sha512_ssse3 sha512_generic sha1_ssse3 sha1_generic seqiv jitterentropy_rng drbg hmac cmac authencesn authenc arc4 crypto_acompress uas sdhci_pltfm xhci_plat_hcd fsl_mph_dr_of ehci_platform ehci_fsl igb vfat fat exfat button_hotplug tg3 realtek broadcom bcm_phy_lib mii
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618409] CPU: 0 PID: 10152 Comm: kworker/u2:0 Not tainted 5.15.127 #0
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618414] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 11/12/2020
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618417] Workqueue: mt76 mt7921_mac_reset_work [mt7921_common]
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618445] RIP: 0010:kthread_park+0x87/0xa0
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618449] Code: 74 31 31 c0 5b 41 5c 5d c3 cc cc cc cc 0f 0b 4c 8b a3 90 05 00 00 a8 04 74 a8 0f 0b b8 da ff ff ff 5b 41 5c 5d c3 cc cc cc cc <0f> 0b b8 f0 ff ff ff eb d1 0f 0b eb cb 66 66 2e 0f 1f 84 00 00 00
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618451] RSP: 0018:ffffc90000fcfd78 EFLAGS: 00010202
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618454] RAX: 0000000000000004 RBX: ffff888004ea1d00 RCX: ffff888009807ba8
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618455] RDX: 0000000000000001 RSI: 0000000000000202 RDI: ffff888004ea1d00
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618457] RBP: ffffc90000fcfd88 R08: 0000000000003c00 R09: ffff888003f7a268
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618458] R10: 0000000000000000 R11: ffffffff822ae508 R12: ffff888009403000
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618460] R13: 0000000000000000 R14: 0000000000000020 R15: 0000000000000100
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618463] FS: 0000000000000000(0000) GS:ffff88803ec00000(0000) knlGS:0000000000000000
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618465] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618468] CR2: 00007f13341f3b7c CR3: 00000000035e2006 CR4: 00000000003706f0
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618503] Call Trace:
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618510]
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618518] ? show_regs.part.0+0x1e/0x24
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618549] ? show_regs.cold+0x8/0xd
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618551] ? __warn+0x74/0xf0
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618569] ? kthread_park+0x87/0xa0
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618572] ? report_bug+0x86/0xa0
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618593] ? handle_bug+0x38/0x90
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618606] ? exc_invalid_op+0x18/0x70
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618608] ? asm_exc_invalid_op+0x1b/0x20
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618615] ? kthread_park+0x87/0xa0
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618618] mt76u_resume_rx+0x301/0xd60 [mt76_usb]
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618626] ? wait_woken+0x60/0x60
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618633] mt7921u_mac_reset+0x69/0x1c0 [mt7921u]
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618639] mt7921_mac_reset_work+0x85/0x140 [mt7921_common]
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618644] process_one_work+0x1f8/0x360
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618654] worker_thread+0x4e/0x410
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618657] ? process_one_work+0x360/0x360
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618660] kthread+0x128/0x150
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618662] ? set_kthread_struct+0x50/0x50
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618665] ret_from_fork+0x1f/0x30
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618676]
Fri Nov 10 04:12:12 2023 kern.warn kernel: [ 417.618678] ---[ end trace 56a2ce3888ddc6b9 ]---
Fri Nov 10 04:12:12 2023 kern.info kernel: [ 417.759857] mt7921u 2-1:1.0: HW/SW Version: 0x8a108a10, Build Time: 20230526130917a
Fri Nov 10 04:12:12 2023 kern.info kernel: [ 417.759857]
Fri Nov 10 04:12:12 2023 kern.info kernel: [ 417.770990] mt7921u 2-1:1.0: WM Firmware Version: ____010000, Build Time: 20230526130958

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the mt7921_mac_reset_work call trace and the mt7921u_mac_reset and mt76u_resume_rx entry points shown in the report. Reproduce the mt7921u AP-mode failure on OpenWrt 23.05, then verify that the timeout and kernel warning no longer lead to a crash.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.