Possibly HW NAT bug on MT7621

Hi, my DLink DIR-860L B1 maybe have troubles with HNAT. Firmware : OpenWrt SNAPSHOT r9433-f20fea9dcd / LuCI Master (git-19.052.76823-1cd72ff)
The error is :

[47740.687415] CPU 1 Unable to handle kernel paging request at virtual address 00486f08, epc == 868d8f94, ra == 868d92f4
[47740.708574] Oops[#1]:
[47740.713088] CPU: 1 PID: 164 Comm: kworker/1:1 Not tainted 4.14.103 #0
[47740.725914] Workqueue: events_power_efficient nf_flow_dnat_port [nf_flow_table]
[47740.740456] task: 87d8c4c0 task.stack: 87edc000
[47740.749459] $ 0   : 00000000 00000001 fffffff5 00000000
[47740.759868] $ 4   : 87edde10 0000000f 00000000 ffff00fe
[47740.767415] CPU 3 Unable to handle kernel paging request at virtual address 1a0067b0, epc == 868d8eb0, ra == 868d8ed8
[47740.770282] $ 8   : 87eddfe0 00007c00 00002b6b 0016aba7
[47740.801777] $12   : 00000000 00000000 ffffffff 00002636
[47740.812180] $16   : 86f1eae0 00486eda 81123a00 86f1ea78
[47740.822581] $20   : 00000000 00000000 80580000 8059f3c0
[47740.832983] $24   : 00000000 8000cf94
[47740.843383] $28   : 87edc000 87edddf8 868e0000 868d92f4
[47740.853783] Hi    : 0000000a
[47740.859504] Lo    : 66666669
[47740.865249] epc   : 868d8f94 nf_flow_table_iterate+0x13c/0x7b0 [nf_flow_table]
[47740.879618] ra    : 868d92f4 nf_flow_table_iterate+0x49c/0x7b0 [nf_flow_table]
[47740.893979] Status: 11007c03 KERNEL EXL IE
[47740.902304] Cause : 40800008 (ExcCode 02)
[47740.910271] BadVA : 00486f08
[47740.915987] PrId  : 0001992f (MIPS 1004Kc)
[47740.924120] Modules linked in: pppoe ppp_async pppox ppp_generic mt76x2e mt76x2_common mt76x02_lib mt76 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_FLOWOFFLOAD xt_DSCP xt_CT xt_CLASSIFY slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv4 nf_conntrack_rtcache iptable_raw iptable_mangle iptable_filter ipt_ECN ip6table_raw ip_tables crc_ccitt compat act_connmark cls_matchall act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw cls_basic
[47741.065550]  sch_tbf sch_htb sch_hfsc sch_ingress ledtrig_usbport cryptodev ip6t_NPT ip6t_MASQUERADE nf_nat_masquerade_ipv6 ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 nf_nat nf_conntrack ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables ifb tun sha512_generic sha256_generic seqiv jitterentropy_rng drbg hmac ghash_generic gf128mul gcm ctr authenc leds_gpio xhci_mtk xhci_plat_hcd xhci_pci xhci_hcd gpio_button_hotplug usbcore nls_base usb_common
[47741.155777] Process kworker/1:1 (pid: 164, threadinfo=87edc000, task=87d8c4c0, tls=00000000)
[47741.172568] Stack : 8057e0c4 00002b6b 805d9d80 8057e1e0 81123d80 80580000 86f1ea80 00486eda
[47741.189215]         0000001b 00000100 00000200 863d8f00 0000000f 00000001 86f1eae0 87e94300
[47741.205849]         81123a00 81126b00 00000000 00000000 80580000 fffffffe 80580000 868d97c0
[47741.222485]         81123a00 81126700 00000000 86f1eae0 86f1eae0 80049f70 81123ba0 81123a18
[47741.239119]         80580000 81123ba0 80580000 fffffffe 87e94300 81123a00 87e94318 81123a18
[47741.255753]         ...
[47741.260640] Call Trace:
[47741.265518] [<868d8f94>] nf_flow_table_iterate+0x13c/0x7b0 [nf_flow_table]
[47741.279203] Code: 00000000  100000d7  00000000 <9222002e> 144000d4  00000000  8e220078  3043000c  146000dd
[47741.298611]
[47741.301571] Oops[#2]:
[47741.302112] ---[ end trace 0051ff771cfd3267 ]---
[47741.306111] CPU: 3 PID: 69 Comm: kworker/3:1 Tainted: G      D         4.14.103 #0

After this error my router is rebooted itself.
The flow offloading functions has been disabled from me after this reboot.

Have you idea for this problem?

P.S.: Sorry for my english.

Might want to consider opening a FS{bug)

1 Like