uvm_fault(0xffffffff827c3dc8, 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(0xffffffff827c3dc8, 0xfffffd000000001c, 0, 1) -> e m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 end trace frame: 0xffff800020e02630, count: 0 ddb{0}> trace m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 ml_purge(ffff800020e02648) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff800020e02648) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff800000af9a78) at ifq_purge+0x9a sys/net/ifq.c:529 tun_dev_close(5d01,7) at tun_dev_close+0xc8 sys/net/if_tun.c:460 spec_close(ffff800020e02770) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806eda0348,7,fffffd807f7bf600,ffff800020e3f010) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:174 vn_closefile(fffffd8067c41b68,ffff800020e3f010) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8067c41b68,ffff800020e3f010) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd8067c41b68,ffff800020e3f010) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8067c41b68,ffff800020e3f010) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800020e3f010) at fdfree+0x101 sys/kern/kern_descrip.c:1195 exit1(ffff800020e3f010,0,0,3) at exit1+0x32c sys/kern/kern_exit.c:197 single_thread_check(ffff800020e3f010,0) at single_thread_check+0x14b sys/kern/kern_sig.c:1923 userret(ffff800020e3f010) at userret+0x345 sys/kern/kern_sig.c:1896 syscall(ffff800020e02b50) at syscall+0x55f mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff800020e02b50) at syscall+0x55f sys/arch/amd64/amd64/trap.c:592 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeabf0, count: -15 ddb{0}> show registers rdi 0 rsi 0x76511 acpi_pdirpa+0x62379 rbp 0xffff800020e025f0 rbx 0 rdx 0x76510 acpi_pdirpa+0x62378 rcx 0xffffffff8277afc0 mbstat_boot_boot_cpumem rax 0 r8 0xffffffff81882727 witness_assert+0x207 r9 0x5 r10 0xf0986a239bb7efb5 r11 0xaab89a80b423238b r12 0xfffffd80647ce900 r13 0x2000 __ALIGN_SIZE+0x1000 r14 0xfffffd0000000000 r15 0xfffffd0000000000 rip 0xffffffff81eecf48 m_free+0x58 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800020e025b0 ss 0x10 m_free+0x58: movswq 0x1c(%r14),%rsi ddb{0}> show proc PROC (syz-executor.1) pid=494415 stat=onproc flags process=1008 proc=82000 pri=32, usrpri=74, nice=20 forw=0xffffffffffffffff, list=0xffff800020e38608,0xffffffff828b5300 process=0xffff8000fffff758 user=0xffff800020dfd000, vmspace=0xfffffd80684a2460 estcpu=24, cpticks=3, pctcpu=0.3 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 63374 448296 1 0 3 0x100083 ttyin getty 91366 395608 0 0 3 0x14280 nfsidl nfsio 60913 421519 0 0 3 0x14280 nfsidl nfsio 76213 445615 0 0 3 0x14280 nfsidl nfsio 3259 152116 0 0 3 0x14280 nfsidl nfsio 31094 467598 0 0 3 0x14280 nfsidl nfsio 94211 399523 0 0 3 0x14280 nfsidl nfsio 62952 477751 0 0 3 0x14280 nfsidl nfsio 30977 256866 0 0 3 0x14280 nfsidl nfsio 18245 267628 0 0 3 0x14280 nfsidl nfsio 12512 161142 0 0 3 0x14280 nfsidl nfsio 81166 162595 0 0 3 0x14280 nfsidl nfsio 31855 325313 0 0 3 0x14280 nfsidl nfsio 56909 37666 0 0 3 0x14280 nfsidl nfsio 20751 436672 0 0 3 0x14280 nfsidl nfsio 13689 368734 0 0 3 0x14280 nfsidl nfsio 64655 518080 0 0 3 0x14280 nfsidl nfsio 56973 15106 0 0 3 0x14280 nfsidl nfsio 88282 323091 0 0 3 0x14280 nfsidl nfsio 2286 310094 0 0 3 0x14280 nfsidl nfsio 16392 300103 0 0 3 0x14280 nfsidl nfsio 49741 458823 0 0 3 0x14200 bored sosplice 12400 194164 51694 0 2 0x3 syz-executor.0 51694 16265 37212 0 3 0x82 thrsleep syz-fuzzer 51694 275109 37212 0 3 0x4000082 nanosleep syz-fuzzer 51694 164109 37212 0 3 0x4000082 thrsleep syz-fuzzer 51694 234340 37212 0 3 0x4000082 thrsleep syz-fuzzer 51694 425801 37212 0 3 0x4000082 thrsleep syz-fuzzer 51694 392779 37212 0 3 0x4000082 thrsleep syz-fuzzer 51694 70220 37212 0 3 0x4000082 thrsleep syz-fuzzer 51694 194850 37212 0 7 0x4000082 syz-fuzzer 51694 24446 37212 0 3 0x4000082 thrsleep syz-fuzzer 51694 340431 37212 0 3 0x4000082 thrsleep syz-fuzzer 37212 470200 87516 0 3 0x10008a pause ksh 87516 374304 76677 0 3 0x92 select sshd 76677 267508 1 0 3 0x80 select sshd 45893 443339 11633 74 3 0x100092 bpf pflogd 11633 365616 1 0 3 0x80 netio pflogd 21528 404745 25857 73 2 0x100010 syslogd 25857 59455 1 0 3 0x100082 netio syslogd 59963 295691 1 77 3 0x100090 poll dhclient 73742 402087 1 0 3 0x80 poll dhclient 26722 381666 0 0 3 0x14200 bored smr 360 191484 0 0 2 0x14200 zerothread 82886 321000 0 0 3 0x14200 aiodoned aiodoned 35875 128396 0 0 3 0x14200 syncer update 23600 392347 0 0 3 0x14200 cleaner cleaner 50340 521283 0 0 2 0x14200 reaper 29957 97192 0 0 3 0x14200 pgdaemon pagedaemon 9045 96972 0 0 3 0x14200 bored crynlk 58180 127325 0 0 3 0x14200 bored crypto 44127 13473 0 0 3 0x40014200 acpi0 acpi0 2054 173031 0 0 3 0x40014200 idle1 67576 165393 0 0 3 0x14200 bored softnet 42636 348626 0 0 3 0x14200 bored systqmp 34661 14367 0 0 3 0x14200 bored systq 84497 201677 0 0 2 0x40014200 softclock 31294 248613 0 0 3 0x40014200 idle0 1 24562 0 0 2 0x82 init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 21528 (syslogd) thread 0xffff800020e3f9d0 (404745) exclusive rrwlock inode r = 0 (0xfffffd806ec30d58) #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 sys_fsync+0x113 sys/kern/vfs_syscalls.c:2874 #6 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #6 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #7 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9530 6429K 7566K 78643K 15355 0 pcb 13 8K 8K 78643K 170 0 rtable 128 9K 11K 78643K 732 0 ifaddr 97 19K 20K 78643K 270 0 sysctl 3 1K 1K 78643K 3 0 counters 43 33K 34K 78643K 73 0 ioctlops 0 0K 4K 78643K 1657 0 iov 0 0K 16K 78643K 77 0 mount 1 1K 1K 78643K 1 0 vnodes 1218 77K 77K 78643K 2389 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 27 0 VM map 2 1K 1K 78643K 2 0 sem 10 1K 1K 78643K 13 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 4 9K 25K 78643K 1245 0 sigio 0 0K 0K 78643K 18 0 proc 62 63K 95K 78643K 656 0 subproc 23 1K 2K 78643K 68 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 99 0 in_multi 61 3K 3K 78643K 287 0 ether_multi 1 0K 0K 78643K 26 0 mrt 1 0K 0K 78643K 8 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 61 281K 281K 78643K 61 0 exec 0 0K 1K 78643K 314 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 145 88K 88K 78643K 5092 0 UVM aobj 39 7K 7K 78643K 40 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 1K 78643K 124 0 NDP 13 0K 0K 78643K 70 0 temp 152 3885K 3949K 78643K 22574 0 kqueue 3 4K 14K 78643K 55 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 18 0 7 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 93 0 91 1 0 1 1 0 8 0 rtentry 112 142 0 101 2 0 2 2 0 8 0 unpcb 120 338 0 328 1 0 1 1 0 8 0 syncache 264 11 0 11 4 4 0 1 0 8 0 tcpqe 32 94 0 94 1 1 0 1 0 8 0 tcpcb 544 1176 0 1168 1 0 1 1 0 8 0 inpcb 296 2016 0 2008 4 2 2 2 0 8 1 rttmr 72 2 0 2 1 1 0 1 0 8 0 nd6 48 51 0 46 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 pfstscr 40 6 0 6 1 1 0 1 0 8 0 pffrag 232 8 0 7 4 3 1 1 0 482 0 pffrnode 88 8 0 7 4 3 1 1 0 8 0 pffrent 40 148 0 147 4 3 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 61 0 49 5 4 1 2 0 8 0 pftag 88 2 0 2 1 1 0 1 0 8 0 pfstitem 24 76 0 53 1 0 1 1 0 8 0 pfstkey 112 80 0 57 2 0 2 2 0 8 0 pfstate 328 76 0 53 5 1 4 5 0 8 0 pfrule 1360 61 0 40 3 1 2 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 471 0 307 18 3 15 16 0 8 1 art_table 32 473 0 307 3 1 2 3 0 8 0 art_node 16 141 0 105 1 0 1 1 0 8 0 sysvmsgpl 40 37 0 11 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 10 0 2 1 0 1 1 0 8 0 shmpl 112 37 0 1 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2905 0 1503 89 0 89 89 0 8 0 ffsino 272 2905 0 1503 94 0 94 94 0 8 0 nchpl 144 4832 0 3233 60 0 60 60 0 8 0 uvmvnodes 72 4022 0 0 74 0 74 74 0 8 0 vnodes 208 4022 0 0 212 0 212 212 0 8 0 namei 1024 14013 0 14013 5 4 1 1 0 8 1 percpumem 16 47 0 15 1 0 1 1 0 8 0 vcpupl 1984 8 0 0 1 0 1 1 0 8 0 vmpool 560 15 0 7 1 0 1 1 0 8 0 pfiaddrpl 120 24 0 11 2 1 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 14397 0 14397 15 14 1 7 0 8 1 plimitpl 152 97 0 89 1 0 1 1 0 8 0 sigapl 424 1477 0 1426 7 1 6 7 0 8 0 futexpl 56 18135 0 18135 4 3 1 1 0 8 1 knotepl 112 146 0 127 1 0 1 1 0 8 0 kqueuepl 144 148 0 144 1 0 1 1 0 8 0 pipepl 304 258 0 248 4 3 1 2 0 8 0 fdescpl 496 1440 0 1425 3 0 3 3 0 8 0 filepl 152 8179 0 8091 6 1 5 5 0 8 1 lockfpl 104 189 0 188 1 0 1 1 0 8 0 lockfspl 48 71 0 70 1 0 1 1 0 8 0 sessionpl 112 21 0 10 1 0 1 1 0 8 0 pgrppl 48 43 0 32 1 0 1 1 0 8 0 ucredpl 96 740 0 729 1 0 1 1 0 8 0 zombiepl 144 1427 0 1424 1 0 1 1 0 8 0 processpl 992 1477 0 1424 8 1 7 7 0 8 0 procpl 624 4184 0 4122 6 0 6 6 0 8 1 sosppl 128 11 0 11 2 2 0 1 0 8 0 sockpl 400 2453 0 2434 8 5 3 4 0 8 1 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 9 0 0 2 0 2 2 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 178 0 0 21 0 21 21 0 8 0 mtagpl 96 495 0 0 12 0 12 12 0 8 0 mbufpl 256 1234 0 0 75 0 75 75 0 8 0 bufpl 280 5692 0 138 397 0 397 397 0 8 0 anonpl 16 161830 0 139936 119 30 89 89 0 124 1 amapchunkpl 152 9500 0 9313 21 12 9 14 0 158 0 amappl16 192 7051 0 5858 93 33 60 60 0 8 0 amappl15 184 561 0 559 1 0 1 1 0 8 0 amappl14 176 29 0 23 1 0 1 1 0 8 0 amappl13 168 81 0 78 1 0 1 1 0 8 0 amappl12 160 12 0 11 2 1 1 1 0 8 0 amappl11 152 62 0 47 1 0 1 1 0 8 0 amappl10 144 592 0 583 1 0 1 1 0 8 0 amappl9 136 386 0 385 1 0 1 1 0 8 0 amappl8 128 414 0 376 2 0 2 2 0 8 0 amappl7 120 706 0 693 1 0 1 1 0 8 0 amappl6 112 24 0 22 1 0 1 1 0 8 0 amappl5 104 1338 0 1320 1 0 1 1 0 8 0 amappl4 96 564 0 538 1 0 1 1 0 8 0 amappl3 88 131 0 125 1 0 1 1 0 8 0 amappl2 80 10484 0 10414 2 0 2 2 0 8 0 amappl1 72 53917 0 53446 23 13 10 18 0 8 0 amappl 80 4477 0 4423 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 39 0 1 1 0 1 1 0 8 0 uaddrrnd 24 1455 0 1431 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1455 0 1431 1 0 1 1 0 8 0 vmmpekpl 168 14790 0 14744 3 0 3 3 0 8 0 vmmpepl 168 193735 0 191333 179 59 120 124 0 357 15 vmsppl 368 1454 0 1431 3 0 3 3 0 8 0 pdppl 4096 2917 0 2870 11 4 7 7 0 8 0 pvpl 32 469689 0 444091 268 59 209 209 0 265 1 pmappl 232 1454 0 1431 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 346 0 19 10 0 10 10 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(ffff800020e02648) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff800020e02648) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff800000af9a78) at ifq_purge+0x9a sys/net/ifq.c:529 tun_dev_close(5d01,7) at tun_dev_close+0xc8 sys/net/if_tun.c:460 spec_close(ffff800020e02770) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806eda0348,7,fffffd807f7bf600,ffff800020e3f010) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:174 vn_closefile(fffffd8067c41b68,ffff800020e3f010) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8067c41b68,ffff800020e3f010) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd8067c41b68,ffff800020e3f010) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8067c41b68,ffff800020e3f010) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800020e3f010) at fdfree+0x101 sys/kern/kern_descrip.c:1195 exit1(ffff800020e3f010,0,0,3) at exit1+0x32c sys/kern/kern_exit.c:197 single_thread_check(ffff800020e3f010,0) at single_thread_check+0x14b sys/kern/kern_sig.c:1923 userret(ffff800020e3f010) at userret+0x345 sys/kern/kern_sig.c:1896 syscall(ffff800020e02b50) at syscall+0x55f mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff800020e02b50) at syscall+0x55f sys/arch/amd64/amd64/trap.c:592 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeabf0, 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 __mp_lock(ffffffff8291ad58) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8291ad58) at __mp_lock+0x127 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff8291ad58,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(ffff800020eae0f0,1) at sleep_finish+0x113 sys/kern/kern_synch.c:418 sleep_finish_all(ffff800020eae0f0,1) at sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:447 [inline] sleep_finish_all(ffff800020eae0f0,1) at sleep_finish_all+0x32 sys/kern/kern_synch.c:393 tsleep(fffffd806e90db40,118,ffffffff82467559,0) at tsleep+0x1cc sys/kern/kern_synch.c:155 kqueue_sleep(fffffd806e90db40,0) at kqueue_sleep+0x1a0 sys/kern/kern_event.c:885 kqueue_scan(fffffd806e90db40,40,c0000db698,0,ffff800020ddcc38,ffff800020eae5cc) at kqueue_scan+0x2b6 sys/kern/kern_event.c:928 sys_kevent(ffff800020ddcc38,ffff800020eae640,ffff800020eae690) at sys_kevent+0x464 sys/kern/kern_event.c:640 syscall(ffff800020eae710) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020eae710) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc0000dbe98, count: -14