uvm_fault(0xffffffff82874878, 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(0xffffffff82874878, 0xfffffd000000001c, 0, 1) -> e m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 end trace frame: 0xffff800020ed5960, count: 0 ddb{0}> trace m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 ml_purge(ffff800020ed5978) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff800020ed5978) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff800000ac5278) 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(ffff800020ed5aa0) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd8072055418,7,fffffd807f7bf8a0,ffff800020ddd868) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:174 vn_closefile(fffffd80669c07d8,ffff800020ddd868) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd80669c07d8,ffff800020ddd868) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd80669c07d8,ffff800020ddd868) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd80669c07d8,ffff800020ddd868) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800020ddd868) at fdfree+0x101 sys/kern/kern_descrip.c:1195 exit1(ffff800020ddd868,0,d,1) at exit1+0x32c sys/kern/kern_exit.c:197 postsig(ffff800020ddd868,d) at postsig+0x4ed sigexit sys/kern/kern_sig.c:1483 [inline] postsig(ffff800020ddd868,d) at postsig+0x4ed sys/kern/kern_sig.c:1415 userret(ffff800020ddd868) at userret+0x199 sys/kern/kern_sig.c:1872 syscall(ffff800020ed5f20) at syscall+0x55f mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff800020ed5f20) at syscall+0x55f sys/arch/amd64/amd64/trap.c:592 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd5bf0, count: -15 ddb{0}> show registers rdi 0 rsi 0x66813 acpi_pdirpa+0x5267b rbp 0xffff800020ed5920 rbx 0 rdx 0x66812 acpi_pdirpa+0x5267a rcx 0xffffffff827921c0 mbstat_boot_boot_cpumem rax 0 r8 0xffffffff81826317 witness_assert+0x207 r9 0x5 r10 0x773b1d904f2d22f7 r11 0x23e5d10850afb4ce r12 0xfffffd806f2f2600 r13 0x2000 __ALIGN_SIZE+0x1000 r14 0xfffffd0000000000 r15 0xfffffd0000000000 rip 0xffffffff8214dd38 m_free+0x58 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800020ed58e0 ss 0x10 m_free+0x58: movswq 0x1c(%r14),%rsi ddb{0}> show proc PROC (syz-executor.0) pid=237879 stat=onproc flags process=a proc=2000 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020e40010,0xffff800020e09af8 process=0xffff800020e39728 user=0xffff800020ed0000, vmspace=0xfffffd807f000cf0 estcpu=0, cpticks=1, pctcpu=0.36 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 45778 215514 0 0 3 0x14200 acct acct 59232 425999 0 0 3 0x14280 nfsidl nfsio 76730 436884 0 0 3 0x14280 nfsidl nfsio 23458 46741 0 0 3 0x14280 nfsidl nfsio 43424 41767 0 0 3 0x14280 nfsidl nfsio 6398 384013 0 0 3 0x14280 nfsidl nfsio 786 102875 0 0 3 0x14280 nfsidl nfsio 28768 427144 0 0 3 0x14280 nfsidl nfsio 88991 12242 0 0 3 0x14280 nfsidl nfsio 55823 110964 0 0 3 0x14280 nfsidl nfsio 79602 265826 0 0 3 0x14280 nfsidl nfsio 50141 188754 0 0 3 0x14280 nfsidl nfsio 17369 275096 0 0 3 0x14280 nfsidl nfsio 59260 140582 0 0 3 0x14280 nfsidl nfsio 98889 154576 0 0 3 0x14280 nfsidl nfsio 24718 246563 0 0 3 0x14280 nfsidl nfsio 93084 222452 0 0 3 0x14280 nfsidl nfsio 89761 250050 0 0 3 0x14280 nfsidl nfsio 33149 132387 0 0 3 0x14280 nfsidl nfsio 5557 340063 0 0 3 0x14280 nfsidl nfsio 57598 334211 0 0 3 0x14280 nfsidl nfsio 44099 363570 0 0 3 0x14200 bored sosplice 48842 63609 1 0 2 0x2 syz-executor.1 54566 420260 7143 0 3 0x10008a pause ksh 7143 391616 35220 0 3 0x92 select sshd 27028 419146 1 0 3 0x100083 ttyin getty 35220 435171 1 0 3 0x80 select sshd 8655 168525 15574 74 3 0x100092 bpf pflogd 15574 307370 1 0 3 0x80 netio pflogd 73224 216054 18981 73 3 0x100090 kqread syslogd 18981 168713 1 0 3 0x100082 netio syslogd 11938 421401 1 77 3 0x100090 poll dhclient 51478 104431 1 0 3 0x80 poll dhclient 37909 65387 0 0 3 0x14200 bored smr 26390 242700 0 0 2 0x14200 zerothread 10193 13384 0 0 3 0x14200 aiodoned aiodoned 66244 428733 0 0 3 0x14200 syncer update 73233 91171 0 0 3 0x14200 cleaner cleaner 36081 338271 0 0 7 0x14200 reaper 39936 351339 0 0 3 0x14200 pgdaemon pagedaemon 37631 174480 0 0 3 0x14200 bored crynlk 90851 354694 0 0 3 0x14200 bored crypto 14304 443660 0 0 3 0x40014200 acpi0 acpi0 21948 181982 0 0 3 0x40014200 idle1 61011 112150 0 0 3 0x14200 bored softnet 26681 147689 0 0 3 0x14200 bored systqmp 75104 59414 0 0 3 0x14200 bored systq 55222 387541 0 0 3 0x40014200 bored softclock 9595 269195 0 0 3 0x40014200 idle0 1 247794 0 0 2 0x82 init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 48842 (syz-executor.1) thread 0xffff800020e09ae8 (63609) exclusive rrwlock inode r = 0 (0xfffffd80647bd708) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:311 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:462 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:603 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:575 #5 vget+0x1c8 sys/kern/vfs_subr.c:671 #6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1329 #8 ufs_lookup+0x14b7 sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 #10 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568 #11 namei+0x63c sys/kern/vfs_lookup.c:249 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1853 #13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd80688a35f0) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:311 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:462 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:603 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:575 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1853 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9513 6422K 10894K 78643K 16812 0 pcb 13 8K 8K 78643K 232 0 rtable 119 7K 8K 78643K 567 0 ifaddr 85 18K 18K 78643K 190 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 69 0 ioctlops 0 0K 8K 78643K 3995 0 iov 0 0K 28K 78643K 92 0 mount 1 1K 1K 78643K 1 0 vnodes 1224 77K 77K 78643K 2714 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 16 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 203 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 3 8K 25K 78643K 1870 0 sigio 0 0K 0K 78643K 4 0 proc 62 63K 95K 78643K 494 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 117 0 in_multi 44 2K 2K 78643K 211 0 ether_multi 1 0K 0K 78643K 81 0 mrt 0 0K 0K 78643K 6 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 255 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 123 71K 71K 78643K 5999 0 UVM aobj 36 4K 4K 78643K 38 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 1K 78643K 644 0 NDP 11 0K 0K 78643K 28 0 temp 128 3866K 3935K 78643K 14806 0 kqueue 2 2K 12K 78643K 43 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 12 0 5 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 47 0 45 1 0 1 1 0 8 0 rtentry 112 67 0 26 2 0 2 2 0 8 0 unpcb 120 255 0 245 1 0 1 1 0 8 0 syncache 264 8 0 8 3 3 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 692 0 692 1 1 0 1 0 8 0 tcpcb 544 736 0 732 2 1 1 2 0 8 0 inpcb 296 1673 0 1667 5 4 1 2 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 11 0 0 1 0 1 1 0 8 0 pkpcb 40 6 0 6 2 2 0 1 0 8 0 ppxss 1128 2 0 2 2 2 0 1 0 8 0 pffrag 232 6 0 6 2 1 1 1 0 482 1 pffrnode 88 6 0 6 2 1 1 1 0 8 1 pffrent 40 15 0 15 2 1 1 1 0 8 1 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 92 0 84 2 1 1 1 0 8 0 pftag 88 6 0 4 1 0 1 1 0 8 0 pfqueue 264 2 0 1 1 0 1 1 0 8 0 pfstitem 24 36 0 29 1 0 1 1 0 8 0 pfstkey 112 36 0 29 1 0 1 1 0 8 0 pfstate 328 35 0 28 2 0 2 2 0 8 0 pfrule 1360 886 0 47 71 1 70 70 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 321 0 81 17 2 15 17 0 8 0 art_table 32 322 0 81 3 1 2 3 0 8 0 art_node 16 66 0 31 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 12 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 201 0 191 1 0 1 1 0 8 0 shmpl 112 36 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 3534 0 2128 89 0 89 89 0 8 0 ffsino 272 3534 0 2128 96 1 95 95 0 8 0 nchpl 144 6092 0 4485 60 0 60 60 0 8 0 uvmvnodes 72 4997 0 0 91 0 91 91 0 8 0 vnodes 208 4997 0 0 263 0 263 263 0 8 0 namei 1024 18253 0 18253 4 3 1 1 0 8 1 percpumem 16 45 0 13 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 86 0 26 3 1 2 2 0 8 0 scxspl 192 18872 0 18872 12 11 1 7 0 8 1 plimitpl 152 48 0 40 1 0 1 1 0 8 0 sigapl 424 2107 0 2056 7 1 6 7 0 8 0 futexpl 56 23370 0 23370 3 2 1 1 0 8 1 knotepl 112 111 0 106 1 0 1 1 0 8 0 kqueuepl 144 94 0 93 1 0 1 1 0 8 0 pipelkpl 48 200 0 191 1 0 1 1 0 8 0 pipepl 120 400 0 388 1 0 1 1 0 8 0 fdescpl 496 2070 0 2056 3 0 3 3 0 8 0 filepl 152 10736 0 10658 6 2 4 5 0 8 0 lockfpl 104 160 0 159 1 0 1 1 0 8 0 lockfspl 48 51 0 50 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 31 0 20 1 0 1 1 0 8 0 ucredpl 96 539 0 530 1 0 1 1 0 8 0 zombiepl 144 2057 0 2055 2 1 1 1 0 8 0 processpl 984 2107 0 2055 8 1 7 7 0 8 0 procpl 624 5226 0 5174 7 1 6 6 0 8 0 sosppl 128 9 0 9 4 4 0 1 0 8 0 sockpl 400 1987 0 1969 7 4 3 4 0 8 1 mcl64k 65536 511 0 0 64 6 58 64 0 8 1 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 8 0 0 1 0 1 1 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 10 0 0 2 0 2 2 0 8 0 mcl4k 4096 11 0 0 2 0 2 2 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 201 0 0 25 0 25 25 0 8 0 mtagpl 96 400 0 0 10 0 10 10 0 8 0 mbufpl 256 1189 0 0 72 0 72 72 0 8 0 bufpl 280 6337 0 134 444 0 444 444 0 8 0 anonpl 16 164985 0 152560 82 13 69 80 0 124 0 amapchunkpl 152 9685 0 9551 23 16 7 19 0 158 0 amappl16 192 8335 0 7427 61 15 46 56 0 8 0 amappl15 184 920 0 918 1 0 1 1 0 8 0 amappl14 176 22 0 19 1 0 1 1 0 8 0 amappl13 168 39 0 34 1 0 1 1 0 8 0 amappl12 160 9 0 9 2 2 0 1 0 8 0 amappl11 152 973 0 956 1 0 1 1 0 8 0 amappl10 144 935 0 930 1 0 1 1 0 8 0 amappl9 136 387 0 386 1 0 1 1 0 8 0 amappl8 128 362 0 329 2 0 2 2 0 8 0 amappl7 120 1033 0 1021 1 0 1 1 0 8 0 amappl6 112 26 0 22 2 1 1 1 0 8 0 amappl5 104 1968 0 1952 1 0 1 1 0 8 0 amappl4 96 499 0 471 1 0 1 1 0 8 0 amappl3 88 133 0 127 1 0 1 1 0 8 0 amappl2 80 16483 0 16414 2 0 2 2 0 8 0 amappl1 72 47545 0 47114 23 13 10 18 0 8 0 amappl 80 5466 0 5423 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 37 0 2 1 0 1 1 0 8 0 uaddrrnd 24 2079 0 2058 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2079 0 2058 1 0 1 1 0 8 0 vmmpekpl 168 16825 0 16785 2 0 2 2 0 8 0 vmmpepl 168 246103 0 244112 125 29 96 114 0 357 0 vmsppl 368 2078 0 2057 3 0 3 3 0 8 0 pdppl 4096 4165 0 4121 8 1 7 7 0 8 0 pvpl 32 498735 0 486824 196 36 160 191 0 265 0 pmappl 232 2078 0 2057 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 476 0 22 14 0 14 14 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(ffff800020ed5978) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff800020ed5978) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff800000ac5278) 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(ffff800020ed5aa0) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd8072055418,7,fffffd807f7bf8a0,ffff800020ddd868) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:174 vn_closefile(fffffd80669c07d8,ffff800020ddd868) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd80669c07d8,ffff800020ddd868) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd80669c07d8,ffff800020ddd868) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd80669c07d8,ffff800020ddd868) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800020ddd868) at fdfree+0x101 sys/kern/kern_descrip.c:1195 exit1(ffff800020ddd868,0,d,1) at exit1+0x32c sys/kern/kern_exit.c:197 postsig(ffff800020ddd868,d) at postsig+0x4ed sigexit sys/kern/kern_sig.c:1483 [inline] postsig(ffff800020ddd868,d) at postsig+0x4ed sys/kern/kern_sig.c:1415 userret(ffff800020ddd868) at userret+0x199 sys/kern/kern_sig.c:1872 syscall(ffff800020ed5f20) at syscall+0x55f mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff800020ed5f20) at syscall+0x55f sys/arch/amd64/amd64/trap.c:592 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd5bf0, count: -15 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x4f kd_curproc sys/dev/kcov.c:416 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x4f sys/dev/kcov.c:79 mtx_enter_try(ffffffff8291b970) at mtx_enter_try+0x102 mtx_enter(ffffffff8291b970) at mtx_enter+0x4b sys/kern/kern_lock.c:266 pool_put(ffffffff8291b970,fffffd806b85d2a8) at pool_put+0x64 sys/kern/subr_pool.c:792 pmap_do_remove(fffffd807efff570,c001480000,c001490000,0) at pmap_do_remove+0x61b sys/arch/amd64/amd64/pmap.c:1866 uvm_map_teardown(fffffd806e8fb8a8) at uvm_map_teardown+0x195 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd806e8fb8a8) at uvm_map_teardown+0x195 sys/uvm/uvm_map.c:2739 uvmspace_free(fffffd806e8fb8a8) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3646 uvm_exit(ffff800020e383f0) at uvm_exit+0x29 sys/uvm/uvm_glue.c:297 reaper(ffff800020d89860) at reaper+0x189 sys/kern/kern_exit.c:456 end trace frame: 0x0, count: -12