Archer c2 v3 (AC900) 802.11nac memory leak
Username: Sharky
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=2260
Hi, I have a Archer C2 v3 (AC900) that I flashed the latest snapshot on and I noticed that it would crash (and freeze up) constantly if any 5
GHz
WiFi device is connected - due to what I suspected is a kernel memory leak (though I’m no kernel hacker).
I observed that memory was being eaten up but not by any process I could see.
The AP has been running fine for the last few days with 802.11nac disabled, so that’s my where I’ve drawn my conclusion.
Model: TP-Link Archer C2 v3
Architecture: Qualcomm Atheros QCA956X ver 1 rev 0
Firmware Version: OpenWrt SNAPSHOT r9886-399aa0b9 / LuCI Master (f138fc93)
Kernel Version: 4.14.111
[ 304.013122] oom_reaper: reaped process 1699 (hostapd), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB [ 303.026613] Killed process 1699 (hostapd) total-vm:1752kB, anon-rss:132kB, file-rss:4kB, shmem-rss:0kB [ 303.018847] Out of memory: Kill process 1699 (hostapd) score 2 or sacrifice child [ 303.009704] [ 1699] 0 1699 438 34 3 0 0 0 hostapd [ 303.000819] [ 1463] 0 1463 300 13 4 0 0 0 ntpd [ 302.991816] [ 1203] 0 1203 331 28 5 0 0 0 uhttpd [ 302.982774] [ 1145] 0 1145 358 28 4 0 0 0 odhcpd [ 302.973572] [ 1054] 0 1054 266 10 3 0 0 0 dropbear [ 302.964440] [ 1021] 453 1021 332 24 3 0 0 0 dnsmasq [ 302.955614] [ 969] 0 969 384 25 5 0 0 0 rpcd [ 302.946522] [ 950] 0 950 338 23 4 0 0 0 logread [ 302.937699] [ 949] 0 949 308 25 4 0 0 0 logd [ 302.928444] [ 531] 0 531 227 10 3 0 0 0 askfirst [ 302.919413] [ 530] 0 530 300 18 5 0 0 0 ubusd [ 302.910394] [ pid ] uid tgid total_vm rss nr_ptes nr_pmds swapents oom_score_adj name [ 302.907154] 1592 pages reserved [ 302.903136] 0 pages HighMem/MovableOnly [ 302.900257] 16384 pages RAM [ 302.897232] Total swap = 0kB [ 302.894262] Free swap = 0kB [ 302.888857] Swap cache stats: add 0, delete 0, find 0/0 [ 302.885429] 0 pages in swap cache [ 302.881639] 391 total pagecache pages [ 302.866462] Normal: 2514kB (UE) 1608kB (UME) 7516kB (UME) 2832kB (UME) 1464kB (ME) 7128kB (UME) 4256kB (ME) 2512kB (ME) 01024kB 02048kB 04096kB = 8220kB [ 302.863015] lowmem_reserve[]: 0 0 [ 302.834854] Normal free:8220kB min:8192kB low:10240kB high:12288kB active_anon:1360kB inactive_anon:96kB active_file:400kB inactive_file:720kB unevictable:0kB writepending:0kB present:65536kB managed:59168kB mlocked:0kB kernel_stack:344kB pagetables:188kB bounce:0kB free_pcp:16kB local_pcp:16kB free_cma:0kB [ 302.811800] Node 0 active_anon:1360kB inactive_anon:96kB active_file:400kB inactive_file:720kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:16kB dirty:0kB writeback:0kB shmem:444kB writeback_tmp:0kB unstable:0kB all_unreclaimable? yes [ 302.778976] free:2055 free_pcp:4 free_cma:0 [ 302.778976] mapped:4 shmem:111 pagetables:47 bounce:0 [ 302.778976] slab_reclaimable:188 slab_unreclaimable:1255 [ 302.778976] unevictable:0 dirty:0 writeback:0 unstable:0 [ 302.778976] active_file:100 inactive_file:180 isolated_file:0 [ 302.778976] active_anon:340 inactive_anon:24 isolated_anon:0 [ 302.776610] Mem-Info: [ 302.771058] [<8007742c>] tlb_do_page_fault_0+0x10c/0x114 [ 302.765924] [<80071ad0>] __do_page_fault+0x120/0x468 [ 302.760774] [<8011d704>] handle_mm_fault+0x6f8/0xb3c [ 302.756079] [<8011917c>] __do_fault+0x114/0x190 [ 302.751107] [<800f2f5c>] filemap_fault+0x3ec/0x5d8 [ 302.745271] [<800fa3d8>] __alloc_pages_nodemask+0x83c/0xbc4 [ 302.740293] [<800f603c>] out_of_memory+0x3bc/0x430 [ 302.735161] [<800f53a8>] oom_kill_process+0xa8/0x4f8 [ 302.729752] [<800f619c>] dump_header.isra.6+0x8c/0x1d0 [ 302.725162] [<8006a90c>] show_stack+0x58/0x100 [ 302.722589] Call Trace: [ 302.720041] ... [ 302.711271] 00000002 00200000 ffffffff 00000024 00000001 8027a424 00000000 80690000 [ 302.702561] 00000159 e6e9317e 00000158 00000000 80000000 839bec00 830afd40 804e9bf0 [ 302.693851] 00000000 00000000 80690000 00007380 00000000 00000000 00000007 00000000 [ 302.685185] 804e1dc0 000003b5 80693670 00200000 ffffffff 00000001 830afb58 fa6978f3 [ 302.676485] Stack : 80560000 80510e3c 00000000 00000000 804e5be8 830afba4 83a2d35c 8053d9c7 [ 302.670432] CPU: 0 PID: 949 Comm: logd Not tainted 4.14.111 #0 [ 302.657882] logd invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|__GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 [ 302.309890] oom_reaper: reaped process 1685 (hostapd), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB [ 302.095352] Killed process 1685 (hostapd) total-vm:1752kB, anon-rss:132kB, file-rss:4kB, shmem-rss:0kB [ 302.087575] Out of memory: Kill process 1685 (hostapd) score 2 or sacrifice child [ 302.078410] [ 1699] 0 1699 438 34 3 0 0 0 hostapd [ 302.069324] [ 1685] 0 1685 438 34 4 0 0 0 hostapd [ 302.060439] [ 1463] 0 1463 300 12 4 0 0 0 ntpd [ 302.051384] [ 1203] 0 1203 331 28 5 0 0 0 uhttpd [ 302.042372] [ 1145] 0 1145 358 27 4 0 0 0 odhcpd [ 302.033206] [ 1054] 0 1054 266 10 3 0 0 0 dropbear [ 302.024095] [ 1021] 453 1021 332 24 3 0 0 0 dnsmasq [ 302.015217] [ 969] 0 969 384 25 5 0 0 0 rpcd [ 302.006119] [ 950] 0 950 338 23 4 0 0 0 logread [ 301.997186] [ 949] 0 949 308 25 4 0 0 0 logd [ 301.987960] [ 531] 0 531 227 10 3 0 0 0 askfirst [ 301.979026] [ 530] 0 530 300 18 5 0 0 0 ubusd [ 301.970123] [ pid ] uid tgid total_vm rss nr_ptes nr_pmds swapents oom_score_adj name [ 301.966881] 1592 pages reserved [ 301.962886] 0 pages HighMem/MovableOnly [ 301.959979] 16384 pages RAM [ 301.957011] Total swap = 0kB [ 301.954002] Free swap = 0kB [ 301.948530] Swap cache stats: add 0, delete 0, find 0/0 [ 301.945105] 0 pages in swap cache [ 301.941248] 268 total pagecache pages [ 301.925785] Normal: 2164kB (UME) 1168kB (UME) 10016kB (UME) 2832kB (UME) 1564kB (UME) 7128kB (UME) 4256kB (ME) 2512kB (ME) 01024kB 02048kB 04096kB = 8192kB [ 301.922333] lowmem_reserve[]: 0 0 [ 301.894133] Normal free:8160kB min:8192kB low:10240kB high:12288kB active_anon:1492kB inactive_anon:96kB active_file:100kB inactive_file:528kB unevictable:0kB writepending:0kB present:65536kB managed:59168kB mlocked:0kB kernel_stack:344kB pagetables:204kB bounce:0kB free_pcp:64kB local_pcp:64kB free_cma:0kB [ 301.871130] Node 0 active_anon:1492kB inactive_anon:96kB active_file:100kB inactive_file:528kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:12kB dirty:0kB writeback:0kB shmem:444kB writeback_tmp:0kB unstable:0kB all_unreclaimable? yes [ 301.838184] free:2040 free_pcp:16 free_cma:0 [ 301.838184] mapped:3 shmem:111 pagetables:51 bounce:0 [ 301.838184] slab_reclaimable:187 slab_unreclaimable:1293 [ 301.838184] unevictable:0 dirty:0 writeback:0 unstable:0 [ 301.838184] active_file:25 inactive_file:132 isolated_file:0 [ 301.838184] active_anon:373 inactive_anon:24 isolated_anon:0 [ 301.835814] Mem-Info: [ 301.830313] [<8007742c>] tlb_do_page_fault_0+0x10c/0x114 [ 301.825184] [<80071ad0>] __do_page_fault+0x120/0x468 [ 301.820007] [<8011d704>] handle_mm_fault+0x6f8/0xb3c [ 301.815322] [<8011917c>] __do_fault+0x114/0x190 [ 301.810224] [<800f2f5c>] filemap_fault+0x3ec/0x5d8 [ 301.804444] [<800fa3d8>] __alloc_pages_nodemask+0x83c/0xbc4 [ 301.799458] [<800f603c>] out_of_memory+0x3bc/0x430 [ 301.794191] [<800f53a8>] oom_kill_process+0xa8/0x4f8 [ 301.788859] [<800f619c>] dump_header.isra.6+0x8c/0x1d0 [ 301.784209] [<8006a90c>] show_stack+0x58/0x100 [ 301.781640] Call Trace: [ 301.779107] ... [ 301.770374] 00000002 00200000 ffffffff 00000024 00000001 8027a424 00000000 80690000 [ 301.761722] 00000128 909bf38e 00000127 00000000 80000000 839be100 830afd40 804e9bf0 [ 301.753035] 00000000 00000000 80690000 00006230 00000000 00000000 00000007 00000000 [ 301.744324] 804e1dc0 000003b5 80693670 00200000 ffffffff 00000001 830afb58 fa6978f3 [ 301.735678] Stack : 80560000 80510e3c 00000000 00000000 804e5be8 830afba4 83a2d35c 8053d9c7 [ 301.729640] CPU: 0 PID: 949 Comm: logd Not tainted 4.14.111 #0 [ 301.717281] logd invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|__GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 [ 300.068287] oom_reaper: reaped process 1111 (netifd), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB [ 298.840190] Killed process 1111 (netifd) total-vm:1660kB, anon-rss:144kB, file-rss:4kB, shmem-rss:0kB [ 298.832509] Out of memory: Kill process 1111 (netifd) score 2 or sacrifice child [ 298.823358] [ 1699] 0 1699 438 34 3 0 0 0 hostapd [ 298.814195] [ 1685] 0 1685 438 34 4 0 0 0 hostapd [ 298.805300] [ 1463] 0 1463 300 12 4 0 0 0 ntpd [ 298.796187] [ 1203] 0 1203 331 28 5 0 0 0 uhttpd [ 298.787006] [ 1145] 0 1145 358 27 4 0 0 0 odhcpd [ 298.777948] [ 1111] 0 1111 415 37 5 0 0 0 netifd [ 298.768710] [ 1054] 0 1054 266 10 3 0 0 0 dropbear [ 298.759616] [ 1021] 453 1021 332 24 3 0 0 0 dnsmasq [ 298.750771] [ 969] 0 969 384 25 5 0 0 0 rpcd [ 298.741676] [ 950] 0 950 338 23 4 0 0 0 logread [ 298.732782] [ 949] 0 949 308 25 4 0 0 0 logd [ 298.723521] [ 531] 0 531 227 10 3 0 0 0 askfirst [ 298.714515] [ 530] 0 530 300 17 5 0 0 0 ubusd [ 298.705469] [ pid ] uid tgid total_vm rss nr_ptes nr_pmds swapents oom_score_adj name [ 298.702198] 1592 pages reserved [ 298.698173] 0 pages HighMem/MovableOnly [ 298.695288] 16384 pages RAM [ 298.692294] Total swap = 0kB [ 298.689327] Free swap = 0kB [ 298.683886] Swap cache stats: add 0, delete 0, find 0/0 [ 298.680426] 0 pages in swap cache [ 298.676600] 346 total pagecache pages [ 298.661855] Normal: 1524kB (UM) 898kB (UM) 9916kB (UM) 2732kB (UM) 1464kB (M) 7128kB (UM) 4256kB (M) 3512kB (UM) 01024kB 02048kB 0*4096kB = 8120kB [ 298.658414] lowmem_reserve[]: 0 0 [ 298.630423] Normal free:8152kB min:8192kB low:10240kB high:12288kB active_anon:1636kB inactive_anon:96kB active_file:344kB inactive_file:596kB unevictable:0kB writepending:0kB present:65536kB managed:59168kB mlocked:0kB kernel_stack:344kB pagetables:224kB bounce:0kB free_pcp:8kB local_pcp:8kB free_cma:0kB [ 298.607453] Node 0 active_anon:1636kB inactive_anon:96kB active_file:344kB inactive_file:596kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:8kB dirty:0kB writeback:0kB shmem:444kB writeback_tmp:0kB unstable:0kB all_unreclaimable? yes [ 298.574765] free:2038 free_pcp:2 free_cma:0 [ 298.574765] mapped:2 shmem:111 pagetables:56 bounce:0 [ 298.574765] slab_reclaimable:192 slab_unreclaimable:1293 [ 298.574765] unevictable:0 dirty:0 writeback:0 unstable:0 [ 298.574765] active_file:86 inactive_file:149 isolated_file:0 [ 298.574765] active_anon:409 inactive_anon:24 isolated_anon:0 [ 298.572370] Mem-Info: [ 298.566889] [<8007742c>] tlb_do_page_fault_0+0x10c/0x114 [ 298.561745] [<80071ad0>] __do_page_fault+0x120/0x468 [ 298.556600] [<8011d704>] handle_mm_fault+0x6f8/0xb3c [ 298.551902] [<8011917c>] __do_fault+0x114/0x190 [ 298.546945] [<800f2d34>] filemap_fault+0x1c4/0x5d8 [ 298.540878] [<800fefec>] __do_page_cache_readahead+0x1cc/0x270 [ 298.535557] [<801a7540>] squashfs_readpage+0x538/0x6e8 [ 298.529715] [<801a972c>] squashfs_readpage_block+0xcc/0x530 [ 298.525194] [<801355f0>] __kmalloc+0xfc/0x1cc [ 298.518532] [<80134f30>] __slab_alloc.isra.21.constprop.24+0x20/0x44 [ 298.511643] [<80134e4c>] ___slab_alloc.isra.20.constprop.25+0x16c/0x230 [ 298.507066] [<80133b00>] new_slab+0x2fc/0x340 [ 298.501242] [<800fa3d8>] __alloc_pages_nodemask+0x83c/0xbc4 [ 298.496196] [<800f603c>] out_of_memory+0x3bc/0x430 [ 298.491012] [<800f53a8>] oom_kill_process+0xa8/0x4f8 [ 298.485709] [<800f619c>] dump_header.isra.6+0x8c/0x1d0 [ 298.481099] [<8006a90c>] show_stack+0x58/0x100 [ 298.478554] Call Trace: [ 298.476025] ... [ 298.467370] 00000002 00200000 ffffffff 00000024 00000000 8027a424 00000000 80690000 [ 298.458721] 000000ef b37ee26c 000000ee 00000000 80000000 8392e680 82d31b28 804e9bf0 [ 298.450056] 00000000 00000000 80690000 00004eb8 00000000 00000000 00000007 00000000 [ 298.441383] 804e1dc0 00000479 80693670 00200000 ffffffff 00000001 82d31940 bcfe301c [ 298.432709] Stack : 80560000 80510e3c 00000000 00000000 804e5be8 82d3198c 839563dc 8053d9c7 [ 298.426371] CPU: 0 PID: 1145 Comm: odhcpd Not tainted 4.14.111 #0 [ 298.415616] odhcpd invoked oom-killer: gfp_mask=0x14000c0(GFP_KERNEL), nodemask=(null), order=0, oom_score_adj=0 [ 63.167540] random: crng init done