anaelorlinski / OpenWrt-NanoPi-R2S-R4S-Builds

OpenWRT Builds for NanoPi R2S & R4S from official Openwrt source code with minimal set of patches
MIT License
170 stars 57 forks source link

cpu crashes after couple running speed test #27

Closed hle5128 closed 1 year ago

hle5128 commented 2 years ago

i run a few speedtest on speedify on terminal, and it crashed, won't load up or restart, here is the log, when testing, I check CPU, loading only about jumping from 2% to 26% that's it. Running on RK3399 latest build 4GB

2022-05-15 21:18:41 --> [ 72.538290] CPU: 3 PID: 2820 Comm: speedify Tainted: G B 5.4.188 #0 2022-05-15 21:18:41 --> [ 72.538948] Hardware name: FriendlyElec NanoPi R4S (DT) 2022-05-15 21:18:41 --> [ 72.539405] Call trace: 2022-05-15 21:18:41 --> [ 72.539629] dump_backtrace+0x0/0x110 2022-05-15 21:18:41 --> [ 72.539952] show_stack+0x14/0x20 2022-05-15 21:18:41 --> [ 72.540246] dump_stack+0xb4/0x110 2022-05-15 21:18:41 --> [ 72.540550] bad_page+0xfc/0x12c 2022-05-15 21:18:41 --> [ 72.540835] get_page_from_freelist+0x4f0/0xf90 2022-05-15 21:18:41 --> [ 72.541231] alloc_pages_nodemask+0xf0/0xa30 2022-05-15 21:18:41 --> [ 72.541622] kmalloc_order+0x24/0x70 2022-05-15 21:18:41 --> [ 72.541939] kmalloc_track_caller+0x218/0x25c 2022-05-15 21:18:41 --> [ 72.542339] alloc_skb+0x84/0x1c4 2022-05-15 21:18:41 --> [ 72.542648] alloc_skb_with_frags+0x4c/0x1e4 2022-05-15 21:18:41 --> [ 72.543023] sock_alloc_send_pskb+0x22c/0x240 2022-05-15 21:18:41 --> [ 72.543409] tun_ptr_free+0x5770/0x67d4 [tun] 2022-05-15 21:18:41 --> [ 72.543792] tun_ptr_free+0x61fc/0x67d4 [tun] 2022-05-15 21:18:41 --> [ 72.544176] new_sync_write+0xd0/0x150 2022-05-15 21:18:41 --> [ 72.544506] vfs_write+0x2c/0x40 2022-05-15 21:18:41 --> [ 72.544806] vfs_write+0xdc/0x1a0 2022-05-15 21:18:41 --> [ 72.545098] ksys_write+0x54/0xd0 2022-05-15 21:18:41 --> [ 72.545390] arm64_sys_write+0x18/0x20 2022-05-15 21:18:41 --> [ 72.545738] el0_svc_common.constprop.0+0x60/0x110 2022-05-15 21:18:41 --> [ 72.546158] el0_svc_handler+0x20/0x80 2022-05-15 21:18:41 --> [ 72.546489] el0_svc+0x8/0x600 2022-05-15 21:18:41 --> [ 72.624817] ------------[ cut here ]------------ 2022-05-15 21:18:41 --> [ 72.625240] corrupted preempt_count: speedtest/4859/0x3 2022-05-15 21:18:41 --> [ 72.625714] WARNING: CPU: 1 PID: 4859 at kernel/sched/core.c:3302 finish_task_switch+0x1c8/0x1d0 2022-05-15 21:18:41 --> [ 72.626480] Modules linked in: ath9k_htc ath9k_common xt_connlimit nf_conncount iptable_nat ath9k_hw ath xt_state xt_nat xt_helper xt_conntrack xt_connmark xt_connbytes xt_REDIRECT xt_MASQUERADE xt_FLOWOFFLOAD xt_CT wireguard nf_nat nf_flow_table_hw nf_flow_table nf_conntrack_netlink nf_conntrack mac80211 libchacha20poly1305 libblake2s ipt_REJECT chacha_neon cfg80211 ax88179_178a xt_time xt_tcpudp xt_tcpmss xt_statistic xt_recent xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_ecn xt_dscp xt_comment xt_TCPMSS xt_LOG xt_HL xt_DSCP xt_CLASSIFY usbnet sch_cake rtl8150 r8168 r8152 poly1305_neon nf_reject_ipv4 nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 macvlan libcurve25519_generic libchacha libblake2s_generic iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables compat sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred act_gact xt_set ip_set_list_set ip_set_hash_netportnet ip_set_hash_netport 2022-05-15 21:18:41 --> [ 72.626583] 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 ifb ip_tunnel tun vxlan udp_tunnel ip6_udp_tunnel gpio_button_hotplug 2022-05-15 21:18:41 --> [ 72.637416] CPU: 1 PID: 4859 Comm: speedtest Tainted: G B 5.4.188 #0 2022-05-15 21:18:41 --> [ 72.638083] Hardware name: FriendlyElec NanoPi R4S (DT) 2022-05-15 21:18:41 --> [ 72.638540] pstate: 40000085 (nZcv daIf -PAN -UAO) 2022-05-15 21:18:41 --> [ 72.638963] pc : finish_task_switch+0x1c8/0x1d0 2022-05-15 21:18:41 --> [ 72.639359] lr : finish_task_switch+0x1c8/0x1d0 2022-05-15 21:18:41 --> [ 72.639755] sp : ffff800019353a70 2022-05-15 21:18:41 --> [ 72.640046] x29: ffff800019353a70 x28: 0000000000000001 2022-05-15 21:18:41 --> [ 72.640511] x27: 0000000000000020 x26: ffff800019353b08 2022-05-15 21:18:41 --> [ 72.640976] x25: ffff0000eded4e90 x24: ffff8000107f2400 2022-05-15 21:18:41 --> [ 72.641441] x23: ffff0000eded4980 x22: ffff8000107f210c 2022-05-15 21:18:41 --> [ 72.641906] x21: ffff0000f2228c40 x20: ffff0000edf37480 2022-05-15 21:18:41 --> [ 72.642371] x19: ffff0000f6f89840 x18: 0000000000000030 2022-05-15 21:18:41 --> [ 72.642836] x17: 0000000000000000 x16: 0000000000000000 2022-05-15 21:18:41 --> [ 72.643301] x15: ffff0000eded4d80 x14: 0000000000000005 2022-05-15 21:18:41 --> [ 72.643765] x13: ffff800099353787 x12: ffff80001935378f 2022-05-15 21:18:41 --> [ 72.644230] x11: ffff800010c21000 x10: ffff80001095a188 2022-05-15 21:18:41 --> [ 72.644696] x9 : 00000000ffffffd0 x8 : 342f747365746465 2022-05-15 21:18:41 --> [ 72.645161] x7 : 657073203a746e75 x6 : 00000000000001f6 2022-05-15 21:18:41 --> [ 72.645625] x5 : ffff0000f6f80810 x4 : 0000000000000001 2022-05-15 21:18:41 --> [ 72.646090] x3 : ffff0000f6f80810 x2 : 0000000000000007 2022-05-15 21:18:41 --> [ 72.646555] x1 : ffff0000eded4980 x0 : 000000000000002b 2022-05-15 21:18:41 --> [ 72.647020] Call trace: 2022-05-15 21:18:41 --> [ 72.647239] finish_task_switch+0x1c8/0x1d0 2022-05-15 21:18:41 --> [ 72.647609] schedule+0x1ec/0x4a0 2022-05-15 21:18:41 --> [ 72.647917] schedule+0x40/0xe0 2022-05-15 21:18:41 --> [ 72.648197] schedule_timeout+0x6c/0xc4 2022-05-15 21:18:41 --> [ 72.648535] wait_woken+0x64/0x7c 2022-05-15 21:18:41 --> [ 72.648830] sk_wait_data+0x178/0x1a0 2022-05-15 21:18:41 --> [ 72.649153] tcp_recvmsg+0x4f4/0x920 2022-05-15 21:18:41 --> [ 72.649468] inet_recvmsg+0x50/0xe4 2022-05-15 21:18:41 --> [ 72.649776] sys_recvfrom+0xa8/0x120 2022-05-15 21:18:41 --> [ 72.650106] arm64_sys_recvfrom+0x20/0x30 2022-05-15 21:18:41 --> [ 72.650476] el0_svc_common.constprop.0+0x60/0x110 2022-05-15 21:18:41 --> [ 72.650896] el0_svc_handler+0x20/0x80 2022-05-15 21:18:41 --> [ 72.651227] el0_svc+0x8/0x600 2022-05-15 21:18:41 --> [ 72.651497] ---[ end trace 0272b0966c57c569 ]---

anaelorlinski commented 2 years ago

I suggest to monitor the temperature while doing perf tests. Might be related to crashes

while true; do cat ./devices/virtual/thermal/thermal_zone0/temp; sleep 1; done