uvm_fault(0xffffffff827b0b88, 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(0xffffffff827b0b88, 0xfffffd000000001c, 0, 1) -> e m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 end trace frame: 0xffff800020edeb40, count: 0 ddb{1}> trace m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 ml_purge(ffff800020edeb58) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff800020edeb58) 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(ffff800020edec80) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e7865b8,7,fffffd807f7bfa20,ffff800020dddd48) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:174 vn_closefile(fffffd80687f9bf8,ffff800020dddd48) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd80687f9bf8,ffff800020dddd48) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd80687f9bf8,ffff800020dddd48) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd80687f9bf8,ffff800020dddd48) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800020dddd48) at fdfree+0x101 sys/kern/kern_descrip.c:1195 exit1(ffff800020dddd48,0,d,1) at exit1+0x32c sys/kern/kern_exit.c:197 postsig(ffff800020dddd48,d) at postsig+0x4ed sigexit sys/kern/kern_sig.c:1483 [inline] postsig(ffff800020dddd48,d) at postsig+0x4ed sys/kern/kern_sig.c:1415 userret(ffff800020dddd48) at userret+0x199 sys/kern/kern_sig.c:1872 syscall(ffff800020edf100) at syscall+0x55f mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff800020edf100) at syscall+0x55f sys/arch/amd64/amd64/trap.c:592 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbaa00, count: -15 ddb{1}> show registers rdi 0 rsi 0x2b61d acpi_pdirpa+0x17485 rbp 0xffff800020edeb00 rbx 0 rdx 0x2b61c acpi_pdirpa+0x17484 rcx 0xffff800000676d80 rax 0 r8 0xffffffff82127b87 witness_assert+0x207 r9 0x5 r10 0x599ca734ba1a6908 r11 0xab35e9d7fbb83659 r12 0xfffffd8064c35e00 r13 0x2000 __ALIGN_SIZE+0x1000 r14 0xfffffd0000000000 r15 0xfffffd0000000000 rip 0xffffffff81eadbb8 m_free+0x58 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800020edeac0 ss 0x10 m_free+0x58: movswq 0x1c(%r14),%rsi ddb{1}> show proc PROC (syz-executor.0) pid=121850 stat=onproc flags process=a proc=2000 pri=16, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020e404f0,0xffff800020ddd128 process=0xffff800020df07c0 user=0xffff800020eda000, vmspace=0xfffffd807f000b80 estcpu=1, cpticks=2, pctcpu=0.10 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 83327 259504 0 0 3 0x14280 nfsidl nfsio 17004 46612 0 0 3 0x14280 nfsidl nfsio 86683 197885 0 0 3 0x14280 nfsidl nfsio 3073 522841 0 0 3 0x14280 nfsidl nfsio 67500 251386 0 0 3 0x14280 nfsidl nfsio 84138 77352 0 0 3 0x14280 nfsidl nfsio 27491 512439 0 0 3 0x14280 nfsidl nfsio 46158 276162 0 0 3 0x14280 nfsidl nfsio 53157 86402 0 0 3 0x14280 nfsidl nfsio 39972 300009 0 0 3 0x14280 nfsidl nfsio 54007 334788 0 0 3 0x14280 nfsidl nfsio 85526 380175 0 0 3 0x14280 nfsidl nfsio 65892 110231 0 0 3 0x14280 nfsidl nfsio 81670 13367 0 0 3 0x14280 nfsidl nfsio 50889 190807 0 0 3 0x14280 nfsidl nfsio 905 476088 0 0 3 0x14280 nfsidl nfsio 2728 138802 0 0 3 0x14280 nfsidl nfsio 72185 276717 0 0 3 0x14280 nfsidl nfsio 80901 306118 0 0 3 0x14280 nfsidl nfsio 87126 258584 0 0 3 0x14280 nfsidl nfsio 4348 295421 0 0 3 0x14200 bored sosplice 31693 468332 1 0 3 0x2 biowait syz-executor.1 44590 316634 44507 0 3 0x10008a pause ksh 44507 518879 30111 0 3 0x92 select sshd 91520 227146 1 0 3 0x100083 ttyin getty 30111 112923 1 0 3 0x80 select sshd 24139 411515 72747 74 3 0x100092 bpf pflogd 72747 267921 1 0 3 0x80 netio pflogd 94555 88705 51620 73 3 0x100090 kqread syslogd 51620 283190 1 0 3 0x100082 netio syslogd 48080 256997 1 77 3 0x100090 poll dhclient 97384 432465 1 0 3 0x80 poll dhclient 71277 153108 0 0 3 0x14200 bored smr 1512 121732 0 0 2 0x14200 zerothread 45131 252905 0 0 3 0x14200 aiodoned aiodoned 93216 239159 0 0 3 0x14200 syncer update 16820 387375 0 0 3 0x14200 cleaner cleaner 1835 63352 0 0 7 0x14200 reaper 85672 320633 0 0 3 0x14200 pgdaemon pagedaemon 54482 410209 0 0 3 0x14200 bored crynlk 69762 343416 0 0 3 0x14200 bored crypto 81443 64475 0 0 3 0x40014200 acpi0 acpi0 39352 421840 0 0 3 0x40014200 idle1 15714 198545 0 0 3 0x14200 bored softnet 33887 500610 0 0 3 0x14200 bored systqmp 88562 469885 0 0 3 0x14200 bored systq 54549 396209 0 0 3 0x40014200 bored softclock 47797 325531 0 0 3 0x40014200 idle0 1 309758 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 31693 (syz-executor.1) thread 0xffff800020ddd118 (468332) exclusive rrwlock inode r = 0 (0xfffffd806b1edd58) #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 (0xfffffd806b1ed098) #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9519 6416K 7045K 78643K 11898 0 pcb 13 8K 8K 78643K 82 0 rtable 120 7K 7K 78643K 372 0 ifaddr 88 18K 18K 78643K 149 0 counters 43 33K 34K 78643K 53 0 ioctlops 0 0K 4K 78643K 1535 0 iov 0 0K 16K 78643K 40 0 mount 1 1K 1K 78643K 1 0 vnodes 1219 77K 77K 78643K 1576 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 8 0 VM map 2 1K 1K 78643K 2 0 sem 10 1K 1K 78643K 20 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 3 8K 25K 78643K 525 0 sigio 0 0K 0K 78643K 4 0 proc 61 63K 95K 78643K 456 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 20 0 in_multi 82 3K 4K 78643K 125 0 ether_multi 1 0K 0K 78643K 10 0 mrt 0 0K 0K 78643K 9 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 220 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 131 104K 104K 78643K 2555 0 UVM aobj 14 7K 7K 78643K 17 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 52 0 NDP 12 0K 0K 78643K 24 0 temp 133 3868K 3934K 78643K 4785 0 kqueue 2 2K 18K 78643K 23 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 6 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 33 0 31 1 0 1 1 0 8 0 rtentry 112 61 0 18 2 0 2 2 0 8 0 unpcb 120 735 0 725 1 0 1 1 0 8 0 syncache 264 8 0 8 3 3 0 1 0 8 0 tcpqe 32 317 0 317 2 2 0 1 0 8 0 tcpcb 544 411 0 407 1 0 1 1 0 8 0 inpcb 296 954 0 947 2 1 1 2 0 8 0 rttmr 72 2 0 2 1 1 0 1 0 8 0 nd6 48 15 0 10 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 36 0 30 2 1 1 1 0 8 0 pfstitem 24 62 0 13 1 0 1 1 0 8 0 pfstkey 112 62 0 13 2 0 2 2 0 8 0 pfstate 328 62 0 13 5 0 5 5 0 8 0 pfrule 1360 32 0 25 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 284 0 76 17 1 16 16 0 8 0 art_table 32 286 0 76 3 0 3 3 0 8 0 art_node 16 60 0 20 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 8 0 0 1 0 1 1 0 8 0 shmpl 112 15 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2087 0 686 89 0 89 89 0 8 0 ffsino 272 2087 0 686 95 1 94 95 0 8 0 nchpl 144 2928 0 1320 60 0 60 60 0 8 0 uvmvnodes 72 2416 0 0 44 0 44 44 0 8 0 vnodes 208 2416 0 0 128 0 128 128 0 8 0 namei 1024 8030 0 8030 1 0 1 1 0 8 1 percpumem 16 37 0 5 1 0 1 1 0 8 0 vcpupl 1984 11 0 0 2 0 2 2 0 8 0 vmpool 560 16 0 5 1 0 1 1 0 8 0 pfiaddrpl 120 15 0 9 2 1 1 1 0 8 0 scxspl 192 9006 0 9005 10 9 1 7 0 8 0 plimitpl 152 39 0 31 1 0 1 1 0 8 0 sigapl 424 761 0 711 6 0 6 6 0 8 0 futexpl 56 7803 0 7803 1 0 1 1 0 8 1 knotepl 112 88 0 83 1 0 1 1 0 8 0 kqueuepl 144 57 0 56 1 0 1 1 0 8 0 pipelkpl 48 111 0 102 1 0 1 1 0 8 0 pipepl 120 222 0 210 1 0 1 1 0 8 0 fdescpl 496 725 0 711 3 0 3 3 0 8 0 filepl 152 4458 0 4380 5 1 4 5 0 8 0 lockfpl 104 80 0 79 1 0 1 1 0 8 0 lockfspl 48 30 0 29 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 18 0 7 1 0 1 1 0 8 0 ucredpl 96 421 0 412 1 0 1 1 0 8 0 zombiepl 144 712 0 710 1 0 1 1 0 8 0 processpl 984 761 0 710 7 0 7 7 0 8 0 procpl 624 1778 0 1727 6 1 5 6 0 8 0 sosppl 128 6 0 6 2 2 0 1 0 8 0 sockpl 400 1726 0 1707 5 2 3 4 0 8 1 mcl64k 65536 16 0 0 2 0 2 2 0 8 0 mcl12k 12288 7 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 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 152 0 0 18 0 18 18 0 8 0 mtagpl 96 131 0 0 4 0 4 4 0 8 0 mbufpl 256 861 0 0 53 0 53 53 0 8 0 bufpl 280 4434 0 135 308 0 308 308 0 8 0 anonpl 16 74237 0 63120 69 5 64 66 0 124 0 amapchunkpl 152 3874 0 3744 13 5 8 13 0 158 0 amappl16 192 3721 0 2896 45 3 42 45 0 8 0 amappl15 184 3 0 1 1 0 1 1 0 8 0 amappl14 176 26 0 20 1 0 1 1 0 8 0 amappl13 168 31 0 27 1 0 1 1 0 8 0 amappl12 160 10 0 9 2 1 1 1 0 8 0 amappl11 152 51 0 36 1 0 1 1 0 8 0 amappl10 144 16 0 11 1 0 1 1 0 8 0 amappl9 136 382 0 380 1 0 1 1 0 8 0 amappl8 128 377 0 346 2 0 2 2 0 8 0 amappl7 120 134 0 121 1 0 1 1 0 8 0 amappl6 112 31 0 26 1 0 1 1 0 8 0 amappl5 104 632 0 616 1 0 1 1 0 8 0 amappl4 96 491 0 461 1 0 1 1 0 8 0 amappl3 88 124 0 118 1 0 1 1 0 8 0 amappl2 80 4874 0 4809 2 0 2 2 0 8 0 amappl1 72 25246 0 24822 23 13 10 18 0 8 0 amappl 80 2018 0 1973 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 16 0 3 1 0 1 1 0 8 0 uaddrrnd 24 741 0 716 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 741 0 716 1 0 1 1 0 8 0 vmmpekpl 168 9120 0 9071 3 0 3 3 0 8 0 vmmpepl 168 92971 0 91081 113 21 92 104 0 357 0 vmsppl 368 740 0 715 3 0 3 3 0 8 0 pdppl 4096 1489 0 1441 7 0 7 7 0 8 0 pvpl 32 242984 0 228965 164 13 151 162 0 265 0 pmappl 232 740 0 715 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 308 0 8 9 0 9 9 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff826fdff0) 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+0x12e __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828c9608) at __mp_lock+0x12e sys/kern/kern_lock.c:147 intr_handler(ffff800020dcf250,ffff800000255c80) at intr_handler+0x5e sys/arch/amd64/amd64/intr.c:532 Xintr_ioapic_edge20_untramp() at Xintr_ioapic_edge20_untramp+0x19f Xspllower() at Xspllower+0x19 pmap_do_remove(fffffd807efff0e8,c000990000,c0009a0000,0) at pmap_do_remove+0x510 sys/arch/amd64/amd64/pmap.c:1757 uvm_map_teardown(fffffd806e8fdb88) at uvm_map_teardown+0x195 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd806e8fdb88) at uvm_map_teardown+0x195 sys/uvm/uvm_map.c:2739 uvmspace_free(fffffd806e8fdb88) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3646 uvm_exit(ffff800020e38018) at uvm_exit+0x29 sys/uvm/uvm_glue.c:297 reaper(ffff800020d88ea0) at reaper+0x189 sys/kern/kern_exit.c:456 end trace frame: 0x0, count: -12 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(ffff800020edeb58) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff800020edeb58) 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(ffff800020edec80) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e7865b8,7,fffffd807f7bfa20,ffff800020dddd48) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:174 vn_closefile(fffffd80687f9bf8,ffff800020dddd48) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd80687f9bf8,ffff800020dddd48) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd80687f9bf8,ffff800020dddd48) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd80687f9bf8,ffff800020dddd48) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800020dddd48) at fdfree+0x101 sys/kern/kern_descrip.c:1195 exit1(ffff800020dddd48,0,d,1) at exit1+0x32c sys/kern/kern_exit.c:197 postsig(ffff800020dddd48,d) at postsig+0x4ed sigexit sys/kern/kern_sig.c:1483 [inline] postsig(ffff800020dddd48,d) at postsig+0x4ed sys/kern/kern_sig.c:1415 userret(ffff800020dddd48) at userret+0x199 sys/kern/kern_sig.c:1872 syscall(ffff800020edf100) at syscall+0x55f mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff800020edf100) at syscall+0x55f sys/arch/amd64/amd64/trap.c:592 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbaa00, count: -15