uvm_fault(0xffffffff82887cc0, 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(0xffffffff82887cc0, 0xfffffd000000001c, 0, 1) -> e m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 end trace frame: 0xffff8000230fef00, count: 0 ddb{0}> trace m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 ml_purge(ffff8000230fef18) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff8000230fef18) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff800000ac6278) at ifq_purge+0x9a sys/net/ifq.c:529 tun_dev_close(5d00,7) at tun_dev_close+0xc8 sys/net/if_tun.c:460 spec_close(ffff8000230ff040) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806ecf3348,7,fffffd807f7bf720,ffff800020e09eb8) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:174 vn_closefile(fffffd80666b9318,ffff800020e09eb8) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd80666b9318,ffff800020e09eb8) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd80666b9318,ffff800020e09eb8) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd80666b9318,ffff800020e09eb8) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800020e09eb8) at fdfree+0x101 sys/kern/kern_descrip.c:1195 exit1(ffff800020e09eb8,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff800020e09eb8,ffff8000230ff2d0,ffff8000230ff320) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff8000230ff3a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000230ff3a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff4900, count: -14 ddb{0}> show registers rdi 0 rsi 0x5bbf9 acpi_pdirpa+0x47a61 rbp 0xffff8000230feec0 rbx 0 rdx 0x5bbf8 acpi_pdirpa+0x47a60 rcx 0xffffffff826ee100 mbstat_boot_boot_cpumem rax 0 r8 0xffffffff81a2f1f7 witness_assert+0x207 r9 0x5 r10 0xf2a0be77d3bf7e86 r11 0x30100f8a3218e321 r12 0xfffffd807e6da700 r13 0x2000 __ALIGN_SIZE+0x1000 r14 0xfffffd0000000000 r15 0xfffffd0000000000 rip 0xffffffff810cb528 m_free+0x58 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff8000230fee80 ss 0x10 m_free+0x58: movswq 0x1c(%r14),%rsi ddb{0}> show proc PROC (syz-executor.0) pid=251287 stat=onproc flags process=1008 proc=2000 pri=0, usrpri=70, nice=20 forw=0xffffffffffffffff, list=0xffff800020e099d8,0xffffffff828fee10 process=0xffff800020ec7388 user=0xffff8000230fa000, vmspace=0xfffffd807f000000 estcpu=20, cpticks=8, pctcpu=1.1 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 3434 325318 0 0 3 0x14200 bored sosplice 10930 108845 41311 0 2 0x2 syz-executor.1 41311 211766 34014 0 3 0x82 thrsleep syz-fuzzer 41311 77423 34014 0 3 0x4000082 nanosleep syz-fuzzer 41311 404844 34014 0 3 0x4000082 thrsleep syz-fuzzer 41311 88340 34014 0 3 0x4000082 thrsleep syz-fuzzer 41311 177447 34014 0 3 0x4000082 thrsleep syz-fuzzer 41311 512066 34014 0 3 0x4000082 nanosleep syz-fuzzer 41311 146966 34014 0 3 0x4000082 thrsleep syz-fuzzer 41311 142805 34014 0 3 0x4000082 thrsleep syz-fuzzer 41311 37333 34014 0 7 0x4000002 syz-fuzzer 41311 233862 34014 0 3 0x4000082 thrsleep syz-fuzzer 34014 35627 37498 0 3 0x10008a pause ksh 37498 369299 75914 0 3 0x92 select sshd 53022 360519 1 0 3 0x100083 ttyin getty 75914 25071 1 0 3 0x80 select sshd 1070 323512 17890 74 3 0x100092 bpf pflogd 17890 497498 1 0 3 0x80 netio pflogd 15366 349747 15733 73 3 0x100090 kqread syslogd 15733 98876 1 0 3 0x100082 netio syslogd 19865 100460 1 77 3 0x100090 poll dhclient 2685 288791 1 0 3 0x80 poll dhclient 10029 523868 0 0 3 0x14200 bored smr 17318 523042 0 0 2 0x14200 zerothread 37753 464632 0 0 3 0x14200 aiodoned aiodoned 90418 135310 0 0 3 0x14200 syncer update 87797 183966 0 0 3 0x14200 cleaner cleaner 30099 212591 0 0 3 0x14200 reaper reaper 95680 377466 0 0 3 0x14200 pgdaemon pagedaemon 6503 516133 0 0 3 0x14200 bored crynlk 51940 320844 0 0 3 0x14200 bored crypto 96773 289365 0 0 3 0x40014200 acpi0 acpi0 1840 332676 0 0 3 0x40014200 idle1 79771 160956 0 0 3 0x14200 bored softnet 66088 376467 0 0 3 0x14200 bored systqmp 68022 401977 0 0 3 0x14200 bored systq 22990 266116 0 0 3 0x40014200 bored softclock 89533 378845 0 0 3 0x40014200 idle0 1 255076 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 10930 (syz-executor.1) thread 0xffff800020e0aae8 (108845) exclusive rrwlock inode r = 0 (0xfffffd806436bb48) #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 (0xfffffd80685854e0) #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 9511 6413K 6801K 78643K 10855 0 pcb 13 8K 8K 78643K 45 0 rtable 112 4K 5K 78643K 266 0 ifaddr 73 14K 15K 78643K 111 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 51 0 ioctlops 0 0K 4K 78643K 1486 0 iov 0 0K 12K 78643K 11 0 mount 1 1K 1K 78643K 1 0 vnodes 1227 77K 77K 78643K 1324 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 6 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 38 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 4 9K 25K 78643K 224 0 sigio 0 0K 0K 78643K 4 0 proc 63 63K 95K 78643K 462 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 48 0 in_multi 53 3K 3K 78643K 97 0 ether_multi 1 0K 0K 78643K 7 0 mrt 0 0K 0K 78643K 2 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 212 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 112 22K 26K 78643K 1644 0 UVM aobj 11 2K 2K 78643K 11 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 24 0 NDP 11 0K 0K 78643K 25 0 temp 100 3863K 3930K 78643K 4498 0 kqueue 3 4K 8K 78643K 6 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 7 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 23 0 21 1 0 1 1 0 8 0 rtentry 112 53 0 8 2 0 2 2 0 8 0 unpcb 120 175 0 165 2 1 1 2 0 8 0 syncache 264 6 0 6 2 2 0 1 0 8 0 tcpqe 32 1142 0 1142 2 2 0 1 0 8 0 tcpcb 544 86 0 80 1 0 1 1 0 8 0 inpcb 296 261 0 252 2 0 2 2 0 8 1 rttmr 72 1 0 1 1 0 1 1 0 8 1 nd6 48 12 0 6 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 4 0 2 1 0 1 1 0 8 0 pfstitem 24 28 0 3 1 0 1 1 0 8 0 pfstkey 112 28 0 3 1 0 1 1 0 8 0 pfstate 328 28 0 3 3 0 3 3 0 8 0 pfrule 1360 23 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 194 0 0 13 0 13 13 0 8 0 art_table 32 195 0 0 2 0 2 2 0 8 0 art_node 16 52 0 11 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 36 0 26 1 0 1 1 0 8 0 shmpl 112 8 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1701 0 294 90 1 89 89 0 8 0 ffsino 272 1701 0 294 96 1 95 95 0 8 0 nchpl 144 2320 0 718 60 0 60 60 0 8 0 uvmvnodes 72 1810 0 0 33 0 33 33 0 8 0 vnodes 208 1810 0 0 96 0 96 96 0 8 0 namei 1024 6119 0 6119 3 2 1 1 0 8 1 percpumem 16 36 0 4 1 0 1 1 0 8 0 pfiaddrpl 120 2 0 0 1 0 1 1 0 8 0 scxspl 192 6468 0 6468 10 8 2 7 0 8 2 plimitpl 152 27 0 19 1 0 1 1 0 8 0 sigapl 424 440 0 409 4 0 4 4 0 8 0 futexpl 56 2996 0 2996 2 1 1 1 0 8 1 knotepl 112 65 0 46 1 0 1 1 0 8 0 kqueuepl 144 26 0 24 1 0 1 1 0 8 0 pipepl 304 111 0 101 2 1 1 2 0 8 0 fdescpl 496 424 0 409 3 0 3 3 0 8 0 filepl 152 2454 0 2366 7 2 5 5 0 8 1 lockfpl 104 48 0 47 1 0 1 1 0 8 0 lockfspl 48 18 0 17 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 22 0 11 1 0 1 1 0 8 0 ucredpl 96 171 0 162 1 0 1 1 0 8 0 zombiepl 144 410 0 408 2 1 1 1 0 8 0 processpl 992 440 0 408 6 1 5 5 0 8 0 procpl 624 880 0 839 4 0 4 4 0 8 0 sosppl 128 4 0 4 2 1 1 1 0 8 1 sockpl 400 459 0 438 7 3 4 5 0 8 1 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 8 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 7 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 184 0 0 22 0 22 22 0 8 0 mtagpl 96 20 0 0 1 0 1 1 0 8 0 mbufpl 256 212 0 0 14 1 13 13 0 8 0 bufpl 280 3656 0 133 252 0 252 252 0 8 0 anonpl 16 51396 0 34519 70 1 69 69 0 124 0 amapchunkpl 152 2152 0 2005 8 1 7 8 0 158 0 amappl16 192 1908 0 996 47 0 47 47 0 8 0 amappl15 184 9 0 9 2 1 1 1 0 8 1 amappl14 176 25 0 22 1 0 1 1 0 8 0 amappl13 168 31 0 27 1 0 1 1 0 8 0 amappl12 160 5 0 4 2 1 1 1 0 8 0 amappl11 152 56 0 40 1 0 1 1 0 8 0 amappl10 144 17 0 12 1 0 1 1 0 8 0 amappl9 136 486 0 483 1 0 1 1 0 8 0 amappl8 128 435 0 408 1 0 1 1 0 8 0 amappl7 120 127 0 113 1 0 1 1 0 8 0 amappl6 112 23 0 19 1 0 1 1 0 8 0 amappl5 104 317 0 301 1 0 1 1 0 8 0 amappl4 96 492 0 464 1 0 1 1 0 8 0 amappl3 88 114 0 108 1 0 1 1 0 8 0 amappl2 80 2389 0 2319 2 0 2 2 0 8 0 amappl1 72 19126 0 18684 23 13 10 18 0 8 0 amappl 80 1127 0 1084 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 10 0 0 1 0 1 1 0 8 0 uaddrrnd 24 424 0 409 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 424 0 409 1 0 1 1 0 8 0 vmmpekpl 168 7304 0 7271 2 0 2 2 0 8 0 vmmpepl 168 58268 0 56268 124 28 96 117 0 357 3 vmsppl 368 423 0 409 2 0 2 2 0 8 0 pdppl 4096 855 0 818 7 1 6 6 0 8 1 pvpl 32 173220 0 152773 169 2 167 167 0 265 0 pmappl 232 423 0 409 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 271 0 12 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(ffff8000230fef18) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff8000230fef18) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff800000ac6278) at ifq_purge+0x9a sys/net/ifq.c:529 tun_dev_close(5d00,7) at tun_dev_close+0xc8 sys/net/if_tun.c:460 spec_close(ffff8000230ff040) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806ecf3348,7,fffffd807f7bf720,ffff800020e09eb8) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:174 vn_closefile(fffffd80666b9318,ffff800020e09eb8) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd80666b9318,ffff800020e09eb8) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd80666b9318,ffff800020e09eb8) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd80666b9318,ffff800020e09eb8) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800020e09eb8) at fdfree+0x101 sys/kern/kern_descrip.c:1195 exit1(ffff800020e09eb8,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff800020e09eb8,ffff8000230ff2d0,ffff8000230ff320) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff8000230ff3a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000230ff3a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff4900, 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(ffffffff828b5398) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828b5398) at __mp_lock+0x127 sys/kern/kern_lock.c:147 uvm_map_inentry(ffff800020ddc008,ffff800020ddc068,c0000405f0,ffffffff82424055,ffffffff81855d50,5b) at uvm_map_inentry+0xbe sys/uvm/uvm_map.c:1890 syscall(ffff800020e9a5a0) at syscall+0x397 mi_syscall sys/sys/syscall_mi.h:81 [inline] syscall(ffff800020e9a5a0) at syscall+0x397 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc000040640, count: -7