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

FS#1372 - 802.11s Mesh with SAE / using wpad-mesh crashing randomly #8144

Closed
openwrt-bot opened this issue Feb 17, 2018 · 2 comments
Closed
Labels

Comments

@openwrt-bot
Copy link

KrazyIvan-:

OpenWrt SNAPSHOT r6155-9574551
Hardware: AP147-010/CPU: AR9533/RAM: 128MB/FLUSH: 16MB

Randomly crashing.

Issue only when use encryption.

/etc/config/wireless: (on both device same)

config wifi-device 'radio1'
option type 'mac80211'
option hwmode '11g'
option path 'platform/qca953x_wmac'
option disabled '0'
option channel '6'
option legacy_rates '0'
option country 'CN'
option beacon_int '400'
option htmode 'HT20'

config wifi-iface
option ifname 'mesh0'
option device 'radio1'
option network 'lan'
option mode 'mesh'
option mesh_id 'TESTMESH'
option encryption 'psk2'
option key 'TESTMESHPASS'
option mesh_fwding '1'

Device_1 /etc/config/network: (with internet on eth1)

config interface 'lan' option type 'bridge' option ifname 'eth0' option proto 'static' option ipaddr '192.168.1.1' option netmask '255.255.255.0' option stp '1'

Device_2 /etc/config/network: (just mesh point)

config interface 'lan' option type 'bridge' option ifname 'eth0 eth1' option proto 'static' option ipaddr '192.168.1.2' option netmask '255.255.255.0' option stp '1'
Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.128432] ------------[ cut here ]------------ Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.133333] WARNING: CPU: 0 PID: 3 at backports-2017-11-01/net/mac80211/wpa.c:431 0x86c887f8 [mac80211@86c80000+0x61180] Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.144597] Modules linked in: ath9k ath9k_common pppoe ppp_async ath9k_hw ath10k_pci ath10k_core ath pptp pppox ppp_mppe ppp_generic nf_nat_pptp nf_conntrack_pptp mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_socket xt_recent xt_quota xt_pkttype xt_physdev xt_owner xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_iprange xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_addrtype xt_TPROXY xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_HL xt_DSCP xt_CLASSIFY usblp ts_fsm ts_bm slhc nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_redirect nf_nat_proto_gre nf_nat_masquerade_ipv4 nf_nat_irc nf_conntrack_ipv4 nf_nat_ipv4 nf_nat_h323 nf_nat_ftp nf_nat_amanda nf_log_ipv4 nf_defrag_ipv4 Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.218626] nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_proto_gre nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast ts_kmp nf_conntrack_amanda iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt compat br_netfilter fuse act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_tbf sch_htb sch_hfsc sch_ingress xt_set ip_set_list_set ip_set_hash_netiface ip_set_hash_netport ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet 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 ip6t_NPT ip6t_MASQUERADE nf_nat_masquerade_ipv6 ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 nf_nat nf_conntrack ip6t_rt ip6t_frag ip6t_hbh ip6t_eui64 ip6t_mh ip6t_ah ip6t_ipv6header ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables ip_gre gre ipip ip6_tunnel tunnel6 tunnel4 ip_tunnel vfat fat ntfs hSat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.340385] CPU: 0 PID: 3 Comm: ksoftirqd/0 Tainted: G W 4.9.77 #0 Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.347939] Stack : 8046767a 00000043 00000000 00000001 00000000 00000000 00000000 00000000 Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.356645] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.365344] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.374044] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.382745] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.391435] ... Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.393981] Call Trace: Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.396423] [<8006adcc>] 0x8006adcc Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.400025] [<8006adcc>] 0x8006adcc Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.403638] [<8007fa40>] 0x8007fa40 Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.407246] [<86c887f8>] 0x86c887f8 [mac80211@86c80000+0x61180] Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.413445] [<8007fb08>] 0x8007fb08 Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.417131] [<86c887f8>] 0x86c887f8 [mac80211@86c80000+0x61180] Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.423260] [<80126f94>] 0x80126f94 Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.427128] [<86ca863c>] 0x86ca863c [mac80211@86c80000+0x61180] Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.433336] [<86f690b4>] 0x86f690b4 [ath9k@86f60000+0x15f50] Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.439179] [<802beae8>] 0x802beae8 Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.443070] [<86cab364>] 0x86cab364 [mac80211@86c80000+0x61180] Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.449255] [<86f69318>] 0x86f69318 [ath9k@86f60000+0x15f50] Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.455700] [<86f69758>] 0x86f69758 [ath9k@86f60000+0x15f50] Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.461711] [<86f69840>] 0x86f69840 [ath9k@86f60000+0x15f50] Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.467609] [<86c97800>] 0x86c97800 [mac80211@86c80000+0x61180] Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.473994] [<86f6a09c>] 0x86f6a09c [ath9k@86f60000+0x15f50] Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.480242] [<86f6a4c0>] 0x86f6a4c0 [ath9k@86f60000+0x15f50] Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.486297] [<86caa880>] 0x86caa880 [mac80211@86c80000+0x61180] Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.492474] [<86ca7d38>] 0x86ca7d38 [mac80211@86c80000+0x61180] Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.498588] [<86d17a3c>] 0x86d17a3c [ath10k_core@86d00000+0x3ea30] Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.505098] [<86cac5dc>] 0x86cac5dc [mac80211@86c80000+0x61180] Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.511211] [<86f6b9dc>] 0x86f6b9dc [ath9k@86f60000+0x15f50] Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.517373] [<86cadfac>] 0x86cadfac [mac80211@86c80000+0x61180] Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.523582] [<80290670>] 0x80290670 Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.527260] [<80082bd0>] 0x80082bd0 Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.530898] [<800a06f8>] 0x800a06f8 Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.534510] [<8008258c>] 0x8008258c Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.538114] [<8009fa3c>] 0x8009fa3c Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.541849] [<800825fc>] 0x800825fc Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.545453] [<8009b1d0>] 0x8009b1d0 Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.549055] [<8009b324>] 0x8009b324 Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.552720] [<8009b1d0>] 0x8009b1d0 Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.556322] [<8037da5c>] 0x8037da5c Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.560001] [<8009b1d0>] 0x8009b1d0 Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.563619] [<80097e8c>] 0x80097e8c Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.567410] [<80097db4>] 0x80097db4 Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.571084] [<80066058>] 0x80066058 Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.574706] Sat Feb 17 08:44:01 2018 kern.warn kernel: [ 1192.576249] ---[ end trace 9d0627fec2f83954 ]---
@openwrt-bot
Copy link
Author

thelinuxdude:

I see the same warn when using 802.11s over 5GHz mtk7612. It appears a skb buffer is full?

This is the section of code that is generating the error. Is there anything I can try? I'm on a 18.04 build?

ccmp_encrypt_skb:

    if (WARN_ON(skb_tailroom(skb) < tail ||
                skb_headroom(skb) < IEEE80211_CCMP_HDR_LEN))
            return -1;

[ 234.629726] ------------[ cut here ]------------
[ 234.639113] WARNING: CPU: 0 PID: 0 at backports-2017-11-01/net/mac80211/wpa.c:431 ieee80211_crypto_ccmp_encrypt+0xe0/0x248 [mac80211]
[ 234.663087] Modules linked in: rt2800soc rt2800pci rt2800mmio rt2800lib pppoe ppp_async rt2x00soc rt2x00pci rt2x00mmio rt2x00lib pppox ppp_generic nf_conntrack_ipv6 mt76x2e mt76x2_common mt76x02_lib mt7603e mt76 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 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 slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat_ftp nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_netlink nf_conntrack_ftp nf_conntrack iptable_mangle iptable_filter ip_tables crc_itu_t crc_ccitt compat arptable_filter arpt_mangle arp_tables xt_set ip_set_list_set ip_set_hash_netiface
[ 234.804092] ip_set_hash_netport ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet 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 ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables tun eeprom_93cx6 leds_gpio gpio_button_hotplug
[ 234.879023] CPU: 0 PID: 0 Comm: swapper Tainted: G W 4.14.131 #0
[ 234.893240] Stack : 80483660 80373fe4 00000000 00000000 803d882c 83807bf4 80427ccc 804278e7
[ 234.909918] 803d4b48 00000000 80483660 000001af 00000123 00000001 83807ba8 a434d50c
[ 234.926591] 00000000 00000000 80480000 00000000 0000011e 00000000 33312e34 30232031
[ 234.943258] 6e757420 00000000 3fff0000 70656520 00000000 00000000 83288754 832d9e40
[ 234.959924] 00000009 000001af 00000123 83807dc0 00000000 801da924 00000000 80480000
[ 234.976589] ...
[ 234.981465] Call Trace:
[ 234.986351] [<8000e4f4>] show_stack+0x74/0x104
[ 234.995229] [<80024ee0>] __warn+0x110/0x118
[ 235.003575] [<80024f7c>] warn_slowpath_null+0x1c/0x30
[ 235.013783] [<83288754>] ieee80211_crypto_ccmp_encrypt+0xe0/0x248 [mac80211]
[ 235.027964] [<832a7a74>] ieee80211_probereq_get+0x6d8/0x1668 [mac80211]
[ 235.041219] ---[ end trace c50314b568e42025 ]---

1 similar comment
@openwrt-bot
Copy link
Author

thelinuxdude:

I see the same warn when using 802.11s over 5GHz mtk7612. It appears a skb buffer is full?

This is the section of code that is generating the error. Is there anything I can try? I'm on a 18.04 build?

ccmp_encrypt_skb:

    if (WARN_ON(skb_tailroom(skb) < tail ||
                skb_headroom(skb) < IEEE80211_CCMP_HDR_LEN))
            return -1;

[ 234.629726] ------------[ cut here ]------------
[ 234.639113] WARNING: CPU: 0 PID: 0 at backports-2017-11-01/net/mac80211/wpa.c:431 ieee80211_crypto_ccmp_encrypt+0xe0/0x248 [mac80211]
[ 234.663087] Modules linked in: rt2800soc rt2800pci rt2800mmio rt2800lib pppoe ppp_async rt2x00soc rt2x00pci rt2x00mmio rt2x00lib pppox ppp_generic nf_conntrack_ipv6 mt76x2e mt76x2_common mt76x02_lib mt7603e mt76 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 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 slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat_ftp nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_netlink nf_conntrack_ftp nf_conntrack iptable_mangle iptable_filter ip_tables crc_itu_t crc_ccitt compat arptable_filter arpt_mangle arp_tables xt_set ip_set_list_set ip_set_hash_netiface
[ 234.804092] ip_set_hash_netport ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet 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 ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables tun eeprom_93cx6 leds_gpio gpio_button_hotplug
[ 234.879023] CPU: 0 PID: 0 Comm: swapper Tainted: G W 4.14.131 #0
[ 234.893240] Stack : 80483660 80373fe4 00000000 00000000 803d882c 83807bf4 80427ccc 804278e7
[ 234.909918] 803d4b48 00000000 80483660 000001af 00000123 00000001 83807ba8 a434d50c
[ 234.926591] 00000000 00000000 80480000 00000000 0000011e 00000000 33312e34 30232031
[ 234.943258] 6e757420 00000000 3fff0000 70656520 00000000 00000000 83288754 832d9e40
[ 234.959924] 00000009 000001af 00000123 83807dc0 00000000 801da924 00000000 80480000
[ 234.976589] ...
[ 234.981465] Call Trace:
[ 234.986351] [<8000e4f4>] show_stack+0x74/0x104
[ 234.995229] [<80024ee0>] __warn+0x110/0x118
[ 235.003575] [<80024f7c>] warn_slowpath_null+0x1c/0x30
[ 235.013783] [<83288754>] ieee80211_crypto_ccmp_encrypt+0xe0/0x248 [mac80211]
[ 235.027964] [<832a7a74>] ieee80211_probereq_get+0x6d8/0x1668 [mac80211]
[ 235.041219] ---[ end trace c50314b568e42025 ]---

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

No branches or pull requests

1 participant