kaloz / mwlwifi

mac80211 driver for the Marvell 88W8864 802.11ac chip
397 stars 119 forks source link

kernel panics with OpenWRT 21.x snapshots #400

Open ByteEnable opened 3 years ago

ByteEnable commented 3 years ago

I can at will kernel panic 21.x snapshots I am running. I have been trying to debug my 5G wifi issues and ran into this issue only on the wireless side.

Wireless config:

`config wifi-device 'radio0' option type 'mac80211' option path 'soc/soc:pcie/pci0000:00/0000:00:01.0/0000:01:00.0' option channel '36' option band '5g' option htmode 'VHT80' option country 'US' option cell_density '0' option log_level '0'

config wifi-iface 'default_radio0' option device 'radio0' option network 'lan' option mode 'ap' option ssid 'OpenWrt' option macaddr '30:23:xx:xx:xx:xx' option disassoc_low_ack '0' option encryption 'psk2+ccmp' option key 'toomuchFUN'

config wifi-device 'radio1' option type 'mac80211' option path 'soc/soc:pcie/pci0000:00/0000:00:02.0/0000:02:00.0' option channel '1' option band '2g' option htmode 'HT20' option disabled '1' option country 'US'

config wifi-iface 'default_radio1' option device 'radio1' option network 'lan' option mode 'ap' option ssid 'OpenWrt' option encryption 'none' option macaddr '30:23:03:df:49:29'

config wifi-device 'radio2' option type 'mac80211' option path 'platform/soc/soc:internal-regs/f10d8000.sdhci/mmc_host/mmc0/mmc0:0001/mmc0:0001:1' option channel '34' option band '5g' option htmode 'VHT80' option disabled '1'

config wifi-iface 'default_radio2' option device 'radio2' option network 'lan' option mode 'ap' option ssid 'OpenWrt' option encryption 'none'

`

Steps to reproduce via ssh to the router:

iw wlan0 interface add mon0 type monitor
ifconfig mon0 up
tcpdump -vvvi mon0 ether host xx:xx:xx:xx:xx:xx

Open another ssh session to the router : iperf3 -s

From another wireless device launch iperf3 as a client. I am using magic perf from the google playstore on my android phone. Will kernel panic usually in about 20 seconds.

Linux OpenWrt 5.4.143 #0 SMP Sun Aug 29 22:37:47 2021 armv7l GNU/Linux Firmware Version:OpenWrt SNAPSHOT r17454-f08b76b32f


Aug 30 12:13:46 OpenWrt kernel: [  940.520782] ieee80211 phy0: change: 0x8
Aug 30 12:15:07 OpenWrt kernel: [ 1021.141294] device mon0 entered promiscuous mode
Aug 30 12:15:43 OpenWrt odhcpd[2049]: A default route is present but there is no public prefix on lan thus we don't announce a default route!
Aug 30 12:16:47 OpenWrt kernel: [ 1120.991023] 8<--- cut here ---
Aug 30 12:16:47 OpenWrt kernel: [ 1120.994098] Unable to handle kernel NULL pointer dereference at virtual address 000000f0
Aug 30 12:16:47 OpenWrt kernel: [ 1121.002248] pgd = 21c09184
Aug 30 12:16:47 OpenWrt kernel: [ 1121.004974] [000000f0] *pgd=00000000
Aug 30 12:16:47 OpenWrt kernel: [ 1121.008567] Internal error: Oops: 5 [#1] SMP ARM
Aug 30 12:16:47 OpenWrt kernel: [ 1121.013202] Modules linked in: pppoe ppp_async iptable_nat xt_state xt_nat xt_conntrack xt_REDIRECT xt_MASQUERADE xt_FLOWOFFLOAD xt_CT pppox ppp_generic nf_nat nf_flow_table_hw nf_flow_table nf_conntrack ipt_REJECT xt_time xt_tcpudp xt_multiport xt_mark xt_mac xt_limit xt_comment xt_TCPMSS xt_LOG slhc rfcomm nf_reject_ipv4 nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 mwifiex_sdio mwifiex iptable_mangle iptable_filter ip_tables hidp hci_uart crc_ccitt btusb btmrvl_sdio btmrvl btintel bnep bluetooth hid evdev input_core mwlwifi mac80211 cfg80211 compat nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 vfat fat autofs4 nls_utf8 nls_iso8859_1 nls_cp437 ecdh_generic ecc sha256_generic libsha256 seqiv jitterentropy_rng drbg kpp hmac ghash_generic ghash_arm_ce gf128mul gcm ecb ctr cmac ccm uas uhci_hcd ohci_platform ohci_hcd ahci fsl_mph_dr_of ehci_fsl gpio_button_hotplug exfat(C)
Aug 30 12:16:47 OpenWrt kernel: [ 1121.095535] CPU: 1 PID: 15 Comm: ksoftirqd/1 Tainted: G         C        5.4.143 #0
Aug 30 12:16:47 OpenWrt kernel: [ 1121.103224] Hardware name: Marvell Armada 380/385 (Device Tree)
Aug 30 12:16:47 OpenWrt kernel: [ 1121.109176] PC is at __netif_receive_skb_core.constprop.0+0x70/0xb68
Aug 30 12:16:47 OpenWrt kernel: [ 1121.115558] LR is at __netif_receive_skb_one_core+0x28/0x50
Aug 30 12:16:47 OpenWrt kernel: [ 1121.121152] pc : [<c0646f78>]    lr : [<c0649340>]    psr: 80000113
Aug 30 12:16:47 OpenWrt kernel: [ 1121.127444] sp : df47dd10  ip : dfb62ba0  fp : 00000000
Aug 30 12:16:47 OpenWrt kernel: [ 1121.132689] r10: 00000001  r9 : c0b05e84  r8 : dfb62ba0
Aug 30 12:16:47 OpenWrt kernel: [ 1121.137935] r7 : 00000048  r6 : c0a49b18  r5 : 00000000  r4 : dfb62ba0
Aug 30 12:16:47 OpenWrt kernel: [ 1121.144489] r3 : 00000048  r2 : 00000000  r1 : 00000000  r0 : 00000001
Aug 30 12:16:47 OpenWrt kernel: [ 1121.151045] Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
Aug 30 12:16:47 OpenWrt kernel: [ 1121.158210] Control: 10c5387d  Table: 1e1f804a  DAC: 00000051
Aug 30 12:16:47 OpenWrt kernel: [ 1121.163980] Process ksoftirqd/1 (pid: 15, stack limit = 0x7e896e70)
Aug 30 12:16:47 OpenWrt kernel: [ 1121.170273] Stack: (0xdf47dd10 to 0xdf47e000)
Aug 30 12:16:47 OpenWrt kernel: [ 1121.174647] dd00:                                     df47dd10 00000000 df47dd6c df47dd74
Aug 30 12:16:47 OpenWrt kernel: [ 1121.182860] dd20: dfb62ba0 00060003 d4ea4a80 de22a000 d4ea4a80 de22a000 c144dcc0 c062fbb8
Aug 30 12:16:47 OpenWrt kernel: [ 1121.191073] dd40: c144dcc0 00000048 00000036 dfb62b08 00000040 dfb62ba0 dfb62bac 00000001
Aug 30 12:16:47 OpenWrt kernel: [ 1121.199287] dd60: 1f119000 c0649340 ddee6ba0 dfb62ba0 ddefe9a0 00000000 c144dcd8 dfb62bb0
Aug 30 12:16:47 OpenWrt kernel: [ 1121.207499] dd80: 00000036 c0649534 00000001 dfb62bb0 00000040 df47ddd7 c0a49b00 df47ddd8
Aug 30 12:16:47 OpenWrt kernel: [ 1121.215712] dda0: c0b03d00 c0648d94 dfb62bb0 00000003 00014091 0000012c c0a49b00 c0648fd8
Aug 30 12:16:47 OpenWrt kernel: [ 1121.223925] ddc0: dfb62b00 c0b34fbc c095bbd8 c0951538 00000000 00ee6b28 df47ddd8 df47ddd8
Aug 30 12:16:47 OpenWrt kernel: [ 1121.232139] dde0: df47dde0 df47dde0 df47de10 00000000 00000003 c0b0308c c0b03080 40000003
Aug 30 12:16:47 OpenWrt kernel: [ 1121.240352] de00: df47c000 00000100 df47de10 c010226c 00463000 0000b68f de03e200 c0b03080
Aug 30 12:16:47 OpenWrt kernel: [ 1121.248566] de20: c0a46210 00000008 c0a4619c c0a48d40 c0a48d40 00014090 c0b03d00 04208040
Aug 30 12:16:47 OpenWrt kernel: [ 1121.256780] de40: df44d5f0 c0a48cf8 00000000 00000000 00000001 df40c000 df47c000 df44d5f0
Aug 30 12:16:47 OpenWrt kernel: [ 1121.264993] de60: df47df1c c012c850 c0a48cf8 c0170668 c0b05248 df47dea0 e080210c e0802100
Aug 30 12:16:47 OpenWrt kernel: [ 1121.273207] de80: e0803100 c0460e24 c014c244 60000013 ffffffff df47ded4 00000000 c0101a8c
Aug 30 12:16:47 OpenWrt kernel: [ 1121.281421] dea0: df44bc80 00000002 00000000 0000fd78 c0a49180 df44bc80 dfb62180 00000000
Aug 30 12:16:47 OpenWrt kernel: [ 1121.289635] dec0: 00000000 1f119000 df44d5f0 df47df1c 00000000 df47def0 c07be2fc c014c244
Aug 30 12:16:47 OpenWrt kernel: [ 1121.297848] dee0: 60000013 ffffffff 00000051 00000000 ded44d00 c015ada0 00000000 ffffffff
Aug 30 12:16:47 OpenWrt kernel: [ 1121.306061] df00: dfb62180 ded44d00 df44d280 d4dbca00 d4dbca00 df47df2c df47df54 c07be2fc
Aug 30 12:16:47 OpenWrt kernel: [ 1121.314274] df20: c0a4619c 1f119000 c0a48d40 00014090 c0b03d00 df44d280 df47c000 df41cb40
Aug 30 12:16:47 OpenWrt kernel: [ 1121.322488] df40: df47c000 c0b0cd68 ffffe000 df437e6c df47df64 c07be5c4 00000000 00000000
Aug 30 12:16:47 OpenWrt kernel: [ 1121.330701] df60: df41cc1c c014a1d4 df41cc00 df41cbc0 00000000 df47c000 df41cb40 c014a0b8
Aug 30 12:16:47 OpenWrt kernel: [ 1121.338915] df80: df437e6c c0145d38 00000001 df41cbc0 c0145bec 00000000 00000000 00000000
Aug 30 12:16:47 OpenWrt kernel: [ 1121.347128] dfa0: 00000000 00000000 00000000 c01010e8 00000000 00000000 00000000 00000000
Aug 30 12:16:47 OpenWrt kernel: [ 1121.355342] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Aug 30 12:16:47 OpenWrt kernel: [ 1121.363555] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
Aug 30 12:16:47 OpenWrt kernel: [ 1121.371771] [<c0646f78>] (__netif_receive_skb_core.constprop.0) from [<c0649340>] (__netif_receive_skb_one_core+0x28/0x50)
Aug 30 12:16:47 OpenWrt kernel: [ 1121.382865] [<c0649340>] (__netif_receive_skb_one_core) from [<c0649534>] (process_backlog+0xd0/0x18c)
Aug 30 12:16:47 OpenWrt kernel: [ 1121.392213] [<c0649534>] (process_backlog) from [<c0648d94>] (__napi_poll+0x28/0xe8)
Aug 30 12:16:47 OpenWrt kernel: [ 1121.399990] [<c0648d94>] (__napi_poll) from [<c0648fd8>] (net_rx_action+0xf4/0x2d0)
Aug 30 12:16:47 OpenWrt kernel: [ 1121.407683] [<c0648fd8>] (net_rx_action) from [<c010226c>] (__do_softirq+0x104/0x2a0)
Aug 30 12:16:47 OpenWrt kernel: [ 1121.415552] [<c010226c>] (__do_softirq) from [<c012c850>] (irq_exit+0x78/0xa8)
Aug 30 12:16:47 OpenWrt kernel: [ 1121.422810] [<c012c850>] (irq_exit) from [<c0170668>] (__handle_domain_irq+0x78/0xc8)
Aug 30 12:16:47 OpenWrt kernel: [ 1121.430678] [<c0170668>] (__handle_domain_irq) from [<c0460e24>] (gic_handle_irq+0x40/0x7c)
Aug 30 12:16:47 OpenWrt kernel: [ 1121.439067] [<c0460e24>] (gic_handle_irq) from [<c0101a8c>] (__irq_svc+0x6c/0x90)
Aug 30 12:16:47 OpenWrt kernel: [ 1121.446580] Exception stack(0xdf47dea0 to 0xdf47dee8)
Aug 30 12:16:47 OpenWrt kernel: [ 1121.451654] dea0: df44bc80 00000002 00000000 0000fd78 c0a49180 df44bc80 dfb62180 00000000
Aug 30 12:16:47 OpenWrt kernel: [ 1121.459867] dec0: 00000000 1f119000 df44d5f0 df47df1c 00000000 df47def0 c07be2fc c014c244
Aug 30 12:16:47 OpenWrt kernel: [ 1121.468079] dee0: 60000013 ffffffff
Aug 30 12:16:47 OpenWrt kernel: [ 1121.471583] [<c0101a8c>] (__irq_svc) from [<c014c244>] (finish_task_switch+0x70/0x17c)
Aug 30 12:16:47 OpenWrt kernel: [ 1121.479537] [<c014c244>] (finish_task_switch) from [<c07be2fc>] (__schedule+0x1e0/0x458)
Aug 30 12:16:47 OpenWrt kernel: [ 1121.487663] [<c07be2fc>] (__schedule) from [<c07be5c4>] (schedule+0x50/0xc8)
Aug 30 12:16:47 OpenWrt kernel: [ 1121.494747] [<c07be5c4>] (schedule) from [<c014a1d4>] (smpboot_thread_fn+0x11c/0x18c)
Aug 30 12:16:47 OpenWrt kernel: [ 1121.502613] [<c014a1d4>] (smpboot_thread_fn) from [<c0145d38>] (kthread+0x14c/0x150)
Aug 30 12:16:47 OpenWrt kernel: [ 1121.510390] [<c0145d38>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
Aug 30 12:16:47 OpenWrt kernel: [ 1121.517642] Exception stack(0xdf47dfb0 to 0xdf47dff8)
Aug 30 12:16:47 OpenWrt kernel: [ 1121.522713] dfa0:                                     00000000 00000000 00000000 00000000
Aug 30 12:16:47 OpenWrt kernel: [ 1121.530926] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Aug 30 12:16:47 OpenWrt kernel: [ 1121.539139] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
Aug 30 12:16:47 OpenWrt kernel: [ 1121.545783] Code: e1c435bc e1a03007 e58d5004 e58dd000 (e59330a8)
Aug 30 12:16:47 OpenWrt kernel: [ 1121.551920] ---[ end trace 36480c74b3982025 ]---

With Kernel 5.10.61:

Aug 28 20:10:58 OpenWrt kernel: [ 3542.045636] ieee80211 phy0: change: 0x8
Aug 28 20:11:05 OpenWrt kernel: [ 3549.337341] device mon0 entered promiscuous mode
Aug 28 20:11:27 OpenWrt kernel: [ 3570.809608] 8<--- cut here ---
Aug 28 20:11:27 OpenWrt kernel: [ 3570.812683] Unable to handle kernel NULL pointer dereference at virtual address 00000126
Aug 28 20:11:27 OpenWrt kernel: [ 3570.820895] pgd = 508ea552
Aug 28 20:11:27 OpenWrt kernel: [ 3570.823645] [00000126] *pgd=00000000
Aug 28 20:11:27 OpenWrt kernel: [ 3570.827297] Internal error: Oops: 5 [#1] SMP ARM
Aug 28 20:11:27 OpenWrt kernel: [ 3570.831934] Modules linked in: pppoe ppp_async iptable_nat xt_state xt_nat xt_conntrack xt_REDIRECT xt_MASQUERADE xt_FLOWOFFLOAD xt_CT pppox ppp_generic nf_nat nf_flow_table nf_conntrack ipt_REJECT xt_time xt_tcpudp xt_multiport xt_mark xt_mac xt_limit xt_comment xt_TCPMSS xt_LOG slhc rfcomm nf_reject_ipv4 nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 mwifiex_sdio mwifiex iptable_mangle iptable_filter ip_tables hidp hci_uart crc_ccitt btusb btmrvl_sdio btmrvl btintel bnep bluetooth hid evdev input_core mwlwifi mac80211 cfg80211 compat nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 vfat fat autofs4 nls_utf8 nls_iso8859_1 nls_cp437 ecdh_generic ecc sha256_generic libsha256 seqiv jitterentropy_rng drbg kpp hmac ghash_arm_ce ecb cmac uas uhci_hcd ohci_platform ohci_hcd ahci fsl_mph_dr_of ehci_fsl gpio_button_hotplug exfat
Aug 28 20:11:27 OpenWrt kernel: [ 3570.909533] CPU: 1 PID: 16 Comm: ksoftirqd/1 Not tainted 5.10.61 #0
Aug 28 20:11:27 OpenWrt kernel: [ 3570.915826] Hardware name: Marvell Armada 380/385 (Device Tree)
Aug 28 20:11:27 OpenWrt kernel: [ 3570.921774] PC is at __netif_receive_skb_core.constprop.0+0x84/0xe80
Aug 28 20:11:27 OpenWrt kernel: [ 3570.928156] LR is at __netif_receive_skb_one_core+0x28/0x50
Aug 28 20:11:27 OpenWrt kernel: [ 3570.933752] pc : [<c06bce34>]    lr : [<c06bf5b8>]    psr: 80000013
Aug 28 20:11:27 OpenWrt kernel: [ 3570.940044] sp : c107fdf8  ip : dfb62d60  fp : 0000a888
Aug 28 20:11:27 OpenWrt kernel: [ 3570.945290] r10: c0cd83dc  r9 : 0000007e  r8 : c0cd82b0
Aug 28 20:11:27 OpenWrt kernel: [ 3570.950537] r7 : c0b4fcd8  r6 : dfb62cc8  r5 : 00000000  r4 : dfb62d60
Aug 28 20:11:27 OpenWrt kernel: [ 3570.957092] r3 : 0000007e  r2 : 00000001  r1 : 00000000  r0 : 00000001
Aug 28 20:11:27 OpenWrt kernel: [ 3570.963647] Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
Aug 28 20:11:27 OpenWrt kernel: [ 3570.970813] Control: 10c5387d  Table: 0c22004a  DAC: 00000051
Aug 28 20:11:27 OpenWrt kernel: [ 3570.976584] Process ksoftirqd/1 (pid: 16, stack limit = 0x61bd2372)
Aug 28 20:11:27 OpenWrt kernel: [ 3570.982878] Stack: (0xc107fdf8 to 0xc1080000)
Aug 28 20:11:27 OpenWrt kernel: [ 3570.987252] fde0:                                                       c0c0532c c107fe30
Aug 28 20:11:27 OpenWrt kernel: [ 3570.995466] fe00: c0c816f8 00000001 00000000 00000000 c107fe64 c107fe6c dfb62d60 c107fe64
Aug 28 20:11:27 OpenWrt kernel: [ 3571.003681] fe20: c0cd82b0 c107e000 dfb62d60 c0100b0c dfb62d70 00000040 c5fa7780 0000007e
Aug 28 20:11:27 OpenWrt kernel: [ 3571.011895] fe40: 0000000c dfb62cc8 00000001 c0cd82b0 00000040 dfb62d60 dfb62d6c c06bf5b8
Aug 28 20:11:27 OpenWrt kernel: [ 3571.020108] fe60: 00000000 dfb62d60 c06befc4 00000000 60000013 dfb62d70 0000000c c06bf824
Aug 28 20:11:27 OpenWrt kernel: [ 3571.028322] fe80: c06bf738 00000001 dfb62d70 00000040 c107fecf c107fed0 c0c03d00 1f013000
Aug 28 20:11:27 OpenWrt kernel: [ 3571.036537] fea0: c107fed8 c06befc4 dfb62d70 dfb62cc0 0000012c c0b4fcc0 c107fed0 c06bf2a0
Aug 28 20:11:27 OpenWrt kernel: [ 3571.044751] fec0: 00000002 0004fd33 00000000 00206b78 c107fed0 c107fed0 c107fed8 c107fed8
Aug 28 20:11:27 OpenWrt kernel: [ 3571.052965] fee0: c107ff08 00000004 00000003 c0c0308c c0c03080 40000003 c107e000 00000100
Aug 28 20:11:27 OpenWrt kernel: [ 3571.061179] ff00: c107ff08 c01012ec c1134e00 c104d800 c1134e00 c0c03080 c0b4c220 00000008
Aug 28 20:11:27 OpenWrt kernel: [ 3571.069392] ff20: c0b4c1ac c0b4ef00 c0b4ef00 0004fd32 c0c03d00 04208040 c107e000 00000000
Aug 28 20:11:27 OpenWrt kernel: [ 3571.077606] ff40: 00000000 c101ccc0 c107e000 c0c0cf24 ffffe000 c1037e64 c101cda4 c012c018
Aug 28 20:11:27 OpenWrt kernel: [ 3571.085820] ff60: 00000000 c014ad74 c101cd80 c101cd40 00000000 c107e000 c014aca4 c101ccc0
Aug 28 20:11:27 OpenWrt kernel: [ 3571.094033] ff80: c1037e64 c0145b34 00000001 c101cd40 c01459ec 00000000 00000000 00000000
Aug 28 20:11:27 OpenWrt kernel: [ 3571.102247] ffa0: 00000000 00000000 00000000 c0100148 00000000 00000000 00000000 00000000
Aug 28 20:11:27 OpenWrt kernel: [ 3571.110461] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Aug 28 20:11:27 OpenWrt kernel: [ 3571.118674] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
Aug 28 20:11:27 OpenWrt kernel: [ 3571.126890] [<c06bce34>] (__netif_receive_skb_core.constprop.0) from [<c06bf5b8>] (__netif_receive_skb_one_core+0x28/0x50)
Aug 28 20:11:27 OpenWrt kernel: [ 3571.137984] [<c06bf5b8>] (__netif_receive_skb_one_core) from [<c06bf824>] (process_backlog+0xec/0x1bc)
Aug 28 20:11:27 OpenWrt kernel: [ 3571.147332] [<c06bf824>] (process_backlog) from [<c06befc4>] (__napi_poll+0x28/0x134)
Aug 28 20:11:27 OpenWrt kernel: [ 3571.155198] [<c06befc4>] (__napi_poll) from [<c06bf2a0>] (net_rx_action+0xc8/0x24c)
Aug 28 20:11:27 OpenWrt kernel: [ 3571.162890] [<c06bf2a0>] (net_rx_action) from [<c01012ec>] (__do_softirq+0x104/0x29c)
Aug 28 20:11:27 OpenWrt kernel: [ 3571.170760] [<c01012ec>] (__do_softirq) from [<c012c018>] (run_ksoftirqd+0x2c/0x38)
Aug 28 20:11:27 OpenWrt kernel: [ 3571.178456] [<c012c018>] (run_ksoftirqd) from [<c014ad74>] (smpboot_thread_fn+0xd0/0x18c)
Aug 28 20:11:27 OpenWrt kernel: [ 3571.186671] [<c014ad74>] (smpboot_thread_fn) from [<c0145b34>] (kthread+0x148/0x14c)
Aug 28 20:11:27 OpenWrt kernel: [ 3571.194449] [<c0145b34>] (kthread) from [<c0100148>] (ret_from_fork+0x14/0x2c)
Aug 28 20:11:27 OpenWrt kernel: [ 3571.201702] Exception stack(0xc107ffb0 to 0xc107fff8)
Aug 28 20:11:27 OpenWrt kernel: [ 3571.206774] ffa0:                                     00000000 00000000 00000000 00000000
Aug 28 20:11:27 OpenWrt kernel: [ 3571.214988] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Aug 28 20:11:27 OpenWrt kernel: [ 3571.223201] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
Aug 28 20:11:27 OpenWrt kernel: [ 3571.229845] Code: e1a03009 e3a02001 e58d5014 e58d200c (e59330a8)
Aug 28 20:11:27 OpenWrt kernel: [ 3571.236032] ---[ end trace ccd73c8feb3f2975 ]---
Aug 28 20:22:08 OpenWrt kernel: [  627.179245] ieee80211 phy0: change: 0x8
Aug 28 20:22:15 OpenWrt kernel: [  634.355654] device mon0 entered promiscuous mode
Aug 28 20:22:52 OpenWrt kernel: [  671.557340] 8<--- cut here ---
Aug 28 20:22:52 OpenWrt kernel: [  671.560417] Unable to handle kernel NULL pointer dereference at virtual address 00000004
Aug 28 20:22:52 OpenWrt kernel: [  671.568626] pgd = c226388b
Aug 28 20:22:52 OpenWrt kernel: [  671.571346] [00000004] *pgd=00000000
Aug 28 20:22:52 OpenWrt kernel: [  671.574998] Internal error: Oops: 817 [#1] SMP ARM
Aug 28 20:22:53 OpenWrt kernel: [  671.579810] Modules linked in: pppoe ppp_async iptable_nat xt_state xt_nat xt_conntrack xt_REDIRECT xt_MASQUERADE xt_FLOWOFFLOAD xt_CT pppox ppp_generic nf_nat nf_flow_table nf_conntrack ipt_REJECT xt_time xt_tcpudp xt_multiport xt_mark xt_mac xt_limit xt_comment xt_TCPMSS xt_LOG slhc rfcomm nf_reject_ipv4 nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 mwifiex_sdio mwifiex iptable_mangle iptable_filter ip_tables hidp hci_uart crc_ccitt btusb btmrvl_sdio btmrvl btintel bnep bluetooth hid evdev input_core mwlwifi mac80211 cfg80211 compat nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 vfat fat autofs4 nls_utf8 nls_iso8859_1 nls_cp437 ecdh_generic ecc sha256_generic libsha256 seqiv jitterentropy_rng drbg kpp hmac ghash_arm_ce ecb cmac uas uhci_hcd ohci_platform ohci_hcd ahci fsl_mph_dr_of ehci_fsl gpio_button_hotplug exfat
Aug 28 20:22:53 OpenWrt kernel: [  671.657409] CPU: 1 PID: 16 Comm: ksoftirqd/1 Not tainted 5.10.61 #0
Aug 28 20:22:53 OpenWrt kernel: [  671.663702] Hardware name: Marvell Armada 380/385 (Device Tree)
Aug 28 20:22:53 OpenWrt kernel: [  671.669650] PC is at process_backlog+0xd0/0x1bc
Aug 28 20:22:53 OpenWrt kernel: [  671.674198] LR is at process_backlog+0xf0/0x1bc
Aug 28 20:22:53 OpenWrt kernel: [  671.678746] pc : [<c06bf808>]    lr : [<c06bf828>]    psr: a0000013
Aug 28 20:22:53 OpenWrt kernel: [  671.685039] sp : c107fe80  ip : c0c97d80  fp : dfb62d6c
Aug 28 20:22:53 OpenWrt kernel: [  671.690286] r10: dfb62d60  r9 : 00000040  r8 : c0cd82b0
Aug 28 20:22:53 OpenWrt kernel: [  671.695532] r7 : 00000001  r6 : dfb62cc8  r5 : 00000001  r4 : dfb62d70
Aug 28 20:22:53 OpenWrt kernel: [  671.702087] r3 : 00000000  r2 : 00000000  r1 : 00000000  r0 : c3ff7d80
Aug 28 20:22:53 OpenWrt kernel: [  671.708643] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
Aug 28 20:22:53 OpenWrt kernel: [  671.715809] Control: 10c5387d  Table: 0c5ac04a  DAC: 00000051
Aug 28 20:22:53 OpenWrt kernel: [  671.721580] Process ksoftirqd/1 (pid: 16, stack limit = 0x91b353e0)
Aug 28 20:22:53 OpenWrt kernel: [  671.727874] Stack: (0xc107fe80 to 0xc1080000)
Aug 28 20:22:53 OpenWrt kernel: [  671.732250] fe80: c06bf738 00000001 dfb62d70 00000040 c107fecf c107fed0 c0c03d00 1f013000
Aug 28 20:22:53 OpenWrt kernel: [  671.740464] fea0: c107fed8 c06befc4 dfb62d70 dfb62cc0 0000012c c0b4fcc0 c107fed0 c06bf2a0
Aug 28 20:22:53 OpenWrt kernel: [  671.748678] fec0: c0c04f58 00009111 00000000 000e6b78 c107fed0 c107fed0 c107fed8 c107fed8
Aug 28 20:22:53 OpenWrt kernel: [  671.756892] fee0: c107ff08 00000004 00000003 c0c0308c c0c03080 40000003 c107e000 00000100
Aug 28 20:22:53 OpenWrt kernel: [  671.765105] ff00: c107ff08 c01012ec cb92d600 c104d800 cb92d600 c0c03080 c0b4c220 00000008
Aug 28 20:22:53 OpenWrt kernel: [  671.773319] ff20: c0b4c1ac c0b4ef00 c0b4ef00 00009110 c0c03d00 04208040 c107e000 00000000
Aug 28 20:22:53 OpenWrt kernel: [  671.781534] ff40: 00000000 c101ccc0 c107e000 c0c0cf24 ffffe000 c1037e64 c101cda4 c012c018
Aug 28 20:22:53 OpenWrt kernel: [  671.789748] ff60: 00000000 c014ad74 c101cd80 c101cd40 00000000 c107e000 c014aca4 c101ccc0
Aug 28 20:22:53 OpenWrt kernel: [  671.797962] ff80: c1037e64 c0145b34 00000001 c101cd40 c01459ec 00000000 00000000 00000000
Aug 28 20:22:53 OpenWrt kernel: [  671.806176] ffa0: 00000000 00000000 00000000 c0100148 00000000 00000000 00000000 00000000
Aug 28 20:22:53 OpenWrt kernel: [  671.814390] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Aug 28 20:22:53 OpenWrt kernel: [  671.822603] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
Aug 28 20:22:53 OpenWrt kernel: [  671.830820] [<c06bf808>] (process_backlog) from [<c06befc4>] (__napi_poll+0x28/0x134)
Aug 28 20:22:53 OpenWrt kernel: [  671.838685] [<c06befc4>] (__napi_poll) from [<c06bf2a0>] (net_rx_action+0xc8/0x24c)
Aug 28 20:22:53 OpenWrt kernel: [  671.846376] [<c06bf2a0>] (net_rx_action) from [<c01012ec>] (__do_softirq+0x104/0x29c)
Aug 28 20:22:53 OpenWrt kernel: [  671.854247] [<c01012ec>] (__do_softirq) from [<c012c018>] (run_ksoftirqd+0x2c/0x38)
Aug 28 20:22:53 OpenWrt kernel: [  671.861944] [<c012c018>] (run_ksoftirqd) from [<c014ad74>] (smpboot_thread_fn+0xd0/0x18c)
Aug 28 20:22:53 OpenWrt kernel: [  671.870158] [<c014ad74>] (smpboot_thread_fn) from [<c0145b34>] (kthread+0x148/0x14c)
Aug 28 20:22:53 OpenWrt kernel: [  671.877936] [<c0145b34>] (kthread) from [<c0100148>] (ret_from_fork+0x14/0x2c)
Aug 28 20:22:53 OpenWrt kernel: [  671.885189] Exception stack(0xc107ffb0 to 0xc107fff8)
Aug 28 20:22:53 OpenWrt kernel: [  671.890261] ffa0:                                     00000000 00000000 00000000 00000000
Aug 28 20:22:53 OpenWrt kernel: [  671.898474] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Aug 28 20:22:53 OpenWrt kernel: [  671.906687] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
Aug 28 20:22:53 OpenWrt kernel: [  671.913331] Code: e50430a0 e1c020d0 e5801000 e5801004 (e5823004)
Aug 28 20:22:53 OpenWrt kernel: [  671.919509] ---[ end trace 819e11397d0d8fc2 ]---
BrainSlayer commented 3 years ago

maybe you should just avoid to use the monitor mode, since this mode isnt supported by the driver. i just wonder why you are able to use monitor mode since the driver does not offer the required support flags

ByteEnable commented 3 years ago

Literally states in the driver readme how to debug:

Monitor interface for debug

Create moinitor interface mon0:

iw wlan0/wlan1 interface add mon0 type monitor
ifconfig mon0 up

Use tcpdump to dump dhcp packets:

tcpdump -vvvi mon0 -n port 67 and port 68

Use tcpdump to dump icmp packets:

tcpdump -vvvi mon0 icmp 
ByteEnable commented 3 years ago

Able to induce kernel panic on 19.07.8 as well.

Sep  3 22:25:27 OpenWrt logread[1634]: Logread connected to 192.168.50.83:5555
Sep  3 22:26:31 OpenWrt dropbear[4527]: Child connection from 192.168.50.83:46458
Sep  3 22:26:35 OpenWrt dropbear[4527]: Password auth succeeded for 'root' from 192.168.50.83:46458
Sep  3 22:26:35 OpenWrt dropbear[4527]: Exit (root): Disconnect received
Sep  3 22:27:45 OpenWrt mac80211: Failed command: iw phy phy0 set antenna 0xffffffff 0xffffffff
Sep  3 22:27:45 OpenWrt netifd: radio0 (4765): command failed: Not supported (-95)
Sep  3 22:27:45 OpenWrt mac80211: Failed command: iw phy phy0 set distance 0
Sep  3 22:27:45 OpenWrt hostapd: Configuration file: /var/run/hostapd-phy0.conf
Sep  3 22:27:45 OpenWrt kernel: [  635.257672] ieee80211 phy0: change: 0xffffffff
Sep  3 22:27:45 OpenWrt kernel: [  635.362941] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Sep  3 22:27:45 OpenWrt kernel: [  635.370374] br-lan: port 2(wlan0) entered blocking state
Sep  3 22:27:45 OpenWrt kernel: [  635.375731] br-lan: port 2(wlan0) entered disabled state
Sep  3 22:27:45 OpenWrt kernel: [  635.381172] device wlan0 entered promiscuous mode
Sep  3 22:27:45 OpenWrt hostapd: wlan0: interface state UNINITIALIZED->HT_SCAN
Sep  3 22:27:45 OpenWrt kernel: [  635.387151] ieee80211 phy0: change: 0x100
Sep  3 22:27:45 OpenWrt kernel: [  635.395859] ieee80211 phy0: change: 0x40
Sep  3 22:27:46 OpenWrt kernel: [  635.610801] ieee80211 phy0: change: 0x40
Sep  3 22:27:46 OpenWrt kernel: [  635.820877] ieee80211 phy0: change: 0x40
Sep  3 22:27:46 OpenWrt kernel: [  635.916937] ieee80211 phy0: change: 0x100
Sep  3 22:27:46 OpenWrt hostapd: Using interface wlan0 with hwaddr 30:23:03:df:49:2a and ssid "OpenWrt"
Sep  3 22:27:46 OpenWrt kernel: [  635.968897] ieee80211 phy0: change: 0x100
Sep  3 22:27:46 OpenWrt kernel: [  635.977922] ieee80211 phy0: change: 0x42
Sep  3 22:27:46 OpenWrt kernel: [  636.146019] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Sep  3 22:27:46 OpenWrt kernel: [  636.152474] br-lan: port 2(wlan0) entered blocking state
Sep  3 22:27:46 OpenWrt kernel: [  636.157811] br-lan: port 2(wlan0) entered forwarding state
Sep  3 22:27:46 OpenWrt hostapd: wlan0: interface state HT_SCAN->ENABLED
Sep  3 22:27:46 OpenWrt hostapd: wlan0: AP-ENABLED
Sep  3 22:27:46 OpenWrt netifd: Network device 'wlan0' link is up
Sep  3 22:28:26 OpenWrt kernel: [  676.323211] ieee80211 phy0: change: 0x8
Sep  3 22:28:59 OpenWrt dropbear[5307]: Child connection from 192.168.50.83:46460
Sep  3 22:29:00 OpenWrt odhcpd[1859]: A default route is present but there is no public prefix on lan thus we don't announce a default route!
Sep  3 22:29:03 OpenWrt dropbear[5307]: Password auth succeeded for 'root' from 192.168.50.83:46460
Sep  3 22:29:25 OpenWrt kernel: [  735.206045] device mon0 entered promiscuous mode
Sep  3 22:29:59 OpenWrt hostapd: wlan0: STA xx:xx:xx:xx:xx:xx IEEE 802.11: associated (aid 1)
Sep  3 22:30:00 OpenWrt hostapd: wlan0: AP-STA-CONNECTED xx:xx:xx:xx:xx:xx
Sep  3 22:30:00 OpenWrt hostapd: wlan0: STA xx:xx:xx:xx:xx:xx WPA: pairwise key handshake completed (RSN)
Sep  3 22:30:01 OpenWrt odhcpd[1859]: A default route is present but there is no public prefix on lan thus we don't announce a default route!
Sep  3 22:30:01 OpenWrt hostapd: wlan0: STA xx:xx:xx:xx:xx:xx IEEE 802.11: authenticated
Sep  3 22:30:03 OpenWrt dnsmasq-dhcp[2697]: DHCPDISCOVER(br-lan) xx:xx:xx:xx:xx:xx
Sep  3 22:30:03 OpenWrt dnsmasq-dhcp[2697]: DHCPOFFER(br-lan) 192.168.1.225 xx:xx:xx:xx:xx:xx
Sep  3 22:30:03 OpenWrt dnsmasq-dhcp[2697]: DHCPDISCOVER(br-lan) xx:xx:xx:xx:xx:xx
Sep  3 22:30:03 OpenWrt dnsmasq-dhcp[2697]: DHCPOFFER(br-lan) 192.168.1.225 xx:xx:xx:xx:xx:xx
Sep  3 22:30:03 OpenWrt dnsmasq-dhcp[2697]: DHCPDISCOVER(br-lan) xx:xx:xx:xx:xx:xx
Sep  3 22:30:03 OpenWrt dnsmasq-dhcp[2697]: DHCPOFFER(br-lan) 192.168.1.225 xx:xx:xx:xx:xx:xx
Sep  3 22:30:03 OpenWrt dnsmasq-dhcp[2697]: DHCPREQUEST(br-lan) 192.168.1.225 xx:xx:xx:xx:xx:xx
Sep  3 22:30:03 OpenWrt dnsmasq-dhcp[2697]: DHCPACK(br-lan) 192.168.1.225 xx:xx:xx:xx:xx:xx Rob-s-S10e
Sep  3 22:30:05 OpenWrt odhcpd[1859]: A default route is present but there is no public prefix on lan thus we don't announce a default route!
Sep  3 22:30:44 OpenWrt kernel: [  814.028018] Unable to handle kernel NULL pointer dereference at virtual address 00000004
Sep  3 22:30:44 OpenWrt kernel: [  814.036170] pgd = c0004000
Sep  3 22:30:44 OpenWrt kernel: [  814.038888] [00000004] *pgd=00000000
Sep  3 22:30:44 OpenWrt kernel: [  814.042483] Internal error: Oops: 817 [#1] SMP ARM
Sep  3 22:30:44 OpenWrt kernel: [  814.047294] Modules linked in: pppoe ppp_async pppox ppp_generic nf_conntrack_ipv6 iptable_nat ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_FLOWOFFLOAD xt_CT slhc rfcomm nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack mwifiex_sdio mwifiex iptable_mangle iptable_filter ip_tables hidp hci_uart crc_ccitt btusb btmrvl_sdio btmrvl btintel bnep bluetooth hid evdev input_core mwlwifi mac80211 cfg80211 compat nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 ecdh_generic kpp ecb cmac gpio_button_hotplug
Sep  3 22:30:44 OpenWrt kernel: [  814.118741] CPU: 1 PID: 14 Comm: ksoftirqd/1 Not tainted 4.14.241 #0
Sep  3 22:30:44 OpenWrt kernel: [  814.125121] Hardware name: Marvell Armada 380/385 (Device Tree)
Sep  3 22:30:44 OpenWrt kernel: [  814.131066] task: df468a80 task.stack: df474000
Sep  3 22:30:44 OpenWrt kernel: [  814.135614] pc : [<c053b424>]    lr : [<c0560a90>]    psr: a0000013
Sep  3 22:30:44 OpenWrt kernel: [  814.141907] sp : df475ea0  ip : d55c2fb8  fp : 1f399000
Sep  3 22:30:44 OpenWrt kernel: [  814.147152] r10: df475ed8  r9 : dfbe092c  r8 : 00000040
Sep  3 22:30:44 OpenWrt kernel: [  814.152399] r7 : dfbe0888  r6 : 00000000  r5 : 0000000f  r4 : dfbe0930
Sep  3 22:30:44 OpenWrt kernel: [  814.158954] r3 : dfbe0888  r2 : 00000000  r1 : 00000000  r0 : df65df00
Sep  3 22:30:44 OpenWrt kernel: [  814.165509] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
Sep  3 22:30:44 OpenWrt kernel: [  814.172675] Control: 10c5387d  Table: 1523c04a  DAC: 00000051
Sep  3 22:30:44 OpenWrt kernel: [  814.178444] Process ksoftirqd/1 (pid: 14, stack limit = 0xdf474210)
Sep  3 22:30:44 OpenWrt kernel: [  814.184738] Stack: (0xdf475ea0 to 0xdf476000)
Sep  3 22:30:44 OpenWrt kernel: [  814.189114] 5ea0: dfbe0930 00000001 00000040 0000c8b4 c0902d00 0000012c df475ed8 c053d784
Sep  3 22:30:44 OpenWrt kernel: [  814.197328] 5ec0: dfbe0880 c0847880 c092ba34 c0904ad0 c0792efc c0796788 df475ed8 df475ed8
Sep  3 22:30:44 OpenWrt kernel: [  814.205542] 5ee0: df475ee0 df475ee0 c0902080 00000000 00000003 c090208c c0902080 40000003
Sep  3 22:30:44 OpenWrt kernel: [  814.213755] 5f00: ffffe000 00000100 c0902080 c0101628 df468e00 00000000 df475f54 c0844210
Sep  3 22:30:44 OpenWrt kernel: [  814.221969] 5f20: c0932a80 00000007 0000c8b3 c0902d00 c07015f8 04208040 ffffe000 df420240
Sep  3 22:30:44 OpenWrt kernel: [  814.230182] 5f40: ffffe000 00000000 00000001 c090c03c 00000002 00000000 df43be74 c012d0d8
Sep  3 22:30:44 OpenWrt kernel: [  814.238396] 5f60: df420240 c0147664 df420380 df474000 df420300 00000000 df42039c df420240
Sep  3 22:30:44 OpenWrt kernel: [  814.246609] 5f80: c01474cc c0144740 df474000 df420300 c014460c 00000000 00000000 00000000
Sep  3 22:30:44 OpenWrt kernel: [  814.254823] 5fa0: 00000000 00000000 00000000 c01075c8 00000000 00000000 00000000 00000000
Sep  3 22:30:44 OpenWrt kernel: [  814.263036] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Sep  3 22:30:44 OpenWrt kernel: [  814.271249] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
Sep  3 22:30:44 OpenWrt kernel: [  814.279464] Function entered at [<c053b424>] from [<c053d784>]
Sep  3 22:30:44 OpenWrt kernel: [  814.285321] Function entered at [<c053d784>] from [<c0101628>]
Sep  3 22:30:44 OpenWrt kernel: [  814.291178] Function entered at [<c0101628>] from [<c012d0d8>]
Sep  3 22:30:44 OpenWrt kernel: [  814.297035] Function entered at [<c012d0d8>] from [<c0147664>]
Sep  3 22:30:44 OpenWrt kernel: [  814.302892] Function entered at [<c0147664>] from [<c0144740>]
Sep  3 22:30:44 OpenWrt kernel: [  814.308749] Function entered at [<c0144740>] from [<c01075c8>]
Sep  3 22:30:44 OpenWrt kernel: [  814.314607] Code: e50430a0 e1c020d0 e5806000 e5806004 (e5823004)
Sep  3 22:30:44 OpenWrt kernel: [  814.320736] ---[ end trace 18bb1355718c00ff ]---
BrainSlayer commented 3 years ago

i just can tell you that i find no evidence that the driver has monitor mode support. but we find strong evidence that enabling monitor mode crashes the driver. since nobody is maintaining the driver you simply have to avoid using the monitor mode.

Izaic commented 3 years ago

I'm finding lockups with 21. as well... Where before in 19.07.8 I was able to run 5GHz without too many issues, after upgrading I now have constant stability problems.

BrainSlayer commented 3 years ago

there where always stability issues, especially if using IOS / apple devices.