uvm_fault(0xffffffff827d8a30, 0xfffffd000000001c, 0, 1) -> e kernel: page fault trap, code=0 Stopped at m_free+0x58: movswq 0x1c(%r14),%rsi ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic kernel page fault uvm_fault(0xffffffff827d8a30, 0xfffffd000000001c, 0, 1) -> e m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 end trace frame: 0xffff80002410aec0, count: 0 ddb{1}> trace m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 ml_purge(ffff80002410aed8) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff80002410aed8) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff800000af7a78) 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(ffff80002410b000) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806ed21278,7,fffffd807f7bf780,ffff800020e23d58) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:174 vn_closefile(fffffd8067defe58,ffff800020e23d58) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8067defe58,ffff800020e23d58) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd8067defe58,ffff800020e23d58) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8067defe58,ffff800020e23d58) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800020e23d58) at fdfree+0x101 sys/kern/kern_descrip.c:1195 exit1(ffff800020e23d58,0,19,1) at exit1+0x32c sys/kern/kern_exit.c:197 postsig(ffff800020e23d58,19) at postsig+0x4ed sigexit sys/kern/kern_sig.c:1483 [inline] postsig(ffff800020e23d58,19) at postsig+0x4ed sys/kern/kern_sig.c:1415 userret(ffff800020e23d58) at userret+0x199 sys/kern/kern_sig.c:1872 syscall(ffff80002410b480) at syscall+0x55f mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff80002410b480) at syscall+0x55f sys/arch/amd64/amd64/trap.c:592 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc65c0, count: -15 ddb{1}> show registers rdi 0 rsi 0x32157 acpi_pdirpa+0x1dfbf rbp 0xffff80002410ae80 rbx 0 rdx 0x32156 acpi_pdirpa+0x1dfbe rcx 0xffff800000676d80 rax 0 r8 0xffffffff8206ed57 witness_assert+0x207 r9 0x5 r10 0xb5b571578d8e5790 r11 0x9b3b7cb3143422ee r12 0xfffffd806a9e9300 r13 0x2000 __ALIGN_SIZE+0x1000 r14 0xfffffd0000000000 r15 0xfffffd0000000000 rip 0xffffffff815aa3c8 m_free+0x58 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002410ae40 ss 0x10 m_free+0x58: movswq 0x1c(%r14),%rsi ddb{1}> show proc PROC (syz-executor.0) pid=49503 stat=onproc flags process=a proc=2000 pri=17, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddc008,0xffff800020e23618 process=0xffff800020df1348 user=0xffff800024106000, vmspace=0xfffffd807efffb80 estcpu=36, cpticks=3, pctcpu=0.2 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 33255 3955 94553 0 3 0x2 biowait syz-executor.1 72181 336872 1 0 3 0x100083 ttyin getty 64675 404632 0 0 3 0x14200 bored sosplice 94553 275104 75089 0 3 0x82 thrsleep syz-fuzzer 94553 82067 75089 0 3 0x4000082 nanosleep syz-fuzzer 94553 414405 75089 0 3 0x4000082 thrsleep syz-fuzzer 94553 229613 75089 0 3 0x4000082 thrsleep syz-fuzzer 94553 93621 75089 0 7 0x4000002 syz-fuzzer 94553 280802 75089 0 3 0x4000082 thrsleep syz-fuzzer 94553 324793 75089 0 3 0x4000082 thrsleep syz-fuzzer 94553 399867 75089 0 3 0x4000082 thrsleep syz-fuzzer 94553 47183 75089 0 3 0x4000082 nanosleep syz-fuzzer 94553 423264 75089 0 3 0x4000082 thrsleep syz-fuzzer 75089 515467 26603 0 3 0x10008a pause ksh 26603 97669 94510 0 3 0x92 select sshd 94510 509634 1 0 3 0x80 select sshd 21110 471082 58366 74 3 0x100092 bpf pflogd 58366 233198 1 0 3 0x80 netio pflogd 66784 354250 94960 73 3 0x100090 kqread syslogd 94960 160916 1 0 3 0x100082 netio syslogd 47898 24835 1 77 3 0x100090 poll dhclient 99570 257895 1 0 3 0x80 poll dhclient 91161 338755 0 0 3 0x14200 bored smr 77113 106141 0 0 2 0x14200 zerothread 50300 331973 0 0 3 0x14200 aiodoned aiodoned 738 380542 0 0 3 0x14200 syncer update 25163 242979 0 0 3 0x14200 cleaner cleaner 26906 217867 0 0 3 0x14200 reaper reaper 71783 166528 0 0 3 0x14200 pgdaemon pagedaemon 82148 361752 0 0 3 0x14200 bored crynlk 39353 356455 0 0 3 0x14200 bored crypto 17373 57181 0 0 3 0x40014200 acpi0 acpi0 13679 196119 0 0 3 0x40014200 idle1 53802 335440 0 0 3 0x14200 bored softnet 63487 298360 0 0 3 0x14200 bored systqmp 63691 397318 0 0 3 0x14200 bored systq 11486 92788 0 0 3 0x40014200 bored softclock 71640 23412 0 0 3 0x40014200 idle0 1 461057 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 33255 (syz-executor.1) thread 0xffff800020e23878 (3955) exclusive rrwlock inode r = 0 (0xfffffd806f6e9d60) #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 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x13e sys/ufs/ffs/ffs_vfsops.c:1358 #5 ffs_inode_alloc+0x1e2 sys/ufs/ffs/ffs_alloc.c:394 #6 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1162 #7 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #8 domkdirat+0x121 sys/kern/vfs_syscalls.c:3051 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #10 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806ed1e2b8) #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 domkdirat+0x75 sys/kern/vfs_syscalls.c:3036 #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9531 6443K 6960K 78643K 12221 0 pcb 13 8K 8K 78643K 82 0 rtable 117 6K 7K 78643K 535 0 ifaddr 77 14K 16K 78643K 173 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 57 0 ioctlops 0 0K 4K 78643K 1630 0 iov 0 0K 16K 78643K 33 0 mount 1 1K 1K 78643K 1 0 vnodes 1238 78K 78K 78643K 1730 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 12 0 dirhash 6 1K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 4 9K 25K 78643K 856 0 sigio 1 0K 0K 78643K 9 0 proc 62 63K 95K 78643K 579 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 70 0 in_multi 64 3K 3K 78643K 169 0 ether_multi 1 0K 0K 78643K 17 0 mrt 0 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 67 307K 307K 78643K 67 0 exec 0 0K 1K 78643K 270 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 125 55K 55K 78643K 3244 0 UVM aobj 5 2K 3K 78643K 15 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 1K 78643K 74 0 NDP 13 0K 0K 78643K 34 0 temp 140 3868K 3951K 78643K 10036 0 kqueue 3 4K 16K 78643K 67 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 10 0 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 63 0 61 1 0 1 1 0 8 0 rtentry 112 78 0 34 2 0 2 2 0 8 0 unpcb 120 222 0 212 1 0 1 1 0 8 0 syncache 264 12 0 12 2 2 0 1 0 8 0 tcpqe 32 5 0 5 1 1 0 1 0 8 0 tcpcb 544 255 0 246 3 2 1 2 0 8 0 inpcb 296 670 0 658 3 1 2 2 0 8 1 nd6 48 20 0 14 1 0 1 1 0 8 0 ppxss 1128 2 0 2 1 1 0 1 0 8 0 pfstscr 40 18 0 18 1 1 0 1 0 8 0 pffrag 232 6 0 6 3 3 0 1 0 482 0 pffrnode 88 6 0 6 3 3 0 1 0 8 0 pffrent 40 12 0 12 3 3 0 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 pfrke_plain 160 11 0 8 1 0 1 1 0 8 0 pfrktable 1344 72 0 69 1 0 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfstitem 24 46 0 21 1 0 1 1 0 8 0 pfstkey 112 62 0 37 2 0 2 2 0 8 0 pfstate 328 53 0 28 3 0 3 3 0 8 0 pfrule 1360 48 0 33 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 303 0 112 12 0 12 12 0 8 0 art_table 32 304 0 112 2 0 2 2 0 8 0 art_node 16 77 0 37 1 0 1 1 0 8 0 sysvmsgpl 40 23 0 16 1 0 1 1 0 8 0 semupl 112 7 0 7 1 1 0 1 0 8 0 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 13 0 10 3 2 1 1 0 8 0 dirhash 1024 17 0 13 3 1 2 3 0 8 0 dino2pl 256 2496 0 1089 89 0 89 89 0 8 0 ffsino 272 2496 0 1089 95 0 95 95 0 8 1 nchpl 144 3666 0 2069 60 0 60 60 0 8 0 rtmask 32 18 0 17 1 0 1 1 0 8 0 uvmvnodes 72 2945 0 0 54 0 54 54 0 8 0 vnodes 208 2945 0 0 155 0 155 155 0 8 0 namei 1024 10287 0 10286 1 0 1 1 0 8 0 percpumem 16 39 0 7 1 0 1 1 0 8 0 vcpupl 1984 3 0 0 1 0 1 1 0 8 0 vmpool 560 4 0 1 1 0 1 1 0 8 0 pfiaddrpl 120 16 0 14 2 1 1 1 0 8 0 scxspl 192 11025 0 11024 8 7 1 7 0 8 0 plimitpl 152 68 0 60 1 0 1 1 0 8 0 sigapl 424 1067 0 1036 4 0 4 4 0 8 0 futexpl 56 7121 0 7121 1 0 1 1 0 8 1 knotepl 112 168 0 149 1 0 1 1 0 8 0 kqueuepl 144 100 0 98 1 0 1 1 0 8 0 pipelkpl 48 97 0 87 1 0 1 1 0 8 0 pipepl 120 194 0 176 1 0 1 1 0 8 0 fdescpl 496 1051 0 1036 3 0 3 3 0 8 0 filepl 152 4466 0 4376 5 0 5 5 0 8 1 lockfpl 104 115 0 114 1 0 1 1 0 8 0 lockfspl 48 46 0 45 1 0 1 1 0 8 0 sessionpl 112 21 0 10 1 0 1 1 0 8 0 pgrppl 48 23 0 12 1 0 1 1 0 8 0 ucredpl 96 444 0 435 1 0 1 1 0 8 0 zombiepl 144 1037 0 1036 1 0 1 1 0 8 0 processpl 984 1067 0 1036 5 0 5 5 0 8 0 procpl 624 2356 0 2316 4 0 4 4 0 8 0 sosppl 128 11 0 11 3 2 1 1 0 8 1 sockpl 400 955 0 931 6 2 4 4 0 8 1 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 11 0 0 2 0 2 2 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 180 0 0 22 0 22 22 0 8 0 mtagpl 96 95 0 0 3 0 3 3 0 8 0 mbufpl 256 340 0 0 21 0 21 21 0 8 0 bufpl 280 4564 0 132 317 0 317 317 0 8 0 anonpl 16 97709 0 86138 65 9 56 64 0 124 0 amapchunkpl 152 4963 0 4833 16 9 7 11 0 158 0 amappl16 192 4896 0 4180 51 14 37 48 0 8 0 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 352 0 348 1 0 1 1 0 8 0 amappl13 168 42 0 39 1 0 1 1 0 8 0 amappl12 160 350 0 346 1 0 1 1 0 8 0 amappl11 152 60 0 45 1 0 1 1 0 8 0 amappl10 144 18 0 13 1 0 1 1 0 8 0 amappl9 136 387 0 385 1 0 1 1 0 8 0 amappl8 128 367 0 340 1 0 1 1 0 8 0 amappl7 120 149 0 133 1 0 1 1 0 8 0 amappl6 112 27 0 20 1 0 1 1 0 8 0 amappl5 104 667 0 651 1 0 1 1 0 8 0 amappl4 96 805 0 775 1 0 1 1 0 8 0 amappl3 88 394 0 389 1 0 1 1 0 8 0 amappl2 80 7344 0 7277 2 0 2 2 0 8 0 amappl1 72 30351 0 29927 23 13 10 18 0 8 0 amappl 80 2654 0 2606 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 14 0 10 1 0 1 1 0 8 0 uaddrrnd 24 1055 0 1037 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1055 0 1037 1 0 1 1 0 8 0 vmmpekpl 168 9514 0 9478 2 0 2 2 0 8 0 vmmpepl 168 130006 0 128239 140 48 92 109 0 357 9 vmsppl 368 1054 0 1037 2 0 2 2 0 8 0 pdppl 4096 2117 0 2077 6 0 6 6 0 8 0 pvpl 32 330618 0 315982 164 23 141 157 0 265 0 pmappl 232 1054 0 1037 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 275 0 8 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff826f8ff0) 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(ffffffff828ac5d8) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828ac5d8) at __mp_lock+0x127 sys/kern/kern_lock.c:147 intr_handler(ffff800020e95cf0,ffff80000004a400) at intr_handler+0x5e sys/arch/amd64/amd64/intr.c:532 Xintr_ioapic_edge17_untramp() at Xintr_ioapic_edge17_untramp+0x19f __mp_lock(ffffffff828ac5d8) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828ac5d8) at __mp_lock+0x127 sys/kern/kern_lock.c:147 syscall(ffff800020e95ec0) at syscall+0x400 mi_syscall sys/sys/syscall_mi.h:93 [inline] syscall(ffff800020e95ec0) at syscall+0x400 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc00011be98, count: -9 ddb{0}> machine ddbcpu 1 Stopped at m_free+0x58: movswq 0x1c(%r14),%rsi ddb{1}> trace m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 ml_purge(ffff80002410aed8) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff80002410aed8) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff800000af7a78) 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(ffff80002410b000) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806ed21278,7,fffffd807f7bf780,ffff800020e23d58) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:174 vn_closefile(fffffd8067defe58,ffff800020e23d58) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8067defe58,ffff800020e23d58) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd8067defe58,ffff800020e23d58) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8067defe58,ffff800020e23d58) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800020e23d58) at fdfree+0x101 sys/kern/kern_descrip.c:1195 exit1(ffff800020e23d58,0,19,1) at exit1+0x32c sys/kern/kern_exit.c:197 postsig(ffff800020e23d58,19) at postsig+0x4ed sigexit sys/kern/kern_sig.c:1483 [inline] postsig(ffff800020e23d58,19) at postsig+0x4ed sys/kern/kern_sig.c:1415 userret(ffff800020e23d58) at userret+0x199 sys/kern/kern_sig.c:1872 syscall(ffff80002410b480) at syscall+0x55f mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff80002410b480) at syscall+0x55f sys/arch/amd64/amd64/trap.c:592 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc65c0, count: -15