uvm_fault(0xffffffff82874878, 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(0xffffffff82874878, 0xfffffd000000001c, 0, 1) -> e m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 end trace frame: 0xffff800020ed7620, count: 0 ddb{1}> trace m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 ml_purge(ffff800020ed7638) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff800020ed7638) 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(ffff800020ed7760) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806ece94e8,7,fffffd807f7bf960,ffff800020ddcea8) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:174 vn_closefile(fffffd8066ef0740,ffff800020ddcea8) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8066ef0740,ffff800020ddcea8) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd8066ef0740,ffff800020ddcea8) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8066ef0740,ffff800020ddcea8) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800020ddcea8) at fdfree+0x101 sys/kern/kern_descrip.c:1195 exit1(ffff800020ddcea8,0,d,1) at exit1+0x32c sys/kern/kern_exit.c:197 postsig(ffff800020ddcea8,d) at postsig+0x4ed sigexit sys/kern/kern_sig.c:1483 [inline] postsig(ffff800020ddcea8,d) at postsig+0x4ed sys/kern/kern_sig.c:1415 userret(ffff800020ddcea8) at userret+0x199 sys/kern/kern_sig.c:1872 syscall(ffff800020ed7be0) at syscall+0x55f mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff800020ed7be0) at syscall+0x55f sys/arch/amd64/amd64/trap.c:592 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc4580, count: -15 ddb{1}> show registers rdi 0 rsi 0x3a7ed acpi_pdirpa+0x26655 rbp 0xffff800020ed75e0 rbx 0 rdx 0x3a7ec acpi_pdirpa+0x26654 rcx 0xffff800000676d80 rax 0 r8 0xffffffff81826317 witness_assert+0x207 r9 0x5 r10 0x98da9a2878c18cd1 r11 0x92aa4a25fc4940f3 r12 0xfffffd806d167f00 r13 0x2000 __ALIGN_SIZE+0x1000 r14 0xfffffd0000000000 r15 0xfffffd0000000000 rip 0xffffffff8214dd38 m_free+0x58 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800020ed75a0 ss 0x10 m_free+0x58: movswq 0x1c(%r14),%rsi ddb{1}> show proc PROC (syz-executor.0) pid=119815 stat=onproc flags process=a proc=2000 pri=16, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020e40280,0xffff800020e08778 process=0xffff800020e38f78 user=0xffff800020ed2000, vmspace=0xfffffd807f000a10 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 66183 48522 1 0 3 0x2 biowait syz-executor.1 62363 395911 0 0 3 0x14280 nfsidl nfsio 71323 432235 0 0 3 0x14280 nfsidl nfsio 47743 250031 0 0 3 0x14280 nfsidl nfsio 59499 473456 0 0 3 0x14280 nfsidl nfsio 87686 196977 0 0 3 0x14280 nfsidl nfsio 98884 115792 0 0 3 0x14280 nfsidl nfsio 28946 128106 0 0 3 0x14280 nfsidl nfsio 68818 227070 0 0 3 0x14280 nfsidl nfsio 9471 102222 0 0 3 0x14280 nfsidl nfsio 26391 471076 0 0 3 0x14280 nfsidl nfsio 23351 434740 0 0 3 0x14280 nfsidl nfsio 30889 41027 0 0 3 0x14280 nfsidl nfsio 76441 514776 0 0 3 0x14280 nfsidl nfsio 95104 27109 0 0 3 0x14280 nfsidl nfsio 12340 398422 0 0 3 0x14280 nfsidl nfsio 77488 203963 0 0 3 0x14280 nfsidl nfsio 99755 254491 0 0 3 0x14280 nfsidl nfsio 34865 381459 0 0 3 0x14280 nfsidl nfsio 76714 213488 0 0 3 0x14280 nfsidl nfsio 43725 48605 0 0 3 0x14280 nfsidl nfsio 92355 132834 0 0 3 0x14200 bored sosplice 52061 174392 97816 0 3 0x10008a pause ksh 97816 123891 66471 0 3 0x92 select sshd 38281 301915 1 0 3 0x100083 ttyopn getty 66471 152154 1 0 3 0x80 select sshd 75841 9736 4457 74 3 0x100092 bpf pflogd 4457 286724 1 0 3 0x80 netio pflogd 61037 238126 49167 73 3 0x100090 kqread syslogd 49167 400053 1 0 3 0x100082 netio syslogd 4141 34173 1 77 3 0x100090 poll dhclient 2068 273615 1 0 3 0x80 poll dhclient 72457 16529 0 0 3 0x14200 bored smr 84988 98593 0 0 2 0x14200 zerothread 32112 440972 0 0 3 0x14200 aiodoned aiodoned 52715 220504 0 0 3 0x14200 syncer update 78445 231759 0 0 3 0x14200 cleaner cleaner 24223 429493 0 0 7 0x14200 reaper 89018 41462 0 0 3 0x14200 pgdaemon pagedaemon 63511 274400 0 0 3 0x14200 bored crynlk 2109 109008 0 0 3 0x14200 bored crypto 38936 315654 0 0 3 0x40014200 acpi0 acpi0 41213 350800 0 0 3 0x40014200 idle1 3269 443429 0 0 3 0x14200 bored softnet 40801 173226 0 0 3 0x14200 bored systqmp 39041 327167 0 0 3 0x14200 bored systq 67502 275235 0 0 3 0x40014200 bored softclock 96682 110741 0 0 3 0x40014200 idle0 1 103709 0 0 2 0x82 init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 66183 (syz-executor.1) thread 0xffff800020e09608 (48522) exclusive rrwlock inode r = 0 (0xfffffd80649771b8) #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 (0xfffffd80649770a8) #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 9526 6419K 6800K 78643K 11029 0 pcb 13 8K 8K 78643K 51 0 rtable 110 9K 9K 78643K 370 0 ifaddr 79 15K 15K 78643K 118 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 51 0 ioctlops 0 0K 4K 78643K 1506 0 iov 0 0K 24K 78643K 42 0 mount 1 1K 1K 78643K 1 0 vnodes 1222 77K 77K 78643K 1384 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 11 1K 1K 78643K 13 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 3 8K 25K 78643K 420 0 sigio 0 0K 0K 78643K 2 0 proc 62 63K 95K 78643K 528 0 subproc 23 1K 2K 78643K 53 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 38 2K 2K 78643K 96 0 ether_multi 1 0K 0K 78643K 4 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 258 0 pfkey data 0 0K 0K 78643K 2 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 116 23K 24K 78643K 2230 0 UVM aobj 10 2K 2K 78643K 16 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 18 0 NDP 13 0K 0K 78643K 26 0 temp 105 3858K 3924K 78643K 7297 0 kqueue 2 2K 8K 78643K 24 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 8 0 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 35 0 33 1 0 1 1 0 8 0 rtentry 112 67 0 34 2 0 2 2 0 8 0 unpcb 120 193 0 183 1 0 1 1 0 8 0 syncache 264 10 0 10 3 3 0 1 0 8 0 tcpqe 32 314 0 314 1 1 0 1 0 8 0 tcpcb 544 96 0 92 1 0 1 1 0 8 0 inpcb 296 473 0 467 4 3 1 2 0 8 0 nd6 48 17 0 14 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 ppxss 1128 1 0 1 1 1 0 1 0 8 0 pffrag 232 3 0 2 1 0 1 1 0 482 0 pffrnode 88 3 0 2 1 0 1 1 0 8 0 pffrent 40 52 0 51 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 23 0 13 1 0 1 1 0 8 0 pfstitem 24 14 0 7 1 0 1 1 0 8 0 pfstkey 112 14 0 7 1 0 1 1 0 8 0 pfstate 328 14 0 7 2 1 1 2 0 8 0 pfsrctr 152 12 0 12 1 0 1 1 0 8 1 pfrule 1360 34 0 18 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 308 0 164 14 3 11 14 0 8 0 art_table 32 309 0 164 2 0 2 2 0 8 0 art_node 16 66 0 36 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 8 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 9 0 0 1 0 1 1 0 8 0 shmpl 112 14 0 6 2 1 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1915 0 507 89 0 89 89 0 8 0 ffsino 272 1915 0 507 96 1 95 95 0 8 0 nchpl 144 2855 0 1260 61 0 61 61 0 8 0 uvmvnodes 72 2071 0 0 38 0 38 38 0 8 0 vnodes 208 2071 0 0 109 0 109 109 0 8 0 namei 1024 7793 0 7793 3 2 1 1 0 8 1 percpumem 16 36 0 4 1 0 1 1 0 8 0 pfiaddrpl 120 10 0 2 1 0 1 1 0 8 0 scxspl 192 8457 0 8456 9 8 1 7 0 8 0 plimitpl 152 42 0 34 1 0 1 1 0 8 0 sigapl 424 653 0 603 6 0 6 6 0 8 0 futexpl 56 5426 0 5426 2 1 1 1 0 8 1 knotepl 112 98 0 93 1 0 1 1 0 8 0 kqueuepl 144 645 0 644 1 0 1 1 0 8 0 pipelkpl 48 137 0 128 1 0 1 1 0 8 0 pipepl 120 274 0 262 1 0 1 1 0 8 0 fdescpl 496 617 0 603 3 0 3 3 0 8 0 filepl 152 4197 0 4119 7 3 4 5 0 8 0 lockfpl 104 65 0 64 1 0 1 1 0 8 0 lockfspl 48 26 0 25 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 23 0 12 1 0 1 1 0 8 0 ucredpl 96 337 0 328 1 0 1 1 0 8 0 zombiepl 144 604 0 602 3 2 1 1 0 8 0 processpl 984 653 0 602 8 1 7 7 0 8 0 procpl 624 1444 0 1393 8 3 5 6 0 8 0 srpgc 64 4 0 4 2 2 0 1 0 8 0 sosppl 128 6 0 6 2 2 0 1 0 8 0 sockpl 400 707 0 689 5 2 3 3 0 8 1 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 5 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 9 0 0 2 0 2 2 0 8 0 mcl2k 2048 177 0 0 22 1 21 22 0 8 0 mtagpl 96 30 0 0 1 0 1 1 0 8 0 mbufpl 256 538 0 0 33 0 33 33 0 8 0 bufpl 280 4370 0 133 303 0 303 303 0 8 0 anonpl 16 76868 0 65002 88 21 67 83 0 124 0 amapchunkpl 152 3303 0 3159 10 3 7 9 0 158 0 amappl16 192 3157 0 2289 64 20 44 56 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 31 0 27 1 0 1 1 0 8 0 amappl13 168 37 0 33 1 0 1 1 0 8 0 amappl12 160 103 0 99 1 0 1 1 0 8 0 amappl11 152 74 0 58 1 0 1 1 0 8 0 amappl10 144 194 0 185 1 0 1 1 0 8 0 amappl9 136 490 0 489 1 0 1 1 0 8 0 amappl8 128 487 0 454 2 0 2 2 0 8 0 amappl7 120 299 0 284 1 0 1 1 0 8 0 amappl6 112 27 0 21 1 0 1 1 0 8 0 amappl5 104 609 0 593 1 0 1 1 0 8 0 amappl4 96 500 0 475 1 0 1 1 0 8 0 amappl3 88 118 0 113 1 0 1 1 0 8 0 amappl2 80 3916 0 3857 2 0 2 2 0 8 0 amappl1 72 22992 0 22562 23 13 10 18 0 8 0 amappl 80 1685 0 1642 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 15 0 6 1 0 1 1 0 8 0 uaddrrnd 24 617 0 603 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 617 0 603 1 0 1 1 0 8 0 vmmpekpl 168 8573 0 8537 2 0 2 2 0 8 0 vmmpepl 168 81898 0 79979 143 50 93 123 0 357 0 vmsppl 368 616 0 602 2 0 2 2 0 8 0 pdppl 4096 1241 0 1204 7 2 5 6 0 8 0 pvpl 32 234114 0 219392 200 36 164 196 0 265 0 pmappl 232 616 0 602 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 295 0 17 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(ffffffff826eeff0) 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(ffffffff828cb728) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828cb728) at __mp_lock+0x127 sys/kern/kern_lock.c:147 intr_handler(ffff800020dcec50,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(fffffd807efffcb0,c0027c0000,c0027d0000,0) at pmap_do_remove+0x510 sys/arch/amd64/amd64/pmap.c:1757 uvm_map_teardown(fffffd806e9002e8) at uvm_map_teardown+0x195 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd806e9002e8) at uvm_map_teardown+0x195 sys/uvm/uvm_map.c:2739 uvmspace_free(fffffd806e9002e8) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3646 uvm_exit(ffff800020e387c8) at uvm_exit+0x29 sys/uvm/uvm_glue.c:297 reaper(ffff800020d89ad0) 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(ffff800020ed7638) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff800020ed7638) 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(ffff800020ed7760) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806ece94e8,7,fffffd807f7bf960,ffff800020ddcea8) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:174 vn_closefile(fffffd8066ef0740,ffff800020ddcea8) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8066ef0740,ffff800020ddcea8) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd8066ef0740,ffff800020ddcea8) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8066ef0740,ffff800020ddcea8) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800020ddcea8) at fdfree+0x101 sys/kern/kern_descrip.c:1195 exit1(ffff800020ddcea8,0,d,1) at exit1+0x32c sys/kern/kern_exit.c:197 postsig(ffff800020ddcea8,d) at postsig+0x4ed sigexit sys/kern/kern_sig.c:1483 [inline] postsig(ffff800020ddcea8,d) at postsig+0x4ed sys/kern/kern_sig.c:1415 userret(ffff800020ddcea8) at userret+0x199 sys/kern/kern_sig.c:1872 syscall(ffff800020ed7be0) at syscall+0x55f mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff800020ed7be0) at syscall+0x55f sys/arch/amd64/amd64/trap.c:592 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc4580, count: -15