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

mt798x: dead lock WARNING catched by enable kernel debug #914

Open
ptpt52 opened this issue Sep 6, 2024 · 0 comments
Open

mt798x: dead lock WARNING catched by enable kernel debug #914

ptpt52 opened this issue Sep 6, 2024 · 0 comments

Comments

@ptpt52
Copy link

ptpt52 commented Sep 6, 2024

enable these build options

CONFIG_KERNEL_KASAN=y
CONFIG_KERNEL_KASAN_GENERIC=y
CONFIG_KERNEL_KASAN_OUTLINE=y
CONFIG_KERNEL_PROVE_LOCKING=y
CONFIG_KERNEL_SOFTLOCKUP_DETECTOR=y
CONFIG_KERNEL_HARDLOCKUP_DETECTOR=y
CONFIG_KERNEL_DETECT_HUNG_TASK=y
CONFIG_KERNEL_WQ_WATCHDOG=y
CONFIG_KERNEL_DEBUG_ATOMIC_SLEEP=y
CONFIG_KERNEL_SLUB_DEBUG=y
CONFIG_KERNEL_SLUB_DEBUG_ON=y
CONFIG_KERNEL_SLABINFO=y

log:

[16010.903520] ------------[ cut here ]------------
[16010.908202] WARNING: CPU: 0 PID: 3823 at mt7915_mac_twt_teardown_flow+0x1bc/0x4c70 [mt7915e]
[16010.916775] Modules linked in:
[16010.916810] CMD[hostapd] args=[/usr/sbin/hostapd]
[16010.924614]  ksmbd qcserial pppoe ppp_async option 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 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 nft_hash nft_fwd_netdev
[16010.926620]  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 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 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 cryptodev(O) xt_set ip_set_list_set ip_set_hash_netportnet
[16011.018054]  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_udp_tunnel udp_tunnel sit ip6_tunnel oid_registry tunnel6 tunnel4 ip_tunnel udp_diag tcp_diag raw_diag inet_diag tun lockd sunrpc grace autofs4 dns_resolver multipath raid456 libcrc32c async_raid6_recov async_pq async_xor xor xor_neon raid6_pq async_memcpy async_tx raid10 raid1 raid0 md_mod nls_utf8 nls_iso8859_1 nls_cp437 crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg sha512_arm64 sha1_ce sha1_generic seqiv md5 geniv des_generic libdes cbc authencesn authenc arc4 uas
[16011.108512]  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]
[16011.226855] CPU: 0 PID: 3823 Comm: hostapd Tainted: G        W  O       6.6.48 #0
[16011.234394] Hardware name: CMCC RAX3000M (DT)
[16011.238792] pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[16011.245800] pc : mt7915_mac_twt_teardown_flow+0x1bc/0x4c70 [mt7915e]
[16011.252285] lr : mt7915_mac_twt_teardown_flow+0x1b8/0x4c70 [mt7915e]
[16011.258767] sp : ffffffc088dd7180
[16011.262122] x29: ffffffc088dd7180 x28: ffffff8010f790f8 x27: ffffff8017fa10e0
[16011.269363] x26: ffffffc081614000 x25: ffffff8010f7b020 x24: ffffff8017fa2340
[16011.276605] x23: ffffff8017c1ae70 x22: ffffffc081614000 x21: 0000000000000005
[16011.283843] x20: ffffff800fd83020 x19: ffffff8017c1b0a0 x18: 000000000000c8b8
[16011.291083] x17: 000000000000c8c4 x16: 000000000000c888 x15: 000000000000c080
[16011.298320] x14: 1ffffff8111bae2c x13: 0000000041b58ab3 x12: ffffffb0012364e3
[16011.305560] x11: 1ffffff0012364e2 x10: ffffffb0012364e2 x9 : dfffffc000000000
[16011.312797] x8 : 0000004ffedc9b1e x7 : 0000000000001840 x6 : 0000000000001840
[16011.320034] x5 : ffffffc07ba40630 x4 : ffffffc07ba93820 x3 : 0000000000000000
[16011.327270] x2 : 0000000000000000 x1 : ffffff800fd839f0 x0 : 0000000000000000
[16011.334504] Call trace:
[16011.336988]  mt7915_mac_twt_teardown_flow+0x1bc/0x4c70 [mt7915e]
[16011.343111]  mt7915_mac_sta_event+0x7c/0x18c [mt7915e]
[16011.348374]  mt76_sta_state+0x98/0x53c [mt76]
[16011.352937]  drv_sta_state+0x1b8/0x8d4 [mac80211]
[16011.358192]  ieee80211_sta_set_buffered+0x630/0x8b8 [mac80211]
[16011.364567]  sta_set_sinfo+0x1490/0x15fc [mac80211]
[16011.369973]  sta_info_destroy_addr_bss+0x58/0x9c [mac80211]
[16011.376100]  ieee80211_nan_func_match+0x16fc/0x1ee0 [mac80211]
[16011.382470]  cfg80211_conn_failed+0x5c4/0xbdc [cfg80211]
[16011.388237]  genl_family_rcv_msg_doit+0x130/0x198
[16011.393004]  genl_rcv_msg+0x268/0x338
[16011.396720]  netlink_rcv_skb+0xd0/0x218
[16011.400609]  genl_rcv+0x34/0x48
[16011.403788]  netlink_unicast+0x284/0x388
[16011.407754]  netlink_sendmsg+0x2e8/0x5b4
[16011.411724]  ____sys_sendmsg+0x158/0x3e4
[16011.415696]  ___sys_sendmsg+0xe8/0x148
[16011.419507]  __sys_sendmsg+0x9c/0xf4
[16011.423142]  __arm64_sys_sendmsg+0x44/0x54
[16011.427297]  invoke_syscall.constprop.0+0x5c/0x130
[16011.432147]  do_el0_svc+0x74/0x108
[16011.435607]  el0_svc+0x34/0x7c
[16011.438712]  el0t_64_sync_handler+0x118/0x124
[16011.443113]  el0t_64_sync+0x150/0x154
[16011.446825] irq event stamp: 258057378
[16011.450609] hardirqs last  enabled at (258057377): [<ffffffc080eb5480>] exit_to_kernel_mode+0x34/0xec
[16011.459878] hardirqs last disabled at (258057378): [<ffffffc080eb5cac>] el1_dbg+0x20/0x68
[16011.468110] softirqs last  enabled at (258057376): [<ffffffc080056f70>] handle_softirqs+0x644/0x668
[16011.477215] softirqs last disabled at (258057215): [<ffffffc080010224>] __do_softirq+0x10/0x18
[16011.485879] ---[ end trace 0000000000000000 ]---

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant