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

运行一定时间后一定崩溃 #11

Open
Zxilly opened this issue Sep 30, 2020 · 43 comments
Open

运行一定时间后一定崩溃 #11

Zxilly opened this issue Sep 30, 2020 · 43 comments

Comments

@Zxilly
Copy link

Zxilly commented Sep 30, 2020

路由器是袋鼠云,MT7620的芯片

[ 5901.645818] ------------[ cut here ]------------
[ 5901.650586] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:448 dev_watchdog+0x26c/0x274
[ 5901.659037] NETDEV WATCHDOG: eth0 (ralink_soc_eth): transmit queue 0 timed out
[ 5901.666413] Modules linked in: xmurp_ua rt2800soc rt2800mmio rt2800lib pppoe ppp_async iptable_nat xt_state xt_nat xt_conntrack xt_REDIRECT xt_MASQUERADE xt_FLOWOFFLOAD xt_CT rt2x00soc rt2x00mmio rt2x00lib pppox ppp_mppe ppp_generic 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_nat nf_flow_table_hw nf_flow_table nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_pptp nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast nf_conntrack_amanda nf_conntrack mt76x2e mt76x2_common mt76x02_lib mt76 mac80211 ipt_REJECT cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_socket xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_ecn xt_dscp xt_comment xt_TPROXY xt_TCPMSS xt_LOG xt_HL xt_DSCP xt_CLASSIFY ts_kmp ts_fsm ts_bm slhc nf_tproxy_ipv4 nf_socket_ipv4 nf_reject_ipv4 nf_log_ipv4 nf_log_common nf_defrag_ipv4 macvlan iptable_raw iptable_mangle iptable_filter
[ 5901.666692]  ipt_ECN ip_tables crc_ccitt compat asn1_decoder tcp_bbr cryptodev xt_set x_tables 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 crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg sha1_generic ecb authenc arc4 mmc_block mtk_sd mmc_core leds_gpio ohci_platform ohci_hcd fsl_mph_dr_of ehci_platform ehci_fsl ehci_hcd gpio_button_hotplug usbcore nls_base usb_common aead cryptomgr crypto_null crypto_hash
[ 5901.817164] CPU: 0 PID: 0 Comm: swapper Not tainted 5.4.61 #0
[ 5901.823049] Stack : 80560000 80500134 00000000 00000000 804ff304 87c0be14 80533b1c 80533703
[ 5901.831601]         804b0eb4 00000000 806933cc 80550000 00200000 00000001 87c0bdc8 c46ebe46
[ 5901.840148]         00000000 00000000 806c0000 00000000 746e6961 0000010f 362e342e 30232031
[ 5901.848695]         00000000 00000125 00000000 000c780c 00000000 00000009 00000000 80359194
[ 5901.857242]         00000009 80550000 00200000 00000122 00000000 8028cb78 00000000 80690000
[ 5901.865790]         ...
[ 5901.868300] Call Trace:
[ 5901.870826] [<8000b470>] show_stack+0x30/0x100
[ 5901.875390] [<80025848>] __warn+0xc0/0x10c
[ 5901.879591] [<80025920>] warn_slowpath_fmt+0x8c/0xac
[ 5901.884682] [<80359194>] dev_watchdog+0x26c/0x274
[ 5901.889521] [<8006759c>] call_timer_fn.isra.34+0x20/0x90
[ 5901.894965] [<800677b4>] run_timer_softirq+0x1a8/0x1f4
[ 5901.900247] [<80432640>] __do_softirq+0x110/0x298
[ 5901.905071] [<80005f70>] except_vec_vi_end+0xb8/0xc4
[ 5901.910157] [<8043240c>] r4k_wait_irqoff+0x18/0x24
[ 5901.915065] ---[ end trace f92f4b466cc69179 ]---
[ 5901.919807] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
[ 5901.926409] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000067
[ 5901.932831] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=06848000, max=1024, ctx=431, dtx=409, fdx=409, next=431
[ 5901.944120] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=06a28000, max=1024, calc=305, drx=307
[ 5908.100036] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
[ 5908.106662] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000067
[ 5908.113105] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=06830000, max=1024, ctx=768, dtx=0, fdx=0, next=768
[ 5908.124073] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=06a28000, max=1024, calc=260, drx=261
[ 5920.245871] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
[ 5920.252524] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000067
[ 5920.259079] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=06830000, max=1024, ctx=768, dtx=0, fdx=0, next=768
[ 5920.270040] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=06848000, max=1024, calc=494, drx=496
[ 5922.153486] rkp-ua: Stopped.
[ 5922.674070] rkp-ua: Started, version 99
[ 5922.678060] rkp-ua: nf_register_hook returnd 0.
[ 5922.682720] rkp-ua: autocapture=y, mark_capture=0x100, mark_ack=0x200
[ 5922.689322] rkp-ua: str_preserve: 0
[ 5922.693174] rkp-ua: time_keepalive=1200, len_ua=2
[ 5922.698137] rkp-ua: verbose=n, debug=n
[ 5922.702095] rkp-ua: str_preserve: 0
[ 5922.705782] str_ua_rkp: RKP/99.0
[ 5933.189652] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
[ 5933.196269] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000067
[ 5933.202715] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=06a28000, max=1024, ctx=768, dtx=0, fdx=0, next=768
[ 5933.213669] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0522c000, max=1024, calc=347, drx=349
[ 5951.665653] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
[ 5951.672266] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000067
[ 5951.678707] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=06a28000, max=1024, ctx=768, dtx=0, fdx=0, next=768
[ 5951.689650] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=06830000, max=1024, calc=396, drx=397
@CHN-beta
Copy link
Owner

没错,dev分支在我自己路由器上,也是会运行一段时间后就会挂掉。我暂时没有空去找问题在哪里。如果你们学校查得不是太严,建议用master分支。如果你感兴趣,也可以帮我找找bug在哪里,肥肠感谢。

@XingNian-www
Copy link

太惨了,似乎性能越强崩溃越快,我软路由上大概10分钟左右就崩溃了,但是硬路由大概1天崩溃一次,被迫转到master分支

@XingNian-www
Copy link

没错,dev分支在我自己路由器上,也是会运行一段时间后就会挂掉。我暂时没有空去找问题在哪里。如果你们学校查得不是太严,建议用master分支。如果你感兴趣,也可以帮我找找bug在哪里,肥肠感谢。

崩溃后重启防火墙无效,重启网络无效,路由自身无法联网,不知道能提供多少帮助

@Zxilly
Copy link
Author

Zxilly commented Oct 1, 2020

没错,dev分支在我自己路由器上,也是会运行一段时间后就会挂掉。我暂时没有空去找问题在哪里。如果你们学校查得不是太严,建议用master分支。如果你感兴趣,也可以帮我找找bug在哪里,肥肠感谢。

崩溃后重启防火墙无效,重启网络无效,路由自身无法联网,不知道能提供多少帮助

重新挂载eth0可行,但是我也不知道为啥

@CHN-beta
Copy link
Owner

CHN-beta commented Oct 1, 2020

没错,dev分支在我自己路由器上,也是会运行一段时间后就会挂掉。我暂时没有空去找问题在哪里。如果你们学校查得不是太严,建议用master分支。如果你感兴趣,也可以帮我找找bug在哪里,肥肠感谢。

崩溃后重启防火墙无效,重启网络无效,路由自身无法联网,不知道能提供多少帮助

我的路由器崩溃后自动重启就一切正常了。

@XingNian-www
Copy link

没错,dev分支在我自己路由器上,也是会运行一段时间后就会挂掉。我暂时没有空去找问题在哪里。如果你们学校查得不是太严,建议用master分支。如果你感兴趣,也可以帮我找找bug在哪里,肥肠感谢。

崩溃后重启防火墙无效,重启网络无效,路由自身无法联网,不知道能提供多少帮助

我的路由器崩溃后自动重启就一切正常了。

我路由器根本不会自动重启..炸了就一直没有网络

@CHN-beta
Copy link
Owner

CHN-beta commented Oct 1, 2020

没错,dev分支在我自己路由器上,也是会运行一段时间后就会挂掉。我暂时没有空去找问题在哪里。如果你们学校查得不是太严,建议用master分支。如果你感兴趣,也可以帮我找找bug在哪里,肥肠感谢。

崩溃后重启防火墙无效,重启网络无效,路由自身无法联网,不知道能提供多少帮助

我的路由器崩溃后自动重启就一切正常了。

我路由器根本不会自动重启..炸了就一直没有网络

可以试着改一下 kernel.panic 参数,应该就可以炸了之后自动重启了。

参考 https://www.techrepublic.com/blog/linux-and-open-source/auto-reboot-linux-after-a-kernel-panic/

@Zxilly
Copy link
Author

Zxilly commented Oct 1, 2020

切换到了master,照样炸。。。

Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.740768] ------------[ cut here ]------------
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.745539] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:448 dev_watchdog+0x26c/0x274
Thu Oct  1 14:33:24 2020 kern.info kernel: [ 7797.754005] NETDEV WATCHDOG: eth0 (ralink_soc_eth): transmit queue 0 timed out
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.761387] Modules linked in: rt2800soc rt2800mmio rt2800lib pppoe ppp_async iptable_nat xt_state xt_nat xt_conntrack xt_REDIRECT xt_MASQUERADE xt_FLOWOFFLOAD xt_CT rt2x00soc rt2x00mmio rt2x00lib pppox ppp_mppe ppp_generic 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_nat nf_flow_table_hw nf_flow_table nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_pptp nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast nf_conntrack_amanda nf_conntrack mt76x2e mt76x2_common mt76x02_lib mt76 mac80211 ipt_REJECT cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_socket xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_ecn xt_dscp xt_comment xt_TPROXY xt_TCPMSS xt_LOG xt_HL xt_DSCP xt_CLASSIFY ts_kmp ts_fsm ts_bm slhc nf_tproxy_ipv4 nf_socket_ipv4 nf_reject_ipv4 nf_log_ipv4 nf_log_common nf_defrag_ipv4 macvlan iptable_raw iptable_mangle iptable_filter ipt_ECN
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.761664]  ip_tables crc_ccitt compat asn1_decoder xmurp_ua tcp_bbr cryptodev xt_set x_tables 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 crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg sha1_generic ecb authenc arc4 mmc_block mtk_sd mmc_core leds_gpio ohci_platform ohci_hcd fsl_mph_dr_of ehci_platform ehci_fsl ehci_hcd gpio_button_hotplug usbcore nls_base usb_common aead cryptomgr crypto_null crypto_hash
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.912132] CPU: 0 PID: 0 Comm: swapper Not tainted 5.4.61 #0
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.918004] Stack : 80560000 80500134 00000000 00000000 804ff304 87c0be14 80533b1c 80533703
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.926551]         804b0eb4 00000000 806933cc 80550000 00200000 00000001 87c0bdc8 ca63742a
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.935097]         00000000 00000000 806c0000 00000000 746e6961 0000012c 362e342e 30232031
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.943650]         00000000 00000183 00000000 000deb04 00000000 00000009 00000000 80359194
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.952203]         00000009 80550000 00200000 00000122 00000000 8028cb78 00000000 80690000
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.960750]         ...
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.963254] Call Trace:
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.965779] [<8000b470>] show_stack+0x30/0x100
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.970348] [<80025848>] __warn+0xc0/0x10c
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.974548] [<80025920>] warn_slowpath_fmt+0x8c/0xac
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.979635] [<80359194>] dev_watchdog+0x26c/0x274
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.984474] [<8006759c>] call_timer_fn.isra.34+0x20/0x90
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.989922] [<800677b4>] run_timer_softirq+0x1a8/0x1f4
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.995204] [<80432640>] __do_softirq+0x110/0x298
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7798.000026] [<80005f70>] except_vec_vi_end+0xb8/0xc4
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7798.005113] [<8043240c>] r4k_wait_irqoff+0x18/0x24
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7798.010021] ---[ end trace a7ff6549678831ff ]---
Thu Oct  1 14:33:24 2020 kern.err kernel: [ 7798.014755] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
Thu Oct  1 14:33:24 2020 kern.info kernel: [ 7798.021345] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000067
Thu Oct  1 14:33:24 2020 kern.info kernel: [ 7798.027764] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=06404000, max=1024, ctx=535, dtx=531, fdx=531, next=535
Thu Oct  1 14:33:24 2020 kern.info kernel: [ 7798.039056] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=06620000, max=1024, calc=451, drx=466
Thu Oct  1 14:33:35 2020 kern.err kernel: [ 7802.089089] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
Thu Oct  1 14:33:35 2020 kern.info kernel: [ 7802.095697] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000067
Thu Oct  1 14:33:35 2020 kern.info kernel: [ 7802.102137] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=06404000, max=1024, ctx=768, dtx=0, fdx=0, next=768
Thu Oct  1 14:33:35 2020 kern.info kernel: [ 7802.113086] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=06430000, max=1024, calc=166, drx=167
Thu Oct  1 14:33:38 2020 user.notice root: 【Dr.COM网页认证】尚未登录
Thu Oct  1 14:33:45 2020 kern.err kernel: [ 7807.593383] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
Thu Oct  1 14:33:45 2020 kern.info kernel: [ 7807.600035] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000067
Thu Oct  1 14:33:45 2020 kern.info kernel: [ 7807.606484] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=06404000, max=1024, ctx=768, dtx=0, fdx=0, next=768
Thu Oct  1 14:33:45 2020 kern.info kernel: [ 7807.617442] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=06620000, max=1024, calc=147, drx=149

@CHN-beta
Copy link
Owner

CHN-beta commented Oct 1, 2020

切换到了master,照样炸。。。

Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.740768] ------------[ cut here ]------------
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.745539] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:448 dev_watchdog+0x26c/0x274
Thu Oct  1 14:33:24 2020 kern.info kernel: [ 7797.754005] NETDEV WATCHDOG: eth0 (ralink_soc_eth): transmit queue 0 timed out
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.761387] Modules linked in: rt2800soc rt2800mmio rt2800lib pppoe ppp_async iptable_nat xt_state xt_nat xt_conntrack xt_REDIRECT xt_MASQUERADE xt_FLOWOFFLOAD xt_CT rt2x00soc rt2x00mmio rt2x00lib pppox ppp_mppe ppp_generic 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_nat nf_flow_table_hw nf_flow_table nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_pptp nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast nf_conntrack_amanda nf_conntrack mt76x2e mt76x2_common mt76x02_lib mt76 mac80211 ipt_REJECT cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_socket xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_ecn xt_dscp xt_comment xt_TPROXY xt_TCPMSS xt_LOG xt_HL xt_DSCP xt_CLASSIFY ts_kmp ts_fsm ts_bm slhc nf_tproxy_ipv4 nf_socket_ipv4 nf_reject_ipv4 nf_log_ipv4 nf_log_common nf_defrag_ipv4 macvlan iptable_raw iptable_mangle iptable_filter ipt_ECN
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.761664]  ip_tables crc_ccitt compat asn1_decoder xmurp_ua tcp_bbr cryptodev xt_set x_tables 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 crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg sha1_generic ecb authenc arc4 mmc_block mtk_sd mmc_core leds_gpio ohci_platform ohci_hcd fsl_mph_dr_of ehci_platform ehci_fsl ehci_hcd gpio_button_hotplug usbcore nls_base usb_common aead cryptomgr crypto_null crypto_hash
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.912132] CPU: 0 PID: 0 Comm: swapper Not tainted 5.4.61 #0
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.918004] Stack : 80560000 80500134 00000000 00000000 804ff304 87c0be14 80533b1c 80533703
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.926551]         804b0eb4 00000000 806933cc 80550000 00200000 00000001 87c0bdc8 ca63742a
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.935097]         00000000 00000000 806c0000 00000000 746e6961 0000012c 362e342e 30232031
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.943650]         00000000 00000183 00000000 000deb04 00000000 00000009 00000000 80359194
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.952203]         00000009 80550000 00200000 00000122 00000000 8028cb78 00000000 80690000
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.960750]         ...
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.963254] Call Trace:
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.965779] [<8000b470>] show_stack+0x30/0x100
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.970348] [<80025848>] __warn+0xc0/0x10c
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.974548] [<80025920>] warn_slowpath_fmt+0x8c/0xac
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.979635] [<80359194>] dev_watchdog+0x26c/0x274
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.984474] [<8006759c>] call_timer_fn.isra.34+0x20/0x90
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.989922] [<800677b4>] run_timer_softirq+0x1a8/0x1f4
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.995204] [<80432640>] __do_softirq+0x110/0x298
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7798.000026] [<80005f70>] except_vec_vi_end+0xb8/0xc4
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7798.005113] [<8043240c>] r4k_wait_irqoff+0x18/0x24
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7798.010021] ---[ end trace a7ff6549678831ff ]---
Thu Oct  1 14:33:24 2020 kern.err kernel: [ 7798.014755] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
Thu Oct  1 14:33:24 2020 kern.info kernel: [ 7798.021345] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000067
Thu Oct  1 14:33:24 2020 kern.info kernel: [ 7798.027764] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=06404000, max=1024, ctx=535, dtx=531, fdx=531, next=535
Thu Oct  1 14:33:24 2020 kern.info kernel: [ 7798.039056] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=06620000, max=1024, calc=451, drx=466
Thu Oct  1 14:33:35 2020 kern.err kernel: [ 7802.089089] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
Thu Oct  1 14:33:35 2020 kern.info kernel: [ 7802.095697] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000067
Thu Oct  1 14:33:35 2020 kern.info kernel: [ 7802.102137] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=06404000, max=1024, ctx=768, dtx=0, fdx=0, next=768
Thu Oct  1 14:33:35 2020 kern.info kernel: [ 7802.113086] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=06430000, max=1024, calc=166, drx=167
Thu Oct  1 14:33:38 2020 user.notice root: 【Dr.COM网页认证】尚未登录
Thu Oct  1 14:33:45 2020 kern.err kernel: [ 7807.593383] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
Thu Oct  1 14:33:45 2020 kern.info kernel: [ 7807.600035] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000067
Thu Oct  1 14:33:45 2020 kern.info kernel: [ 7807.606484] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=06404000, max=1024, ctx=768, dtx=0, fdx=0, next=768
Thu Oct  1 14:33:45 2020 kern.info kernel: [ 7807.617442] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=06620000, max=1024, calc=147, drx=149

那这个可能不是我的锅……不要加载我的模块,看会不会炸

@Zxilly
Copy link
Author

Zxilly commented Oct 1, 2020

切换到了master,照样炸。。。

Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.740768] ------------[ cut here ]------------
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.745539] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:448 dev_watchdog+0x26c/0x274
Thu Oct  1 14:33:24 2020 kern.info kernel: [ 7797.754005] NETDEV WATCHDOG: eth0 (ralink_soc_eth): transmit queue 0 timed out
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.761387] Modules linked in: rt2800soc rt2800mmio rt2800lib pppoe ppp_async iptable_nat xt_state xt_nat xt_conntrack xt_REDIRECT xt_MASQUERADE xt_FLOWOFFLOAD xt_CT rt2x00soc rt2x00mmio rt2x00lib pppox ppp_mppe ppp_generic 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_nat nf_flow_table_hw nf_flow_table nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_pptp nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast nf_conntrack_amanda nf_conntrack mt76x2e mt76x2_common mt76x02_lib mt76 mac80211 ipt_REJECT cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_socket xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_ecn xt_dscp xt_comment xt_TPROXY xt_TCPMSS xt_LOG xt_HL xt_DSCP xt_CLASSIFY ts_kmp ts_fsm ts_bm slhc nf_tproxy_ipv4 nf_socket_ipv4 nf_reject_ipv4 nf_log_ipv4 nf_log_common nf_defrag_ipv4 macvlan iptable_raw iptable_mangle iptable_filter ipt_ECN
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.761664]  ip_tables crc_ccitt compat asn1_decoder xmurp_ua tcp_bbr cryptodev xt_set x_tables 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 crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg sha1_generic ecb authenc arc4 mmc_block mtk_sd mmc_core leds_gpio ohci_platform ohci_hcd fsl_mph_dr_of ehci_platform ehci_fsl ehci_hcd gpio_button_hotplug usbcore nls_base usb_common aead cryptomgr crypto_null crypto_hash
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.912132] CPU: 0 PID: 0 Comm: swapper Not tainted 5.4.61 #0
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.918004] Stack : 80560000 80500134 00000000 00000000 804ff304 87c0be14 80533b1c 80533703
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.926551]         804b0eb4 00000000 806933cc 80550000 00200000 00000001 87c0bdc8 ca63742a
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.935097]         00000000 00000000 806c0000 00000000 746e6961 0000012c 362e342e 30232031
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.943650]         00000000 00000183 00000000 000deb04 00000000 00000009 00000000 80359194
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.952203]         00000009 80550000 00200000 00000122 00000000 8028cb78 00000000 80690000
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.960750]         ...
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.963254] Call Trace:
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.965779] [<8000b470>] show_stack+0x30/0x100
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.970348] [<80025848>] __warn+0xc0/0x10c
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.974548] [<80025920>] warn_slowpath_fmt+0x8c/0xac
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.979635] [<80359194>] dev_watchdog+0x26c/0x274
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.984474] [<8006759c>] call_timer_fn.isra.34+0x20/0x90
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.989922] [<800677b4>] run_timer_softirq+0x1a8/0x1f4
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.995204] [<80432640>] __do_softirq+0x110/0x298
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7798.000026] [<80005f70>] except_vec_vi_end+0xb8/0xc4
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7798.005113] [<8043240c>] r4k_wait_irqoff+0x18/0x24
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7798.010021] ---[ end trace a7ff6549678831ff ]---
Thu Oct  1 14:33:24 2020 kern.err kernel: [ 7798.014755] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
Thu Oct  1 14:33:24 2020 kern.info kernel: [ 7798.021345] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000067
Thu Oct  1 14:33:24 2020 kern.info kernel: [ 7798.027764] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=06404000, max=1024, ctx=535, dtx=531, fdx=531, next=535
Thu Oct  1 14:33:24 2020 kern.info kernel: [ 7798.039056] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=06620000, max=1024, calc=451, drx=466
Thu Oct  1 14:33:35 2020 kern.err kernel: [ 7802.089089] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
Thu Oct  1 14:33:35 2020 kern.info kernel: [ 7802.095697] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000067
Thu Oct  1 14:33:35 2020 kern.info kernel: [ 7802.102137] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=06404000, max=1024, ctx=768, dtx=0, fdx=0, next=768
Thu Oct  1 14:33:35 2020 kern.info kernel: [ 7802.113086] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=06430000, max=1024, calc=166, drx=167
Thu Oct  1 14:33:38 2020 user.notice root: 【Dr.COM网页认证】尚未登录
Thu Oct  1 14:33:45 2020 kern.err kernel: [ 7807.593383] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
Thu Oct  1 14:33:45 2020 kern.info kernel: [ 7807.600035] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000067
Thu Oct  1 14:33:45 2020 kern.info kernel: [ 7807.606484] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=06404000, max=1024, ctx=768, dtx=0, fdx=0, next=768
Thu Oct  1 14:33:45 2020 kern.info kernel: [ 7807.617442] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=06620000, max=1024, calc=147, drx=149

那这个可能不是我的锅……不要加载我的模块,看会不会炸

不加载不会挂,只要把rmmod xmurp-ua写在开机脚本里就啥事没有。。。

@CHN-beta
Copy link
Owner

CHN-beta commented Oct 1, 2020

切换到了master,照样炸。。。

Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.740768] ------------[ cut here ]------------
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.745539] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:448 dev_watchdog+0x26c/0x274
Thu Oct  1 14:33:24 2020 kern.info kernel: [ 7797.754005] NETDEV WATCHDOG: eth0 (ralink_soc_eth): transmit queue 0 timed out
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.761387] Modules linked in: rt2800soc rt2800mmio rt2800lib pppoe ppp_async iptable_nat xt_state xt_nat xt_conntrack xt_REDIRECT xt_MASQUERADE xt_FLOWOFFLOAD xt_CT rt2x00soc rt2x00mmio rt2x00lib pppox ppp_mppe ppp_generic 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_nat nf_flow_table_hw nf_flow_table nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_pptp nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast nf_conntrack_amanda nf_conntrack mt76x2e mt76x2_common mt76x02_lib mt76 mac80211 ipt_REJECT cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_socket xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_ecn xt_dscp xt_comment xt_TPROXY xt_TCPMSS xt_LOG xt_HL xt_DSCP xt_CLASSIFY ts_kmp ts_fsm ts_bm slhc nf_tproxy_ipv4 nf_socket_ipv4 nf_reject_ipv4 nf_log_ipv4 nf_log_common nf_defrag_ipv4 macvlan iptable_raw iptable_mangle iptable_filter ipt_ECN
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.761664]  ip_tables crc_ccitt compat asn1_decoder xmurp_ua tcp_bbr cryptodev xt_set x_tables 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 crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg sha1_generic ecb authenc arc4 mmc_block mtk_sd mmc_core leds_gpio ohci_platform ohci_hcd fsl_mph_dr_of ehci_platform ehci_fsl ehci_hcd gpio_button_hotplug usbcore nls_base usb_common aead cryptomgr crypto_null crypto_hash
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.912132] CPU: 0 PID: 0 Comm: swapper Not tainted 5.4.61 #0
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.918004] Stack : 80560000 80500134 00000000 00000000 804ff304 87c0be14 80533b1c 80533703
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.926551]         804b0eb4 00000000 806933cc 80550000 00200000 00000001 87c0bdc8 ca63742a
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.935097]         00000000 00000000 806c0000 00000000 746e6961 0000012c 362e342e 30232031
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.943650]         00000000 00000183 00000000 000deb04 00000000 00000009 00000000 80359194
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.952203]         00000009 80550000 00200000 00000122 00000000 8028cb78 00000000 80690000
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.960750]         ...
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.963254] Call Trace:
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.965779] [<8000b470>] show_stack+0x30/0x100
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.970348] [<80025848>] __warn+0xc0/0x10c
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.974548] [<80025920>] warn_slowpath_fmt+0x8c/0xac
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.979635] [<80359194>] dev_watchdog+0x26c/0x274
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.984474] [<8006759c>] call_timer_fn.isra.34+0x20/0x90
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.989922] [<800677b4>] run_timer_softirq+0x1a8/0x1f4
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7797.995204] [<80432640>] __do_softirq+0x110/0x298
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7798.000026] [<80005f70>] except_vec_vi_end+0xb8/0xc4
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7798.005113] [<8043240c>] r4k_wait_irqoff+0x18/0x24
Thu Oct  1 14:33:24 2020 kern.warn kernel: [ 7798.010021] ---[ end trace a7ff6549678831ff ]---
Thu Oct  1 14:33:24 2020 kern.err kernel: [ 7798.014755] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
Thu Oct  1 14:33:24 2020 kern.info kernel: [ 7798.021345] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000067
Thu Oct  1 14:33:24 2020 kern.info kernel: [ 7798.027764] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=06404000, max=1024, ctx=535, dtx=531, fdx=531, next=535
Thu Oct  1 14:33:24 2020 kern.info kernel: [ 7798.039056] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=06620000, max=1024, calc=451, drx=466
Thu Oct  1 14:33:35 2020 kern.err kernel: [ 7802.089089] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
Thu Oct  1 14:33:35 2020 kern.info kernel: [ 7802.095697] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000067
Thu Oct  1 14:33:35 2020 kern.info kernel: [ 7802.102137] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=06404000, max=1024, ctx=768, dtx=0, fdx=0, next=768
Thu Oct  1 14:33:35 2020 kern.info kernel: [ 7802.113086] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=06430000, max=1024, calc=166, drx=167
Thu Oct  1 14:33:38 2020 user.notice root: 【Dr.COM网页认证】尚未登录
Thu Oct  1 14:33:45 2020 kern.err kernel: [ 7807.593383] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
Thu Oct  1 14:33:45 2020 kern.info kernel: [ 7807.600035] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000067
Thu Oct  1 14:33:45 2020 kern.info kernel: [ 7807.606484] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=06404000, max=1024, ctx=768, dtx=0, fdx=0, next=768
Thu Oct  1 14:33:45 2020 kern.info kernel: [ 7807.617442] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=06620000, max=1024, calc=147, drx=149

那这个可能不是我的锅……不要加载我的模块,看会不会炸

不加载不会挂,只要把rmmod xmurp-ua写在开机脚本里就啥事没有。。。

有趣,我还是第一次见master也能炸……

问一下,编译时是用对应的sdk编译的吗?安装插件时是否有提示内核版本不匹配?

@XingNian-www
Copy link

我这也是master照炸不误,十几分钟就炸了
内核是5.4.61
插件是编译固件时直接编译进去的
之前硬路由用的时候没炸过,但是当时是4.x的内核版本
得多测试几次..

@CHN-beta
Copy link
Owner

CHN-beta commented Oct 1, 2020

我这也是master照炸不误,十几分钟就炸了
内核是5.4.61
插件是编译固件时直接编译进去的
之前硬路由用的时候没炸过,但是当时是4.x的内核版本
得多测试几次..

这样看来,可能是5.x的原因……我自己的路由器用的4.14的内核,master没事,dev大概一天炸一两次。

我什么时候有空,试试在虚拟机里5.x内核能不能复现吧。如果可以复现的话,打大量log,应该就可以找到问题。

但问题是,没空……

@Zxilly
Copy link
Author

Zxilly commented Oct 1, 2020

我diff一下4和5的net/sched/sch_generic.c看看差异

@XingNian-www
Copy link

我这也是master照炸不误,十几分钟就炸了
内核是5.4.61
插件是编译固件时直接编译进去的
之前硬路由用的时候没炸过,但是当时是4.x的内核版本
得多测试几次..

这样看来,可能是5.x的原因……我自己的路由器用的4.14的内核,master没事,dev大概一天炸一两次。

我什么时候有空,试试在虚拟机里5.x内核能不能复现吧。如果可以复现的话,打大量log,应该就可以找到问题。

但问题是,没空……

软路由4.19依然会炸,好像是网卡直接炸了,直接看不到网卡

@Zxilly
Copy link
Author

Zxilly commented Oct 2, 2020

我把内核降到了4.14,还是炸了。。。

[ 3062.966283] ------------[ cut here ]------------
[ 3062.971038] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:320 dev_watchdog+0x164/0x274
[ 3062.979493] NETDEV WATCHDOG: eth0 (mtk_soc_eth): transmit queue 0 timed out
[ 3062.986603] Modules linked in: rt2800soc rt2800mmio rt2800lib pppoe ppp_async rt2x00soc rt2x00mmio rt2x00lib pppox ppp_mppe ppp_generic nf_nat_pptp nf_conntrack_pptp nf_conntrack_ipv6 mt76x2e mt76x2_common mt76x02_lib 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 xt_CT 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_nat nf_log_ipv4 nf_log_common nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_proto_gre
[ 3063.060125]  nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast ts_kmp nf_conntrack_amanda nf_conntrack macvlan iptable_raw iptable_mangle iptable_filter ip_tables crc_ccitt compat xmurp_ua tcp_bbr cryptodev xt_set x_tables 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 shortcut_fe_ipv6 shortcut_fe crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg sha1_generic ecb authenc mmc_block mtk_sd mmc_core leds_gpio ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base
[ 3063.132297]  usb_common aead cryptomgr crypto_null crypto_hash [last unloaded: fast_classifier]
[ 3063.141211] CPU: 0 PID: 0 Comm: swapper Not tainted 4.14.180 #0
[ 3063.147253] Stack : 80550000 805025fc 00000000 00000000 804d1a4c 87c07e34 8052ddec 8052d9e7
[ 3063.155799]         804cdaa0 00000000 80683660 00000140 805428b4 00000001 87c07de8 ac07f5ad
[ 3063.164353]         00000000 00000000 80680000 00006af8 00000000 00000132 00000007 00000000
[ 3063.172899]         00000000 80530000 0002279b 00000000 00000000 00000000 804fc85c 80337ae4
[ 3063.181444]         00000009 00000140 805428b4 80542874 00000002 80279c8c 00000000 80680000
[ 3063.189990]         ...
[ 3063.192486] Call Trace:
[ 3063.195003] [<8000ae70>] show_stack+0x58/0x100
[ 3063.199573] [<80023030>] __warn+0xe4/0x118
[ 3063.203756] [<80023094>] warn_slowpath_fmt+0x30/0x3c
[ 3063.208842] [<80337ae4>] dev_watchdog+0x164/0x274
[ 3063.213646] [<800603f0>] call_timer_fn.isra.4+0x24/0x84
[ 3063.218995] [<800605c4>] run_timer_softirq+0x174/0x1ec
[ 3063.224259] [<804327b8>] __do_softirq+0xe8/0x2bc
[ 3063.228991] [<80005fb0>] except_vec_vi_end+0xb8/0xc4
[ 3063.234057] [<8000792c>] r4k_wait_irqoff+0x18/0x24
[ 3063.238961] ---[ end trace ce58a1f262039ce8 ]---
[ 3063.243682] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[ 3063.250004] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000067
[ 3063.256145] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=06898000, max=1024, ctx=693, dtx=605, fdx=605, next=693
[ 3063.267170] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0689c000, max=1024, calc=940, drx=951
[ 3067.139724] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[ 3067.146060] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000067
[ 3067.152227] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0716c000, max=1024, ctx=767, dtx=0, fdx=0, next=767
[ 3067.162895] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=05c0c000, max=1024, calc=193, drx=195
[ 3073.680187] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[ 3073.686524] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000067
[ 3073.692691] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0716c000, max=1024, ctx=767, dtx=0, fdx=0, next=767
[ 3073.703367] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=06880000, max=1024, calc=218, drx=219

@Zxilly
Copy link
Author

Zxilly commented Oct 2, 2020

而且还更加频繁了。。。

   83.343243] xmurp-ua: Successfully modified 4 packages, faild to modify 0 packages, 0 packages matched mark, 0 packages not modifiable.
[  161.327165] xmurp-ua: Successfully modified 8 packages, faild to modify 0 packages, 0 packages matched mark, 0 packages not modifiable.
[  161.418073] xmurp-ua: Successfully modified 16 packages, faild to modify 0 packages, 0 packages matched mark, 0 packages not modifiable.
[  161.527437] xmurp-ua: Successfully modified 32 packages, faild to modify 0 packages, 0 packages matched mark, 0 packages not modifiable.
[  186.498007] xmurp-ua: Successfully modified 64 packages, faild to modify 0 packages, 0 packages matched mark, 0 packages not modifiable.
[  212.417369] ------------[ cut here ]------------
[  212.422133] WARNING: CPU: 0 PID: 3478 at net/sched/sch_generic.c:320 dev_watchdog+0x164/0x274
[  212.430851] NETDEV WATCHDOG: eth0 (mtk_soc_eth): transmit queue 0 timed out
[  212.437962] Modules linked in: rt2800soc rt2800mmio rt2800lib pppoe ppp_async rt2x00soc rt2x00mmio rt2x00lib pppox ppp_mppe ppp_generic nf_nat_pptp nf_conntrack_pptp nf_conntrack_ipv6 mt76x2e mt76x2_common mt76x02_lib 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 xt_CT 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_nat nf_log_ipv4 nf_log_common nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_proto_gre
[  212.511488]  nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast ts_kmp nf_conntrack_amanda nf_conntrack macvlan iptable_raw iptable_mangle iptable_filter ip_tables crc_ccitt compat xmurp_ua tcp_bbr cryptodev xt_set x_tables 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 shortcut_fe_ipv6 shortcut_fe crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg sha1_generic ecb authenc mmc_block mtk_sd mmc_core leds_gpio ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base
[  212.583667]  usb_common aead cryptomgr crypto_null crypto_hash [last unloaded: fast_classifier]
[  212.592581] CPU: 0 PID: 3478 Comm: modprobe Not tainted 4.14.180 #0
[  212.598981] Stack : 80550000 805025fc 00000000 00000000 804d1a4c 87c07e34 87dfac1c 8052d9e7
[  212.607531]         804cdaa0 00000d96 80683660 00000140 805428b4 00000001 87c07de8 69d0710f
[  212.616069]         00000000 00000000 80680000 00006800 00000000 0000012b 00000007 00000000
[  212.624614]         00000000 80530000 00090ac5 00000000 80000000 00000000 804fc85c 80337ae4
[  212.633162]         00000009 00000140 805428b4 80542874 00000002 80279c8c 00000000 80680000
[  212.641715]         ...
[  212.644211] Call Trace:
[  212.646727] [<8000ae70>] show_stack+0x58/0x100
[  212.651307] [<80023030>] __warn+0xe4/0x118
[  212.655492] [<80023094>] warn_slowpath_fmt+0x30/0x3c
[  212.660579] [<80337ae4>] dev_watchdog+0x164/0x274
[  212.665383] [<800603f0>] call_timer_fn.isra.4+0x24/0x84
[  212.670732] [<800605c4>] run_timer_softirq+0x174/0x1ec
[  212.675998] [<804327b8>] __do_softirq+0xe8/0x2bc
[  212.680730] [<80005fb0>] except_vec_vi_end+0xb8/0xc4
[  212.685813] [<800f50c4>] mem_cgroup_commit_charge+0x494/0x4ec
[  212.691710] [<800d1c3c>] handle_mm_fault+0x4c4/0xdb4
[  212.696790] [<800126ec>] __do_page_fault+0x19c/0x4e4
[  212.701882] [<80018a30>] tlb_do_page_fault_1+0x10c/0x11c
[  212.707319] ---[ end trace 45ad82f1fd8ff5b5 ]---

这是第三次

[   95.550190] ------------[ cut here ]------------
[   95.554950] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:320 dev_watchdog+0x164/0x274
[   95.563404] NETDEV WATCHDOG: eth0 (mtk_soc_eth): transmit queue 0 timed out
[   95.570517] Modules linked in: rt2800soc rt2800mmio rt2800lib pppoe ppp_async rt2x00soc rt2x00mmio rt2x00lib pppox ppp_mppe ppp_generic nf_nat_pptp nf_conntrack_pptp nf_conntrack_ipv6 mt76x2e mt76x2_common mt76x02_lib 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 xt_CT 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_nat nf_log_ipv4 nf_log_common nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_proto_gre
[   95.644049]  nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast ts_kmp nf_conntrack_amanda nf_conntrack macvlan iptable_raw iptable_mangle iptable_filter ip_tables crc_ccitt compat xmurp_ua tcp_bbr cryptodev xt_set x_tables 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 shortcut_fe_ipv6 shortcut_fe crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg sha1_generic ecb authenc mmc_block mtk_sd mmc_core leds_gpio ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base
[   95.716228]  usb_common aead cryptomgr crypto_null crypto_hash [last unloaded: fast_classifier]
[   95.725142] CPU: 0 PID: 0 Comm: swapper Not tainted 4.14.180 #0
[   95.731191] Stack : 80550000 805025fc 00000000 00000000 804d1a4c 87c07e34 8052ddec 8052d9e7
[   95.739730]         804cdaa0 00000000 80683660 00000140 805428b4 00000001 87c07de8 ac07f5ad
[   95.748276]         00000000 00000000 80680000 000065b8 00000000 00000127 00000007 00000000
[   95.756820]         00000000 80530000 000b1096 00000000 00000000 00000000 804fc85c 80337ae4
[   95.765372]         00000009 00000140 805428b4 80542874 00000002 80279c8c 00000000 80680000
[   95.773925]         ...
[   95.776421] Call Trace:
[   95.778938] [<8000ae70>] show_stack+0x58/0x100
[   95.783508] [<80023030>] __warn+0xe4/0x118
[   95.787692] [<80023094>] warn_slowpath_fmt+0x30/0x3c
[   95.792776] [<80337ae4>] dev_watchdog+0x164/0x274
[   95.797581] [<800603f0>] call_timer_fn.isra.4+0x24/0x84
[   95.802929] [<800605c4>] run_timer_softirq+0x174/0x1ec
[   95.808194] [<804327b8>] __do_softirq+0xe8/0x2bc
[   95.812926] [<80005fb0>] except_vec_vi_end+0xb8/0xc4
[   95.817992] [<8000792c>] r4k_wait_irqoff+0x18/0x24
[   95.822896] ---[ end trace 42a611f256c3f7d0 ]---
[   95.827616] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[   95.833936] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000067
[   95.840076] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=068a0000, max=1024, ctx=367, dtx=352, fdx=352, next=367
[   95.851096] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=068a4000, max=1024, calc=709, drx=711
[  103.683493] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[  103.689833] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000067
[  103.695996] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=05e24000, max=1024, ctx=767, dtx=0, fdx=0, next=767
[  103.706670] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=06938000, max=1024, calc=72, drx=73
[  110.979295] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[  110.985626] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000067
[  110.991793] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=05dc8000, max=1024, ctx=767, dtx=0, fdx=0, next=767
[  111.002467] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=071c8000, max=1024, calc=81, drx=82

频率逐渐增高。。。

@Zxilly
Copy link
Author

Zxilly commented Oct 2, 2020

放弃了,换用 nginx 做透明代理,效果比 Privoxy 好一点,勉强用着吧

@Zxilly Zxilly closed this as completed Oct 2, 2020
@CHN-beta
Copy link
Owner

CHN-beta commented Oct 2, 2020

issue先别关……我有空会去处理

@CHN-beta CHN-beta reopened this Oct 2, 2020
@Hey-Leo
Copy link

Hey-Leo commented Oct 11, 2020

放弃了,换用 nginx 做透明代理,效果比 Privoxy 好一点,勉强用着吧

怎么用nginx做透明代理

@Zxilly
Copy link
Author

Zxilly commented Oct 11, 2020

放弃了,换用 nginx 做透明代理,效果比 Privoxy 好一点,勉强用着吧

怎么用nginx做透明代理

server {
	listen 8118;
	resolver 119.29.29.29 ipv6=off;
	location / {
        set $agent "Fuck/1.0";
		
        proxy_pass http://$host$request_uri;
        # proxy_bind $remote_addr transparent;
        proxy_http_version 1.1;
        proxy_set_header Host $proxy_host;
        proxy_set_header User-Agent $agent;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "";

        proxy_connect_timeout   20;
        proxy_send_timeout     30;
        proxy_read_timeout     30;

        proxy_buffers   256 4k;
        proxy_max_temp_file_size        0k;
	}
}

我觉得这套参数还能优化,我还在试

@Zxilly
Copy link
Author

Zxilly commented Oct 11, 2020

放弃了,换用 nginx 做透明代理,效果比 Privoxy 好一点,勉强用着吧

怎么用nginx做透明代理

server {
	listen 8118;
	resolver 119.29.29.29 ipv6=off;
	location / {
        set $agent "Fuck/1.0";
		
        proxy_pass http://$host$request_uri;
        # proxy_bind $remote_addr transparent;
        proxy_http_version 1.1;
        proxy_set_header Host $proxy_host;
        proxy_set_header User-Agent $agent;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "";

        proxy_connect_timeout   20;
        proxy_send_timeout     30;
        proxy_read_timeout     30;

        proxy_buffers   256 4k;
        proxy_max_temp_file_size        0k;
	}
}

我觉得这套参数还能优化,我还在试

我在conf.d那里添加了这个服务,打开http://www.all-tool.cn/Tools/ua/没看到效果

因为你还要用iptables转发流量,逻辑和privoxy是一样的。

@Hey-Leo
Copy link

Hey-Leo commented Oct 12, 2020

放弃了,换用 nginx 做透明代理,效果比 Privoxy 好一点,勉强用着吧

怎么用nginx做透明代理

server {
	listen 8118;
	resolver 119.29.29.29 ipv6=off;
	location / {
        set $agent "Fuck/1.0";
		
        proxy_pass http://$host$request_uri;
        # proxy_bind $remote_addr transparent;
        proxy_http_version 1.1;
        proxy_set_header Host $proxy_host;
        proxy_set_header User-Agent $agent;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "";

        proxy_connect_timeout   20;
        proxy_send_timeout     30;
        proxy_read_timeout     30;

        proxy_buffers   256 4k;
        proxy_max_temp_file_size        0k;
	}
}

我觉得这套参数还能优化,我还在试

我在conf.d那里添加了这个服务,打开http://www.all-tool.cn/Tools/ua/没看到效果

因为你还要用iptables转发流量,逻辑和privoxy是一样的。

下面规则应该没毛病吧

iptables -t nat -N PrivoxyUA
iptables -t nat -A PREROUTING -i br-lan -p tcp -j PrivoxyUA
iptables -t nat -A PrivoxyUA -d 0.0.0.0/8 -j RETURN
iptables -t nat -A PrivoxyUA -d 10.0.0.0/8 -j RETURN
iptables -t nat -A PrivoxyUA -d 127.0.0.0/8 -j RETURN
iptables -t nat -A PrivoxyUA -d 169.254.0.0/16 -j RETURN
iptables -t nat -A PrivoxyUA -d 172.16.0.0/12 -j RETURN
iptables -t nat -A PrivoxyUA -d 192.168.0.0/16 -j RETURN
iptables -t nat -A PrivoxyUA -d 224.0.0.0/4 -j RETURN
iptables -t nat -A PrivoxyUA -d 240.0.0.0/4 -j RETURN
iptables -t nat -A PrivoxyUA -p tcp --dport 80 -j REDIRECT --to-ports 8118

@XingNian-www
Copy link

我没修改其他地方,只在conf.d新建文件添加这个server,还是没有效果,防火墙是有规则在的

建议用我这个测试下
ua.zhezhiyu.xyz
很多UA检测都是直接获取的浏览器本身UA的

@XingNian-www
Copy link

有了,不过这样的话对于手机不是也一样吗,手机浏览器ua也没有换

你的真实UA是
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36
你的浏览器UA是
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36

没看懂你的意思,不过我手机电脑都是可以直接替换的

@Zxilly
Copy link
Author

Zxilly commented Oct 13, 2020

有了,不过这样的话对于手机不是也一样吗,手机浏览器ua也没有换
你的真实UA是
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36
你的浏览器UA是
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36

没看懂你的意思,不过我手机电脑都是可以直接替换的

就是说这还是带了浏览器ua,手机的话不还是带了Android或者iOS的ua

它不会判断你的浏览器ua进行拦截吗

哎,你需要补点课
这个页面上的真实UA,指的是服务器收到的请求里带的UA,也就是会被校园网识别的。
而第二行,指的是使用js在浏览器里获取的,这个不会被校园网检测,没必要改。

@CHN-beta
Copy link
Owner

话说,用nginx代理的话,性能怎么样?普通的路由器能扛得住吗?

@Zxilly
Copy link
Author

Zxilly commented Oct 13, 2020

话说,用nginx代理的话,性能怎么样?普通的路由器能扛得住吗?

感觉比privoxy性能高,我的是mt7620

@Zxilly
Copy link
Author

Zxilly commented Oct 16, 2020

issue先别关……我有空会去处理

查了一点资料,也许可以通过关闭TSO来解决?
但是我不知道怎么操作OpenWRT上的eth0,只能改源码吗?

@CHN-beta
Copy link
Owner

issue先别关……我有空会去处理

查了一点资料,也许可以通过关闭TSO来解决?
但是我不知道怎么操作OpenWRT上的eth0,只能改源码吗?

官方openwrt里,如果支持tso的话,在防火墙那里就会有设置,并且默认是不开启的。

@Zxilly
Copy link
Author

Zxilly commented Nov 3, 2020

获取了一些新的log,可能有帮助

Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4997.880226] ------------[ cut here ]------------
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4997.884983] WARNING: CPU: 0 PID: 0 at kernel/softirq.c:165 __local_bh_enable_ip+0x54/0xc0
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4997.893318] Modules linked in: xmurp_ua rt2800soc rt2800mmio rt2800lib pppoe ppp_async rt2x00soc rt2x00mmio rt2x00lib pppox ppp_generic mt76x2e mt76x2_common mt76x02_lib mt76 mac80211 iptable_nat iptable_mangle iptable_filter ipt_REJECT ipt_MASQUERADE ip_tables 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 x_tables slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_log_common nf_flow_table_hw nf_flow_table nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack crc_ccitt compat ledtrig_usbport mmc_block mtk_sd mmc_core leds_gpio ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4997.963377] CPU: 0 PID: 0 Comm: swapper Not tainted 4.14.202 #0
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4997.969411] Stack : 80460000 8041aa78 00000000 00000000 803f5748 87c0785c 804436ec 80443307
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4997.977949]         803f1788 00000000 80593660 000000a5 00000000 00000001 87c07810 ac07f5d3
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4997.986484]         00000000 00000000 80590000 000049f0 00000000 000000e3 00000008 00000000
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4997.995019]         00000000 80450000 000eb331 00000000 00000000 00000009 00000000 803f36e0
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.003553]         80029da0 000000a5 00000000 875a7854 00000002 8020f414 00000000 80590000
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.012088]         ...
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.014583] Call Trace:
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.017097] [<8000aff0>] show_stack+0x58/0x100
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.021637] [<80026aa0>] __warn+0xe4/0x13c
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.025816] [<80026b88>] warn_slowpath_null+0x1c/0x34
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.030971] [<80029da0>] __local_bh_enable_ip+0x54/0xc0
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.036305] [<8028f164>] __dev_queue_xmit+0x53c/0x574
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.041479] [<803493b8>] vlan_dev_hard_start_xmit+0xa0/0x130
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.047253] [<8028eaa8>] dev_hard_start_xmit+0xcc/0x164
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.052583] [<8028f084>] __dev_queue_xmit+0x45c/0x574
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.057742] [<80335640>] br_dev_queue_push_xmit+0x120/0x154
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.063428] [<80332aa8>] br_dev_xmit+0x200/0x284
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.068138] [<8028eaa8>] dev_hard_start_xmit+0xcc/0x164
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.073466] [<8028f084>] __dev_queue_xmit+0x45c/0x574
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.078637] [<871381d4>] rkpPacket_send+0x18/0x48 [xmurp_ua]
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.084421] [<8713a098>] rkpStream_execute+0xb64/0xc44 [xmurp_ua]
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.090650] [<8713a034>] rkpStream_execute+0xb00/0xc44 [xmurp_ua]
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.096879] [<8713a034>] rkpStream_execute+0xb00/0xc44 [xmurp_ua]
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.103108] [<8713a424>] rkpManager_execute+0x6c/0x114 [xmurp_ua]
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.109336] [<8713a500>] hook_funcion+0x34/0x9c [xmurp_ua]
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.114947] [<802c378c>] nf_hook_slow+0x58/0x104
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.119672] [<802cc834>] ip_forward+0x350/0x40c
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.124298] [<802cb7c0>] ip_rcv+0x2a0/0x2d0
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.128566] [<8028d76c>] __netif_receive_skb_core+0x828/0xa24
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.134430] [<8028fa34>] netif_receive_skb_internal+0x68/0xa4
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.140298] [<80337708>] br_handle_frame_finish+0x4c0/0x540
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.145984] [<80337a7c>] br_handle_frame+0x2f4/0x348
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.151048] [<8028d460>] __netif_receive_skb_core+0x51c/0xa24
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.156910] [<8028fa34>] netif_receive_skb_internal+0x68/0xa4
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.162773] [<80290564>] napi_gro_receive+0x64/0xc0
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.167756] [<8025d0ec>] fe_poll+0x4b8/0x78c
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.172111] [<8028fec8>] net_rx_action+0x130/0x2f4
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.177002] [<80369a90>] __do_softirq+0xe8/0x2bc
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.181720] [<80005fd0>] except_vec_vi_end+0xb8/0xc4
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.186788] [<8000794c>] r4k_wait_irqoff+0x18/0x24
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.191679] ---[ end trace 843634ea4518f149 ]---

@CHN-beta
Copy link
Owner

CHN-beta commented Nov 3, 2020

获取了一些新的log,可能有帮助

Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4997.880226] ------------[ cut here ]------------
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4997.884983] WARNING: CPU: 0 PID: 0 at kernel/softirq.c:165 __local_bh_enable_ip+0x54/0xc0
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4997.893318] Modules linked in: xmurp_ua rt2800soc rt2800mmio rt2800lib pppoe ppp_async rt2x00soc rt2x00mmio rt2x00lib pppox ppp_generic mt76x2e mt76x2_common mt76x02_lib mt76 mac80211 iptable_nat iptable_mangle iptable_filter ipt_REJECT ipt_MASQUERADE ip_tables 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 x_tables slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_log_common nf_flow_table_hw nf_flow_table nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack crc_ccitt compat ledtrig_usbport mmc_block mtk_sd mmc_core leds_gpio ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4997.963377] CPU: 0 PID: 0 Comm: swapper Not tainted 4.14.202 #0
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4997.969411] Stack : 80460000 8041aa78 00000000 00000000 803f5748 87c0785c 804436ec 80443307
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4997.977949]         803f1788 00000000 80593660 000000a5 00000000 00000001 87c07810 ac07f5d3
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4997.986484]         00000000 00000000 80590000 000049f0 00000000 000000e3 00000008 00000000
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4997.995019]         00000000 80450000 000eb331 00000000 00000000 00000009 00000000 803f36e0
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.003553]         80029da0 000000a5 00000000 875a7854 00000002 8020f414 00000000 80590000
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.012088]         ...
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.014583] Call Trace:
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.017097] [<8000aff0>] show_stack+0x58/0x100
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.021637] [<80026aa0>] __warn+0xe4/0x13c
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.025816] [<80026b88>] warn_slowpath_null+0x1c/0x34
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.030971] [<80029da0>] __local_bh_enable_ip+0x54/0xc0
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.036305] [<8028f164>] __dev_queue_xmit+0x53c/0x574
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.041479] [<803493b8>] vlan_dev_hard_start_xmit+0xa0/0x130
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.047253] [<8028eaa8>] dev_hard_start_xmit+0xcc/0x164
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.052583] [<8028f084>] __dev_queue_xmit+0x45c/0x574
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.057742] [<80335640>] br_dev_queue_push_xmit+0x120/0x154
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.063428] [<80332aa8>] br_dev_xmit+0x200/0x284
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.068138] [<8028eaa8>] dev_hard_start_xmit+0xcc/0x164
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.073466] [<8028f084>] __dev_queue_xmit+0x45c/0x574
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.078637] [<871381d4>] rkpPacket_send+0x18/0x48 [xmurp_ua]
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.084421] [<8713a098>] rkpStream_execute+0xb64/0xc44 [xmurp_ua]
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.090650] [<8713a034>] rkpStream_execute+0xb00/0xc44 [xmurp_ua]
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.096879] [<8713a034>] rkpStream_execute+0xb00/0xc44 [xmurp_ua]
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.103108] [<8713a424>] rkpManager_execute+0x6c/0x114 [xmurp_ua]
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.109336] [<8713a500>] hook_funcion+0x34/0x9c [xmurp_ua]
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.114947] [<802c378c>] nf_hook_slow+0x58/0x104
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.119672] [<802cc834>] ip_forward+0x350/0x40c
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.124298] [<802cb7c0>] ip_rcv+0x2a0/0x2d0
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.128566] [<8028d76c>] __netif_receive_skb_core+0x828/0xa24
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.134430] [<8028fa34>] netif_receive_skb_internal+0x68/0xa4
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.140298] [<80337708>] br_handle_frame_finish+0x4c0/0x540
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.145984] [<80337a7c>] br_handle_frame+0x2f4/0x348
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.151048] [<8028d460>] __netif_receive_skb_core+0x51c/0xa24
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.156910] [<8028fa34>] netif_receive_skb_internal+0x68/0xa4
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.162773] [<80290564>] napi_gro_receive+0x64/0xc0
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.167756] [<8025d0ec>] fe_poll+0x4b8/0x78c
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.172111] [<8028fec8>] net_rx_action+0x130/0x2f4
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.177002] [<80369a90>] __do_softirq+0xe8/0x2bc
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.181720] [<80005fd0>] except_vec_vi_end+0xb8/0xc4
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.186788] [<8000794c>] r4k_wait_irqoff+0x18/0x24
Tue Nov  3 20:21:01 2020 kern.warn kernel: [ 4998.191679] ---[ end trace 843634ea4518f149 ]---

感谢,但是最近没有空处理。下次一定。

@Zxilly
Copy link
Author

Zxilly commented Nov 30, 2020

我自己写了一个程序,不是内核模块,但是可以使用NFQUEUE处理通过所有端口的HTTP流量
目前看来,工作良好
https://github.com/Zxilly/UA2F

@XingNian-www
Copy link

XingNian-www commented Nov 30, 2020 via email

@Zxilly
Copy link
Author

Zxilly commented Nov 30, 2020

我来试试,编译时内核版本啥的有没有需求? Zxilly [email protected] 于 2020年11月30日周一 12:36写道:

我自己写了一个程序,不是内核模块,但是可以使用NFQUEUE处理通过所有端口的HTTP流量 目前看来,工作良好 https://github.com/Zxilly/UA2F — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#11 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKUHCGVPD4Y33A2XPYLKOCTSSMONPANCNFSM4R7IEDMA .

依赖linmnl,libnetfilter-queue和iptables-mod-nfqueue,最后一个忘记加到依赖里了

@XingNian-www
Copy link

XingNian-www commented Nov 30, 2020 via email

@Subdue0
Copy link

Subdue0 commented Jul 7, 2021

这个崩溃,我猜测应该是那个有线网络数据包过滤那块出了点问题,纯无线网络使用没啥问题,有线和无线混用一段时间,可能就会出现崩溃重启的情况

@Zxilly
Copy link
Author

Zxilly commented Jul 7, 2021

@Subdue0 没关系的,这个hook在netfilter链上,没有所谓的有线无线,都是转发到wan然后再分发,那一步已经和xmurp没关系了

@CHN-beta
Copy link
Owner

CHN-beta commented Dec 2, 2021

哎,xmurp崩溃的问题又被拖出来鞭尸。。。看看自己几年前的代码,感觉真的很糟糕。。。

这个项目的 star 都快到 100 了,我觉得我可能有社会责任来把它捡起来继续维护,但是又没空。。。

话说,为啥这个项目没人接手呢。。。

@Zxilly
Copy link
Author

Zxilly commented Dec 2, 2021

@CHN-beta 按GitHub的标准,200star才值得被永久保存,所以不急(

@Subdue0
Copy link

Subdue0 commented Dec 3, 2021

不能写那种一劳永逸的,不需要更新维护的,用那种linux底层通用基础库去做这个么

@CHN-beta
Copy link
Owner

CHN-beta commented Dec 3, 2021

不能写那种一劳永逸的,不需要更新维护的,用那种linux底层通用基础库去做这个么

底层通用基础库是指什么?

另外,这个不是因为api改动而需要继续维护,而是我一开始写的时候就没写好。。。

@Zxilly
Copy link
Author

Zxilly commented Dec 3, 2021

@Subdue0 netfilter库并没有变过(
从linux 2.4就没变过了

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

5 participants