Skip to content

mt7620 crash since kernel > 6.6.45 #16396

Closed

Description

@ptpt52

Describe the bug

crash log:

<1>[  276.393904] CPU 0 Unable to handle kernel paging request at virtual address 7036837c, epc == 7036837c, ra == 80004574
<4>[  276.415127] Oops[#1]:
<4>[  276.419646] CPU: 0 PID: 11573 Comm: jshn Tainted: G           O       6.6.50 #0
<4>[  276.434213] $ 0   : 00000000 00000001 00000002 806d1698
<4>[  276.444644] $ 4   : 7fce7d9f 00000002 ffffff83 82979e00
<4>[  276.455068] $ 8   : 00000000 00000000 00000001 81995965
<4>[  276.465489] $12   : 00000000 8076eccc 00000003 85d5a630
<4>[  276.475911] $16   : 7fce7d9f 81995960 00000000 85d83e00
<4>[  276.486334] $20   : 85c8ac80 806d07a0 82ae3640 807b0000
<4>[  276.496758] $24   : 00000000 843b1cc4                  
<4>[  276.507180] $28   : 843b0000 843b1dd8 843b1df0 80004574
<4>[  276.517606] Hi    : 00000002
<4>[  276.523329] Lo    : 00000003
<4>[  276.529053] epc   : 7036837c 0x7036837c
<4>[  276.536692] ra    : 80004574 arch_align_stack+0x50/0x70
<4>[  276.547115] Status: 1100e403	KERNEL EXL IE 
<4>[  276.555454] Cause : 10800008 (ExcCode 02)
<4>[  276.563432] BadVA : 7036837c
<4>[  276.569156] PrId  : 00019650 (MIPS 24KEc)
<4>[  276.577133] Modules linked in: ksmbd rt2800soc(O) rt2800mmio(O) rt2800lib(O) qcserial pppoe ppp_async option cdc_mbim wireguard usb_wwan sierra_net sierra rt2x00soc(O) rt2x00mmio(O) rt2x00lib(O) rndis_host qmi_wwan pptp pppox ppp_mppe ppp_generic nft_fib_inet mac80211(O) libchacha20poly1305 ipt_REJECT huawei_cdc_ncm cfg80211(O) cdc_ncm cdc_ether 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_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_MASQUERADE xt_LOG xt_HL xt_DSCP xt_CLASSIFY usbserial usbnet usblp ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda ts_fsm ts_bm tcp_scalable tcp_bbr slhc sch_cake r8152 poly1305_mips nft_tproxy nft_socket nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject_bridge nft_reject nft_redir nft_quota nft_queue nft_numgen nft_nat nft_meta_bridge nft_masq nft_log nft_limit nft_hash
<4>[  276.577771]  nft_fwd_netdev nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_dup_netdev nft_ct nft_compat nft_chain_nat nfnetlink_queue nf_tproxy_ipv6 nf_tproxy_ipv4 nf_tables nf_socket_ipv6 nf_socket_ipv4 nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_pptp nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda nf_log_syslog nf_dup_netdev nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_sane nf_conntrack_pptp nf_conntrack_netbios_ns nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast nf_conntrack_bridge ts_kmp nf_conntrack_amanda nf_conncount macvlan libcurve25519_generic libcrc32c ipvlan iptable_nat iptable_mangle iptable_filter ipt_ECN ipheth ip_tables crc_ccitt compat(O) chacha_mips cdc_wdm br_netfilter natflow(O) natcap(O) nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 fuse ntfs3 sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred act_gact ledtrig_usbport xt_set ip_set_list_set ip_set_hash_netportnet
<4>[  276.756961]  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_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 nfsv4 nls_ucs2_utils cifs_arc4 asn1_decoder nfs msdos ip6_gre ip_gre gre ip6_udp_tunnel udp_tunnel sit ip6_tunnel oid_registry tunnel6 tunnel4 ip_tunnel tun lockd sunrpc grace autofs4 dns_resolver nls_utf8 nls_iso8859_1 nls_cp437 crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg sha512_generic sha256_generic libsha256 sha1_generic seqiv sha3_generic drbg md5 hmac geniv rng ecb des_generic libdes cmac arc4 uas mtk_sd mmc_block cqhci usb_storage mmc_core leds_gpio xhci_plat_hcd xhci_pci xhci_hcd ohci_platform ohci_hcd fsl_mph_dr_of ehci_platform ehci_fsl sd_mod scsi_mod scsi_common ehci_hcd gpio_button_hotplug(O) vfat fat ext4 mbcache jbd2
<4>[  276.936754]  exfat usbcore nls_base usb_common mii crc32c_generic [last unloaded: ksmbd]
<4>[  277.132417] Process jshn (pid: 11573, threadinfo=71d86be0, task=a21c8eab, tls=77ef9df4)
<4>[  277.148373] Stack : 77e850ff 77dc6bc0 85d83e00 85c0c400 85d83800 801d39d4 00000006 00000000
<4>[  277.165055]         85d8385c 80820000 00000012 00000000 00000003 0041ff14 00401d50 00400000
<4>[  277.181732]         00420028 00400034 00000008 00401140 00000022 00000002 77dc6bc0 806d1698
<4>[  277.198409]         77db4000 85d83800 00000034 00000000 00000000 00000000 82ae36e0 00000000
<4>[  277.215084]         00000100 ecbcfece 808241dc fffffff8 85d83800 80823890 00000006 00000000
<4>[  277.231762]         ...
<4>[  277.236629] Call Trace:
<4>[  277.236634] 
<4>[  277.244604] [<801d39d4>] load_elf_binary+0xc44/0x1590
<4>[  277.254839] [<80174d54>] bprm_execve+0x1ec/0x578
<4>[  277.264053] [<801747a4>] copy_string_kernel+0x104/0x240
<4>[  277.274472] [<801756f0>] do_execveat_common+0x1b4/0x240
<4>[  277.284884] [<8000fdec>] do_page_fault+0xd4/0x554
<4>[  277.294419] [<80176378>] sys_execve+0x34/0x48
<4>[  277.303111] [<8000dee0>] syscall_common+0x34/0x58
<4>[  277.312502] 
<4>[  277.315456] Code: (Bad address in epc)
<4>[  277.315456] 
<4>[  277.325856] 
<4>[  277.329048] ---[ end trace 0000000000000000 ]---

no crash for kernel version <= 6.6.45

OpenWrt version

r27609-cf79b823996

OpenWrt release

24.04_b202409140123

OpenWrt target/subtarget

ramips/mt7620

Device

Youku YK-L1c

Image kind

Self-built image

Steps to reproduce

No response

Actual behaviour

No response

Expected behaviour

No response

Additional info

No response

Diffconfig

No response

Terms

  • I am reporting an issue for OpenWrt, not an unsupported fork.

Activity

  1. added
    bug
    on Sep 15, 2024
  2. github-actions commented on Sep 15, 2024

    @github-actions

    Invalid Version reported. r27609-cf79b823996
    Is this from a clean repository?

  3. github-actions commented on Sep 15, 2024

    @github-actions

    Invalid Release reported. 24.04_b202409140123
    Is this from a clean repository?

  4. ptpt52 commented on Sep 15, 2024

    @ptpt52
    ContributorAuthor
  5. namiltd commented on Sep 15, 2024

    @namiltd
    Contributor

    Same issue on TP-Link Archer C5 v4 (also mt7620), system randomly reboots on kernel 6.6.47 and newer. On kernel 6.6.45 this issue does not occur.

  6. namiltd commented on Sep 15, 2024

    @namiltd
    Contributor

    Kernel in snapshot has just been updated to 6.6.51. Testing has started.

  7. namiltd commented on Sep 15, 2024

    @namiltd
    Contributor

    The crash restarts seem to have stopped.
    However, there is still a problem with frequent "phy1: Hardware restart was requested" after a higher load, after which 2.4GHz WiFi stops working. I have temporarily enabled a script that restarts the Wi-Fi network in cron when it detects such a situation.
    Two questions:
    Why is it starting a hardware restart?
    Why is the restart not happening? Commits ee82d96 and f547fc9 are wrong?
    But this is a different problem and requires a separate look at it.

  8. ptpt52 commented on Sep 16, 2024

    @ptpt52
    ContributorAuthor

    crash again on kernel 6.6.51

    <1>[  924.808612] CPU 0 Unable to handle kernel paging request at virtual address 70367f14, epc == 70367f14, ra == 80004574
    <4>[  924.829814] Oops[#1]:
    <4>[  924.834336] CPU: 0 PID: 25099 Comm: swconfig Tainted: G           O       6.6.51 #0
    <4>[  924.849593] $ 0   : 00000000 00000001 00000002 fffff000
    <4>[  924.860023] $ 4   : 7fc54000 7fc54000 00000001 00000000
    <4>[  924.870445] $ 8   : 00000000 80629b1c 00000014 808e907f
    <4>[  924.880867] $12   : 3ef2858b 3c605a55 d13feb91 b9379f1c
    <4>[  924.891292] $16   : 7fc54000 00000001 85dbfea0 8457de00
    <4>[  924.901714] $20   : 85bfd3c0 8457da5c 81da78c0 00000001
    <4>[  924.912137] $24   : 275a8d4e 80798f8f                  
    <4>[  924.922559] $28   : 85d12000 85d13d20 85d13de8 80004574
    <4>[  924.932984] Hi    : 00000008
    <4>[  924.938708] Lo    : 0000000c
    <4>[  924.944432] epc   : 70367f14 0x70367f14
    <4>[  924.952072] ra    : 80004574 arch_align_stack+0x50/0x70
    <4>[  924.962495] Status: 1100e403	KERNEL EXL IE 
    <4>[  924.970835] Cause : 10800008 (ExcCode 02)
    <4>[  924.978812] BadVA : 70367f14
    <4>[  924.984537] PrId  : 00019650 (MIPS 24KEc)
    <4>[  924.992514] Modules linked in: ksmbd rt2800soc(O) rt2800mmio(O) rt2800lib(O) qcserial pppoe ppp_async option cdc_mbim wireguard usb_wwan sierra_net sierra rt2x00soc(O) rt2x00mmio(O) rt2x00lib(O) rndis_host qmi_wwan pptp pppox ppp_mppe ppp_generic nft_fib_inet mac80211(O) libchacha20poly1305 ipt_REJECT huawei_cdc_ncm cfg80211(O) cdc_ncm cdc_ether 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_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_MASQUERADE xt_LOG xt_HL xt_DSCP xt_CLASSIFY usbserial usbnet usblp ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda ts_fsm ts_bm tcp_scalable tcp_bbr slhc sch_cake r8152 poly1305_mips nft_tproxy nft_socket nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject_bridge nft_reject nft_redir nft_quota nft_queue nft_numgen nft_nat nft_meta_bridge nft_masq nft_log nft_limit nft_hash
    <4>[  924.993149]  nft_fwd_netdev nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_dup_netdev nft_ct nft_compat nft_chain_nat nfnetlink_queue nf_tproxy_ipv6 nf_tproxy_ipv4 nf_tables nf_socket_ipv6 nf_socket_ipv4 nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_pptp nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda nf_log_syslog nf_dup_netdev nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_sane nf_conntrack_pptp nf_conntrack_netbios_ns nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast nf_conntrack_bridge ts_kmp nf_conntrack_amanda nf_conncount macvlan libcurve25519_generic libcrc32c ipvlan iptable_nat iptable_mangle iptable_filter ipt_ECN ipheth ip_tables crc_ccitt compat(O) chacha_mips cdc_wdm br_netfilter natflow(O) natcap(O) nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 fuse ntfs3 sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred act_gact ledtrig_usbport xt_set ip_set_list_set ip_set_hash_netportnet
    <4>[  925.172329]  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_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 nfsv4 nls_ucs2_utils cifs_arc4 asn1_decoder nfs msdos ip6_gre ip_gre gre ip6_udp_tunnel udp_tunnel sit ip6_tunnel oid_registry tunnel6 tunnel4 ip_tunnel tun lockd sunrpc grace autofs4 dns_resolver nls_utf8 nls_iso8859_1 nls_cp437 crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg sha512_generic sha256_generic libsha256 sha1_generic seqiv sha3_generic drbg md5 hmac geniv rng ecb des_generic libdes cmac arc4 uas mtk_sd mmc_block cqhci usb_storage mmc_core leds_gpio xhci_plat_hcd xhci_pci xhci_hcd ohci_platform ohci_hcd fsl_mph_dr_of ehci_platform ehci_fsl sd_mod scsi_mod scsi_common ehci_hcd gpio_button_hotplug(O) vfat fat ext4 mbcache jbd2
    <4>[  925.352115]  exfat usbcore nls_base usb_common mii crc32c_generic [last unloaded: ksmbd]
    <4>[  925.547780] Process swconfig (pid: 25099, threadinfo=cf1aface, task=7a431a5b, tls=77e9cdf4)
    <4>[  925.564430] Stack : ffffffff 00000000 00005c08 80a5c680 8457da00 80173c04 85bfd3c0 00005c08
    <4>[  925.581110]         80a5c680 00000000 00000001 8014e304 846bc780 00000003 00000000 00a032ce
    <4>[  925.597786]         00000000 8082a508 00000001 00000014 8457de00 82bdda00 8457da5c 80368054
    <4>[  925.614464]         00000001 80031008 8457da00 859cf200 00000000 1fd8711e ffffffff 85bfd3c0
    <4>[  925.631141]         8457da54 80120bf8 82bdda00 844bbb00 00000100 801d2c3c 00000034 2c14baaa
    <4>[  925.647820]         ...
    <4>[  925.652687] Call Trace:
    <4>[  925.652691] 
    <4>[  925.660662] [<80173c04>] setup_arg_pages+0x48/0x2cc
    <4>[  925.670545] [<8014e304>] free_unref_page+0xa0/0x118
    <4>[  925.680890] [<80368054>] get_random_u32+0x64/0xdc
    <4>[  925.690272] [<80031008>] flush_itimer_signals+0x34/0x5c
    <4>[  925.701304] [<80120bf8>] arch_pick_mmap_layout+0x11c/0x1b0
    <4>[  925.712545] [<801d2c3c>] load_elf_phdrs+0x78/0xcc
    <4>[  925.722683] [<801d3108>] load_elf_binary+0x2e4/0x1540
    <4>[  925.732902] [<8016abb0>] __kernel_read+0x164/0x2ac
    <4>[  925.743396] [<80174d58>] bprm_execve+0x1ec/0x578
    <4>[  925.752600] [<801747a8>] copy_string_kernel+0x104/0x240
    <4>[  925.763328] [<801756f4>] do_execveat_common+0x1b4/0x240
    <4>[  925.773901] [<8000fdec>] do_page_fault+0xd4/0x554
    <4>[  925.783435] [<8017637c>] sys_execve+0x34/0x48
    <4>[  925.792124] [<8000dee0>] syscall_common+0x34/0x58
    <4>[  925.801671] 
    <4>[  925.804627] Code: (Bad address in epc)
    <4>[  925.804627] 
    <4>[  925.815029] 
    <4>[  925.818167] ---[ end trace 0000000000000000 ]---
    

    @namiltd
    no crash on your device?

  9. namiltd commented on Sep 16, 2024

    @namiltd
    Contributor

    I haven't noticed any crashes yet, but maybe it's just luck.

    Update: Problems remain

  10. ptpt52 commented on Sep 16, 2024

    @ptpt52
    ContributorAuthor

    I notice that this issue happens on mt798x:

    <1>[97887.593961] Unable to handle kernel paging request at virtual address 00510b2901f7ec90
    <1>[97887.601897] Mem abort info:
    <1>[97887.604682]   ESR = 0x0000000096000004
    <1>[97887.608705]   EC = 0x25: DABT (current EL), IL = 32 bits
    <1>[97887.614002]   SET = 0, FnV = 0
    <1>[97887.617066]   EA = 0, S1PTW = 0
    <1>[97887.620192]   FSC = 0x04: level 0 translation fault
    <1>[97887.625051] Data abort info:
    <1>[97887.627944]   ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000
    <1>[97887.633410]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
    <1>[97887.638455]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
    <1>[97887.643748] [00510b2901f7ec90] address between user and kernel address ranges
    <0>[97887.650868] Internal error: Oops: 0000000096000004 [#1] SMP
    <7>[97887.656422] Modules linked in:
    <7>[97887.656425] CMD[switch_ports_st] args=[/bin/sh]
    <7>[97887.663972]  ksmbd qcserial pppoe ppp_async option l2tp_ppp cdc_mbim wireguard usb_wwan sierra_net sierra rndis_host qmi_wwan pptp pppox ppp_mppe ppp_generic pl2303 nft_fib_inet mt7915e(O) mt76_connac_lib(O) mt76(O) mac80211(O) libchacha20poly1305 ipt_REJECT huawei_cdc_ncm cp210x chacha_neon cfg80211(O) cdc_ncm cdc_ether 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_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_MASQUERADE xt_LOG xt_HL xt_DSCP xt_DNETMAP(O) xt_DHCPMAC(O) xt_CLASSIFY xfrm_interface usbserial usbnet usblp ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda ts_fsm ts_bm tcp_scalable tcp_bbr slhc sch_cake poly1305_neon nft_tproxy nft_socket nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject_bridge nft_reject nft_redir nft_quota nft_queue nft_numgen nft_nat nft_meta_bridge nft_masq nft_log nft_limit
    <7>[97887.664155]  nft_hash nft_fwd_netdev nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_dup_netdev nft_ct nft_compat nft_chain_nat nfnetlink_queue nf_tproxy_ipv6 nf_tproxy_ipv4 nf_tables nf_socket_ipv6 nf_socket_ipv4 nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_pptp nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda nf_log_syslog nf_dup_netdev nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_sane nf_conntrack_pptp nf_conntrack_netlink nf_conntrack_netbios_ns nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast nf_conntrack_bridge ts_kmp nf_conntrack_amanda nf_conncount macvlan libcurve25519_generic libcrc32c libchacha ipvlan iptable_nat iptable_mangle iptable_filter ipt_ECN ipheth ip_tables compat_xtables(O) compat(O) cdc_wdm br_netfilter natflow(O) natcap(O) nf_nat nf_conntrack crypto_safexcel fuse sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred act_gact cryptodev(O) xt_set ip_set_list_set
    <7>[97887.753995]  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 jool_siit(O) jool(O) nf_defrag_ipv4 jool_common(O) ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 nfsv4 nls_ucs2_utils cifs_arc4 asn1_decoder nfs msdos bonding tls ip6_gre ip_gre gre nat46(O) nf_defrag_ipv6 ip6_vti ip_vti sit l2tp_netlink l2tp_core udp_tunnel ip6_udp_tunnel ipcomp6 xfrm6_tunnel esp6 ah6 xfrm4_tunnel ipcomp esp4 ah4 ip6_tunnel oid_registry tunnel6 tunnel4 ip_tunnel udp_diag tcp_diag raw_diag inet_diag tun xfrm_user xfrm_ipcomp af_key xfrm_algo lockd sunrpc grace autofs4 dns_resolver nls_utf8 nls_cp437 crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg sha512_arm64 sha1_ce sha1_generic seqiv md5 echainiv geniv des_generic libdes cbc authencesn
    <7>[97887.842996]  authenc arc4 nls_iso8859_1 ntfs3 uas usb_storage leds_gpio xhci_plat_hcd xhci_pci xhci_mtk_hcd xhci_hcd ohci_platform ohci_hcd fsl_mph_dr_of ehci_platform ehci_fsl ehci_hcd gpio_button_hotplug(O) vfat fat exfat dm_mirror dm_region_hash dm_log dm_crypt dm_mod dax usbcore usb_common aquantia mii tpm encrypted_keys trusted [last unloaded: ksmbd]
    <7>[97887.963956] CPU: 1 PID: 30276 Comm: switch_ports_st Tainted: G           O       6.6.50 #0
    <7>[97887.972199] Hardware name: GL.iNet GL-MT6000 (DT)
    <7>[97887.976886] pstate: a0400005 (NzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    <7>[97887.983827] pc : __kmem_cache_alloc_node+0xb0/0x25c
    <7>[97887.988694] lr : __kmem_cache_alloc_node+0x3c/0x25c
    <7>[97887.993554] sp : ffffffc08a44bbd0
    <7>[97887.996852] x29: ffffffc08a44bbd0 x28: ffffff800ba74ca0 x27: 0000000000000000
    <7>[97888.003968] x26: 0000000000000000 x25: 0000000000000cc0 x24: 000000000000001a
    <7>[97888.011083] x23: ffffffc080bb8000 x22: 00000000ffffffff x21: 0000000000000000
    <7>[97888.018199] x20: 0000000000000cc0 x19: ffffff8000001400 x18: ffffffc08a44ba60
    <7>[97888.025315] x17: 0000000000000000 x16: ffffffc08096cf38 x15: 000000046474e552
    <7>[97888.032431] x14: 0000000000000010 x13: 000000046474e552 x12: 0000000000000010
    <7>[97888.039547] x11: 0000000000000001 x10: 0000000000000c40 x9 : 0000000000000c40
    <7>[97888.046662] x8 : 000000000048f3c0 x7 : 000000000048f3c0 x6 : 0000000000000005
    <7>[97888.053778] x5 : 00000000000faa51 x4 : 00000000000faa50 x3 : 69f682dd812005bf
    <7>[97888.060893] x2 : 0000000000000010 x1 : 90ecf701290b5186 x0 : 86510b2901f7ec80
    <7>[97888.068009] Call trace:
    <7>[97888.070440]  __kmem_cache_alloc_node+0xb0/0x25c
    <7>[97888.074954]  __kmalloc+0x80/0xd0
    <7>[97888.078169]  load_elf_binary+0xe4/0x17fc
    <7>[97888.082079]  bprm_execve+0x248/0x534
    <7>[97888.085641]  do_execveat_common+0x17c/0x208
    <7>[97888.089807]  __arm64_sys_execve+0x34/0x44
    <7>[97888.093800]  invoke_syscall.constprop.0+0x4c/0xe0
    <7>[97888.098487]  do_el0_svc+0x3c/0xb8
    <7>[97888.101786]  el0_svc+0x18/0x4c
    <7>[97888.104828]  el0t_64_sync_handler+0x118/0x124
    <7>[97888.109169]  el0t_64_sync+0x150/0x154
    <0>[97888.112818] Code: b9402a62 f9405e63 8b020001 dac00c21 (f8626802) 
    <4>[97888.118891] ---[ end trace 0000000000000000 ]---
    
  11. 142 remaining items

  12. namiltd commented on Apr 3, 2025

    @namiltd
    Contributor

    Maybe the reason for the restarts is the jitterentropy_rng loading error?
    Please check the behavior of routers after adding #18399 and x-wrt@1266739

  13. ptpt52 commented on Apr 6, 2025

    @ptpt52
    ContributorAuthor

    Maybe the reason for the restarts is the jitterentropy_rng loading error? Please check the behavior of routers after adding #18399 and x-wrt@1266739

    tested, crash again with the PR and patch

    <1>[  719.445128] CPU 0 Unable to handle kernel paging request at virtual address 70360604, epc == 70360604, ra == 80004294
    <4>[  719.456105] Oops[#1]:
    <4>[  719.458432] CPU: 0 PID: 18153 Comm: grep Tainted: G           O       6.6.85 #0
    <4>[  719.465901] $ 0   : 00000000 00000001 00000002 fffff000
    <4>[  719.471265] $ 4   : 7f8d1000 7f8d1000 00000001 85c4482c
    <4>[  719.476619] $ 8   : 00000010 80620d0c 00380023 3893b685
    <4>[  719.481973] $12   : 80a4b3e0 8478d00c 00000001 ffffff00
    <4>[  719.487327] $16   : 7f8d1000 00000001 85c11bd0 85b81400
    <4>[  719.492683] $20   : 85b63960 85b7705c 85b495a0 00000001
    <4>[  719.498037] $24   : 00000000 ffffffff                  
    <4>[  719.503390] $28   : 84784000 84785d20 84785de8 80004294
    <4>[  719.508746] Hi    : 554a9555
    <4>[  719.511684] Lo    : 7ffaa000
    <4>[  719.514620] epc   : 70360604 0x70360604
    <4>[  719.518542] ra    : 80004294 arch_align_stack+0x50/0x70
    <4>[  719.523897] Status: 1100b403	KERNEL EXL IE 
    <4>[  719.528182] Cause : 10800008 (ExcCode 02)
    <4>[  719.532273] BadVA : 70360604
    <4>[  719.535209] PrId  : 00019650 (MIPS 24KEc)
    <4>[  719.539299] Modules linked in: ksmbd rt2800soc(O) rt2800mmio(O) rt2800lib(O) qcserial pppoe ppp_async option cdc_mbim wireguard usb_wwan sierra_net sierra rt2x00soc(O) rt2x00mmio(O) rt2x00lib(O) rndis_host qmi_wwan pptp pppox ppp_mppe ppp_generic nft_fib_inet mt76x2e(O) mt76x2_common(O) mt76x02_lib(O) mt76(O) mac80211(O) libchacha20poly1305 ipt_REJECT huawei_cdc_ncm cfg80211(O) cdc_ncm cdc_ether 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_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_MASQUERADE xt_LOG xt_HL xt_DSCP xt_CLASSIFY usbserial usbnet usblp ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda ts_fsm ts_bm tcp_scalable tcp_bbr slhc sch_cake r8152 poly1305_mips nft_tproxy nft_socket nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject_bridge nft_reject nft_redir nft_quota nft_queue nft_numgen nft_nat
    <4>[  719.539973]  nft_meta_bridge nft_masq nft_log nft_limit nft_hash nft_fwd_netdev nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_dup_netdev nft_ct nft_compat nft_chain_nat nfnetlink_queue nf_tproxy_ipv6 nf_tproxy_ipv4 nf_tables nf_socket_ipv6 nf_socket_ipv4 nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_pptp nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda nf_log_syslog nf_dup_netdev nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_sane nf_conntrack_pptp nf_conntrack_netbios_ns nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast nf_conntrack_bridge ts_kmp nf_conntrack_amanda nf_conncount macvlan libcurve25519_generic libcrc32c ipvlan iptable_nat iptable_mangle iptable_filter ipt_ECN ipheth ip_tables crc_ccitt compat(O) chacha_mips cdc_wdm br_netfilter natflow(O) natcap(O) nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 fuse ntfs3 sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred act_gact xt_set
    <4>[  719.631894]  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_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 nfsv4 nls_ucs2_utils cifs_arc4 asn1_decoder nfs msdos ip6_gre ip_gre gre ip6_udp_tunnel udp_tunnel sit ip6_tunnel oid_registry tunnel6 tunnel4 ip_tunnel tun lockd sunrpc grace autofs4 dns_resolver nls_utf8 nls_iso8859_1 nls_cp437 crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg sha512_generic sha256_generic libsha256 sha1_generic seqiv sha3_generic jitterentropy_rng drbg md5 kpp hmac geniv rng ecb des_generic libdes cmac arc4 uas usb_storage leds_gpio ohci_platform ohci_hcd fsl_mph_dr_of ehci_platform ehci_fsl sd_mod scsi_mod scsi_common ehci_hcd gpio_button_hotplug(O) vfat fat ext4 mbcache jbd2
    <4>[  719.723964]  exfat usbcore nls_base usb_common mii crc32c_generic [last unloaded: ksmbd]
    <4>[  719.823857] Process grep (pid: 18153, threadinfo=b72927ea, task=8d9a7b5e, tls=77ed9df4)
    <4>[  719.832037] Stack : 00001601 85b63000 00005b6f 80a4b4a0 85b77000 8016f8fc 85b63960 85b63000
    <4>[  719.840609]         807a5280 00000001 84785de8 8014adc0 00000000 00000000 00000000 00000000
    <4>[  719.849173]         00000000 00000000 00000000 00000000 00000001 85c44500 00000000 85c44500
    <4>[  719.857739]         00000001 80030918 85b77000 85c44500 00000000 f0831e6f ffffffff 85b63960
    <4>[  719.866307]         85b77054 8011e324 85a0a000 859f5400 00000100 801cd6c0 00000034 e98df62d
    <4>[  719.874875]         ...
    <4>[  719.877377] Call Trace:
    <4>[  719.877382] 
    <4>[  719.881722] [<8016f8fc>] setup_arg_pages+0x48/0x2cc
    <4>[  719.887211] [<8014adc0>] free_unref_page+0x40/0x118
    <4>[  719.892534] [<80030918>] flush_itimer_signals+0x34/0x5c
    <4>[  719.898531] [<8011e324>] arch_pick_mmap_layout+0x1a4/0x1c4
    <4>[  719.904464] [<801cd6c0>] load_elf_phdrs+0x78/0xcc
    <4>[  719.910113] [<801cdb8c>] load_elf_binary+0x2e4/0x1540
    <4>[  719.915455] [<80166b90>] __kernel_read+0x164/0x2ac
    <4>[  719.921355] [<801705f0>] bprm_execve+0x1ec/0x578
    <4>[  719.926081] [<80170bfc>] copy_string_kernel+0x104/0x240
    <4>[  719.931757] [<80171410>] do_execveat_common+0x1b4/0x240
    <4>[  719.937268] [<8000fa8c>] do_page_fault+0xd4/0x554
    <4>[  719.942249] [<801720c8>] sys_execve+0x34/0x48
    <4>[  719.946714] [<8000db80>] syscall_common+0x34/0x58
    <4>[  719.951710] 
    <4>[  719.953230] Code: (Bad address in epc)
    <4>[  719.953230] 
    <4>[  719.958562] 
    <4>[  719.960263] ---[ end trace 0000000000000000 ]---
    
  14. namiltd commented on Jun 28, 2025

    @namiltd
    Contributor

    The problem is still not solved. On my TP-Link Archer C5 v4 it can be invoked by running:
    while true ; do var=$(iw phy1-ap0 station dump | grep "Station") ; done
    The only thing that helps is to disable va space randomization by adding it to the penultimate line of /etc/rc.local:
    echo 0 > /proc/sys/kernel/randomize_va_space

  15. namiltd commented on Nov 17, 2026

    @namiltd
    Contributor

    Finally fixed in: #26650

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buginvalid

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions