uvm_fault(0xffffffff827b0b88, 0xfffffd000000001c, 0, 1) -> e kernel: page fault trap, code=0 Stopped at m_free+0x58: movswq 0x1c(%r14),%rsi ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic kernel page fault uvm_fault(0xffffffff827b0b88, 0xfffffd000000001c, 0, 1) -> e m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 end trace frame: 0xffff800023f26db0, count: 0 ddb{0}> trace m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 ml_purge(ffff800023f26dc8) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff800023f26dc8) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff800000ac6278) at ifq_purge+0x9a sys/net/ifq.c:462 tun_dev_close(5d00,7) at tun_dev_close+0xc8 sys/net/if_tun.c:460 spec_close(ffff800023f26ef0) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e3204e8,7,fffffd807f7bf780,ffff800020e08768) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:174 vn_closefile(fffffd806681e740,ffff800020e08768) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806681e740,ffff800020e08768) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806681e740,ffff800020e08768) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806681e740,ffff800020e08768) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800020e08768) at fdfree+0x101 sys/kern/kern_descrip.c:1195 exit1(ffff800020e08768,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff800020e08768,ffff800023f27180,ffff800023f271d0) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800023f27250) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023f27250) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcedd0, count: -14 ddb{0}> show registers rdi 0 rsi 0x58ccd acpi_pdirpa+0x44b35 rbp 0xffff800023f26d70 rbx 0 rdx 0x58ccc acpi_pdirpa+0x44b34 rcx 0xffffffff82764440 mbstat_boot_boot_cpumem rax 0 r8 0xffffffff82127b87 witness_assert+0x207 r9 0x5 r10 0xd5faffd17a124610 r11 0xf9ff2e83fc8999c0 r12 0xfffffd806f11a500 r13 0x2000 __ALIGN_SIZE+0x1000 r14 0xfffffd0000000000 r15 0xfffffd0000000000 rip 0xffffffff81eadbb8 m_free+0x58 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800023f26d30 ss 0x10 m_free+0x58: movswq 0x1c(%r14),%rsi ddb{0}> show proc PROC (syz-executor.0) pid=413163 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020e09878,0xffffffff828d0c00 process=0xffff800020df0010 user=0xffff800023f22000, vmspace=0xfffffd806681fb90 estcpu=36, cpticks=4, pctcpu=0.0 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 99871 74200 0 0 3 0x14200 bored sosplice 45505 409947 90663 0 2 0x482 syz-executor.1 90663 246244 73140 0 3 0x82 thrsleep syz-fuzzer 90663 431964 73140 0 3 0x4000082 thrsleep syz-fuzzer 90663 326697 73140 0 3 0x4000082 thrsleep syz-fuzzer 90663 253299 73140 0 3 0x4000082 thrsleep syz-fuzzer 90663 156275 73140 0 3 0x4000082 thrsleep syz-fuzzer 90663 420128 73140 0 7 0x4000082 syz-fuzzer 90663 147138 73140 0 3 0x4000082 thrsleep syz-fuzzer 90663 346174 73140 0 3 0x4000082 thrsleep syz-fuzzer 90663 458869 73140 0 3 0x4000082 thrsleep syz-fuzzer 90663 207953 73140 0 3 0x4000082 thrsleep syz-fuzzer 73140 84707 32145 0 3 0x10008a pause ksh 32145 488326 59131 0 3 0x92 select sshd 70879 372665 1 0 3 0x100083 ttyin getty 59131 469324 1 0 3 0x80 select sshd 48109 52522 38899 74 3 0x100092 bpf pflogd 38899 178739 1 0 3 0x80 netio pflogd 76095 310268 46222 73 3 0x100090 kqread syslogd 46222 311577 1 0 3 0x100082 netio syslogd 47574 439596 1 77 3 0x100090 poll dhclient 26262 330318 1 0 3 0x80 poll dhclient 5662 500057 0 0 3 0x14200 bored smr 47844 266132 0 0 2 0x14200 zerothread 3922 411625 0 0 3 0x14200 aiodoned aiodoned 61821 126929 0 0 3 0x14200 syncer update 52134 490483 0 0 3 0x14200 cleaner cleaner 28684 289356 0 0 3 0x14200 reaper reaper 56865 15848 0 0 3 0x14200 pgdaemon pagedaemon 69571 375903 0 0 3 0x14200 bored crynlk 90496 508478 0 0 3 0x14200 bored crypto 37643 119177 0 0 3 0x40014200 acpi0 acpi0 95821 477247 0 0 3 0x40014200 idle1 71728 11475 0 0 3 0x14200 bored softnet 79221 143793 0 0 3 0x14200 bored systqmp 9839 304700 0 0 3 0x14200 bored systq 2443 280077 0 0 2 0x40014200 softclock 34654 480540 0 0 3 0x40014200 idle0 1 104551 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9529 6672K 6865K 78643K 11223 0 pcb 13 8K 8K 78643K 91 0 rtable 107 5K 8K 78643K 369 0 ifaddr 84 17K 18K 78643K 152 0 counters 43 33K 34K 78643K 59 0 ioctlops 0 0K 4K 78643K 1524 0 iov 0 0K 12K 78643K 51 0 mount 1 1K 1K 78643K 1 0 vnodes 1219 77K 77K 78643K 1411 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 9 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 80 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 4 9K 25K 78643K 393 0 sigio 0 0K 0K 78643K 4 0 proc 61 63K 83K 78643K 495 0 subproc 23 1K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 294 0 in_multi 81 3K 3K 78643K 195 0 ether_multi 1 0K 0K 78643K 11 0 mrt 0 0K 0K 78643K 4 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 249 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 128 63K 69K 78643K 2270 0 UVM aobj 19 2K 2K 78643K 21 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 75 0 NDP 13 0K 0K 78643K 38 0 temp 131 3872K 3940K 78643K 6133 0 kqueue 3 4K 8K 78643K 10 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 9 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 35 0 33 1 0 1 1 0 8 0 rtentry 112 79 0 40 2 0 2 2 0 8 0 unpcb 120 287 0 277 1 0 1 1 0 8 0 syncache 264 6 0 6 2 2 0 1 0 8 0 tcpqe 32 241 0 241 2 2 0 1 0 8 0 tcpcb 544 712 0 701 3 1 2 2 0 8 1 inpcb 296 1227 0 1220 2 0 2 2 0 8 1 rttmr 72 2 0 2 1 1 0 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 3 0 3 1 1 0 1 0 8 0 nd6 48 26 0 24 1 0 1 1 0 8 0 ppxss 1128 2 0 2 2 1 1 1 0 8 1 pffrag 232 1 0 0 1 0 1 1 0 482 0 pffrnode 88 1 0 0 1 0 1 1 0 8 0 pffrent 40 1 0 0 1 0 1 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfrktable 1344 15 0 11 1 0 1 1 0 8 0 pftag 88 3 0 0 1 0 1 1 0 8 0 pfqueue 264 2 0 0 1 0 1 1 0 8 0 pfstitem 24 26 0 8 1 0 1 1 0 8 0 pfstkey 112 26 0 8 1 0 1 1 0 8 0 pfstate 328 25 0 8 2 0 2 2 0 8 0 pfrule 1360 28 0 17 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 279 0 114 14 0 14 14 0 8 2 art_table 32 280 0 114 2 0 2 2 0 8 0 art_node 16 78 0 41 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 74 0 64 1 0 1 1 0 8 0 shmpl 112 19 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1928 0 519 89 0 89 89 0 8 0 ffsino 272 1928 0 519 96 1 95 95 0 8 0 nchpl 144 2637 0 1027 60 0 60 60 0 8 0 uvmvnodes 72 2115 0 0 39 0 39 39 0 8 0 vnodes 208 2115 0 0 112 0 112 112 0 8 0 namei 1024 7196 0 7196 2 1 1 1 0 8 1 percpumem 16 40 0 8 1 0 1 1 0 8 0 vcpupl 1984 7 0 0 1 0 1 1 0 8 0 vmpool 560 9 0 2 1 0 1 1 0 8 0 pfiaddrpl 120 5 0 3 1 0 1 1 0 8 0 scxspl 192 8047 0 8047 11 8 3 7 0 8 3 plimitpl 152 39 0 31 1 0 1 1 0 8 0 sigapl 424 611 0 580 4 0 4 4 0 8 0 futexpl 56 6678 0 6678 1 0 1 1 0 8 1 knotepl 112 68 0 49 1 0 1 1 0 8 0 kqueuepl 144 249 0 247 1 0 1 1 0 8 0 pipelkpl 48 145 0 135 1 0 1 1 0 8 0 pipepl 120 290 0 274 2 1 1 2 0 8 0 fdescpl 496 593 0 578 3 0 3 3 0 8 0 filepl 152 4108 0 4020 7 2 5 6 0 8 1 lockfpl 104 90 0 89 1 0 1 1 0 8 0 lockfspl 48 31 0 30 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 62 0 51 1 0 1 1 0 8 0 ucredpl 96 262 0 251 1 0 1 1 0 8 0 zombiepl 144 581 0 578 2 1 1 1 0 8 0 processpl 984 611 0 578 6 1 5 5 0 8 0 procpl 624 1491 0 1449 4 0 4 4 0 8 0 sosppl 128 6 0 6 2 1 1 1 0 8 1 sockpl 400 1551 0 1532 6 3 3 4 0 8 1 mcl64k 65536 7 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 6 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 204 0 0 25 0 25 25 0 8 0 mtagpl 96 40 0 0 1 0 1 1 0 8 0 mbufpl 256 294 0 0 16 0 16 16 0 8 0 bufpl 280 4124 0 133 286 0 286 286 0 8 0 anonpl 16 62749 0 46467 68 1 67 67 0 124 1 amapchunkpl 152 3307 0 3155 13 0 13 13 0 158 5 amappl16 192 2568 0 1688 45 0 45 45 0 8 0 amappl15 184 9 0 9 2 1 1 1 0 8 1 amappl14 176 27 0 23 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 3 0 3 1 1 0 1 0 8 0 amappl11 152 59 0 43 1 0 1 1 0 8 0 amappl10 144 200 0 193 1 0 1 1 0 8 0 amappl9 136 560 0 558 1 0 1 1 0 8 0 amappl8 128 547 0 510 2 0 2 2 0 8 0 amappl7 120 117 0 105 1 0 1 1 0 8 0 amappl6 112 31 0 24 2 1 1 1 0 8 0 amappl5 104 500 0 484 1 0 1 1 0 8 0 amappl4 96 491 0 460 1 0 1 1 0 8 0 amappl3 88 118 0 113 1 0 1 1 0 8 0 amappl2 80 3768 0 3699 2 0 2 2 0 8 0 amappl1 72 22983 0 22548 23 13 10 18 0 8 0 amappl 80 1743 0 1697 2 0 2 2 0 84 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 64 20 0 2 1 0 1 1 0 8 0 uaddrrnd 24 602 0 580 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 602 0 580 1 0 1 1 0 8 0 vmmpekpl 168 8538 0 8503 2 0 2 2 0 8 0 vmmpepl 168 78698 0 76715 123 27 96 116 0 357 4 vmsppl 368 601 0 580 3 0 3 3 0 8 0 pdppl 4096 1211 0 1167 8 1 7 7 0 8 1 pvpl 32 210518 0 191165 164 0 164 164 0 265 7 pmappl 232 601 0 580 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 278 0 10 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 ml_purge(ffff800023f26dc8) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff800023f26dc8) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff800000ac6278) at ifq_purge+0x9a sys/net/ifq.c:462 tun_dev_close(5d00,7) at tun_dev_close+0xc8 sys/net/if_tun.c:460 spec_close(ffff800023f26ef0) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e3204e8,7,fffffd807f7bf780,ffff800020e08768) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:174 vn_closefile(fffffd806681e740,ffff800020e08768) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806681e740,ffff800020e08768) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806681e740,ffff800020e08768) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806681e740,ffff800020e08768) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800020e08768) at fdfree+0x101 sys/kern/kern_descrip.c:1195 exit1(ffff800020e08768,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff800020e08768,ffff800023f27180,ffff800023f271d0) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800023f27250) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023f27250) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcedd0, count: -14 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff828c9608) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828c9608) at __mp_lock+0x127 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff828c9608,2) at __mp_acquire_count+0x51 sys/kern/kern_lock.c:227 mi_switch() at mi_switch+0x392 sys/kern/sched_bsd.c:435 sleep_finish(ffff800020eac970,1) at sleep_finish+0x113 sys/kern/kern_synch.c:418 sleep_finish_all(ffff800020eac970,1) at sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:447 [inline] sleep_finish_all(ffff800020eac970,1) at sleep_finish_all+0x32 sys/kern/kern_synch.c:393 tsleep(fffffd806e92cd80,118,ffffffff8245a9ea,0) at tsleep+0x1cc sys/kern/kern_synch.c:155 kqueue_sleep(fffffd806e92cd80,0) at kqueue_sleep+0x1a0 sys/kern/kern_event.c:885 kqueue_scan(fffffd806e92cd80,40,c00016b698,0,ffff800020ddd388,ffff800020eace4c) at kqueue_scan+0x2b6 sys/kern/kern_event.c:928 sys_kevent(ffff800020ddd388,ffff800020eacec0,ffff800020eacf10) at sys_kevent+0x464 sys/kern/kern_event.c:640 syscall(ffff800020eacf90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020eacf90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc00016be98, count: -14