OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by gwlim - 11.06.2019

FS#2315 - Unaligned Instructions on AR71XX Targets

To reproduce install wpad-openssl-mesh
Enable wireless mesh

echo 2 > /sys/kernel/debug/mips/unaligned_action && sleep 10 && echo 0 >  /sys/kernel/debug/mips/unaligned_action

Kernel Stack Trace

[  344.065508] Call Trace:
[  344.068111] [<870d9b7c>] mesh_rx_plink_frame+0xed0/0x139c [mac80211]
[  344.074626] Code: 96c40002  9646000c  00451026 <96c30004> 9645000e  00862026  00441025  00651826  00431025
[  344.084628]
[  344.086166] CPU: 0 PID: 5 Comm: kworker/u2:0 Not tainted 4.14.123 #0
[  344.092833] Workqueue: phy1 ieee80211_ibss_leave [mac80211]
[  344.098609] task: 87c25600 task.stack: 87c3a000
[  344.103319] $ 0   : 00000000 00000001 00000000 00000000
[  344.108656] $ 4   : 00000000 0000c46e 000067a5 00000000
[  344.114057] $ 8   : 86e25464 00000001 00000004 873811e8
[  344.119433] $12   : ffffffff 00000000 00b00000 00000000
[  344.124806] $16   : 804f0000 8773f078 87315460 8773f082
[  344.130155] $20   : 8773f094 8773f0a9 000000b3 870e89e8
[  344.135485] $24   : 804ef040 870de528
[  344.140915] $28   : 87c3a000 87c3bcb8 870e8a14 870da454
[  344.146279] Hi    : 0004e2ca
[  344.149300] Lo    : b0250b0d
[  344.152383] epc   : 870da988 mesh_rx_path_sel_frame+0x658/0xb08 [mac80211]
[  344.159527] ra    : 870da454 mesh_rx_path_sel_frame+0x124/0xb08 [mac80211]
[  344.166543] Status: 1100dc03 KERNEL EXL IE
[  344.170825] Cause : 00800010 (ExcCode 04)
[  344.174894] BadVA : 8773f0a9
[  344.177829] PrId  : 0001974c (MIPS 74Kc)
[  344.181881] Modules linked in: ath9k ath9k_common pppoe ppp_async l2tp_ppp ath9k_hw ath qmi_wwan pptp pppox ppp_mppe ppp_generic nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE 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_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY wireguard usbnet slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_netlink iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt compat cdc_wdm sch_cake nf_conntrack sch_tbf sch_ingress sch_htb sch_hfsc
[  344.254146]  em_u32 cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred ledtrig_usbport cryptodev 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 ip_gre gre ifb l2tp_netlink l2tp_core udp_tunnel ip6_udp_tunnel ip_tunnel tun shortcut_fe_ipv6 shortcut_fe algif_skcipher algif_hash af_alg sha1_generic ecb authenc ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common mii aead cryptomgr crypto_null
[  344.326861]  crypto_hash
[  344.329502] Process kworker/u2:0 (pid: 5, threadinfo=87c3a000, task=87c25600, tls=00000000)
[  344.338022] Stack : 0000002f 870ac7f0 00000000 20000009 00000000 00000000 00000000 00000041
[  344.346622]         8717a780 804f0000 87315460 00000041 87380bc0 870b2d30 8717a780 8717a780
[  344.355242]         000000a0 00000000 00000000 802d09dc 8773f092 00000021 00000000 00000000
[  344.363839]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  344.372380]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  344.380888]         ...
[  344.383382] Call Trace:
[  344.386011] [<870da988>] mesh_rx_path_sel_frame+0x658/0xb08 [mac80211]
[  344.392801] [<870d5bb4>] ieee80211_mesh_rx_queued_mgmt+0x15c/0x164 [mac80211]
[  344.400279] [<87097164>] ieee80211_ibss_leave+0x80c/0x1888 [mac80211]
[  344.406922] [<870d5cd0>] ieee80211_mesh_work+0x114/0x2cc [mac80211]
[  344.413498] [<8009d280>] process_one_work+0x1f8/0x428
[  344.418706] [<8009d630>] worker_thread+0x180/0x548
[  344.423692] [<800a3a04>] kthread+0x134/0x13c
[  344.428075] [<80066db8>] ret_from_kernel_thread+0x14/0x1c
[  344.433622] Code: 26950015  2695001b  964508a0 <96a20000> 96a40002  964608a2  00451026  96a30004  964508a4
[  344.443591]
[  344.445124] CPU: 0 PID: 5 Comm: kworker/u2:0 Not tainted 4.14.123 #0
[  344.451809] Workqueue: phy1 ieee80211_ibss_leave [mac80211]
[  344.457609] task: 87c25600 task.stack: 87c3a000
[  344.462251] $ 0   : 00000000 00000001 0000c46e 00000000
[  344.467638] $ 4   : 00000000 0000c46e 000067a5 00000000
[  344.472982] $ 8   : 86e25464 00000001 00000004 873811e8
[  344.478319] $12   : ffffffff 00000000 00b00000 00000000
[  344.483642] $16   : 804f0000 8773f078 87315460 8773f082
[  344.489022] $20   : 8773f094 8773f0a9 000000b3 870e89e8
[  344.494355] $24   : 804ef040 870de528
[  344.499779] $28   : 87c3a000 87c3bcb8 870e8a14 870da454
[  344.505182] Hi    : 0004e2ca
[  344.508135] Lo    : b0250b0d
[  344.511216] epc   : 870da98c mesh_rx_path_sel_frame+0x65c/0xb08 [mac80211]
[  344.518315] ra    : 870da454 mesh_rx_path_sel_frame+0x124/0xb08 [mac80211]
[  344.525377] Status: 1100dc03 KERNEL EXL IE
[  344.529667] Cause : 00800010 (ExcCode 04)
[  344.533773] BadVA : 8773f0ab
[  344.536702] PrId  : 0001974c (MIPS 74Kc)
[  344.540711] Modules linked in: ath9k ath9k_common pppoe ppp_async l2tp_ppp ath9k_hw ath qmi_wwan pptp pppox ppp_mppe ppp_generic nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE 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_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY wireguard usbnet slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_netlink iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt compat cdc_wdm sch_cake nf_conntrack sch_tbf sch_ingress sch_htb sch_hfsc
[  344.613009]  em_u32 cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred ledtrig_usbport cryptodev 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 ip_gre gre ifb l2tp_netlink l2tp_core udp_tunnel ip6_udp_tunnel ip_tunnel tun shortcut_fe_ipv6 shortcut_fe algif_skcipher algif_hash af_alg sha1_generic ecb authenc ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common mii aead cryptomgr crypto_null
[  344.685675]  crypto_hash
[  344.688299] Process kworker/u2:0 (pid: 5, threadinfo=87c3a000, task=87c25600, tls=00000000)
[  344.696835] Stack : 0000002f 870ac7f0 00000000 20000009 00000000 00000000 00000000 00000041
[  344.705438]         8717a780 804f0000 87315460 00000041 87380bc0 870b2d30 8717a780 8717a780
[  344.714011]         000000a0 00000000 00000000 802d09dc 8773f092 00000021 00000000 00000000
[  344.722611]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  344.731207]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  344.739750]         ...
Project Manager
Koen Vandeputte commented on 25.06.2019 19:33

Interesting ..

I'll try to simulate this one.
Did you also report this upstream?

Thanks,

Koen

gwlim commented on 27.06.2019 16:11

Unaligned access is an issue specific only to MIPS Routers see
External Link Upstream don't consider it a bug

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing