uvm_fault(0xffffffff82540808, 0xfffffd0000000018, 0, 1) -> e kernel: page fault trap, code=0 Stopped at tun_dev_read+0x138: movl 0x18(%rbx),%r12d ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic kernel page fault uvm_fault(0xffffffff82540808, 0xfffffd0000000018, 0, 1) -> e tun_dev_read(5d01,ffff800022fc9438,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 end trace frame: 0xffff800022fc9270, count: 0 ddb{0}> trace tun_dev_read(5d01,ffff800022fc9438,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 spec_read(ffff800022fc9280) at spec_read+0xf1 sys/kern/spec_vnops.c:222 VOP_READ(fffffd806e38f008,ffff800022fc9438,10,fffffd807f7bf900) at VOP_READ+0xbf sys/kern/vfs_vops.c:247 vn_read(fffffd806cb863a0,ffff800022fc9438,0) at vn_read+0x124 sys/kern/vfs_vnops.c:375 dofilereadv(ffff800020ec7608,f0,ffff800022fc9438,0,ffff800022fc9520) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ec7608,ffff800022fc94d0,ffff800022fc9520) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800022fc95a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800022fc95a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x16eb4da8760, count: -8 ddb{0}> show registers rdi 0 rsi 0x3da rbp 0xffff800022fc91c0 rbx 0xfffffd0000000000 rdx 0x153 rcx 0xffff8000009d8a40 rax 0xffffffff8120a123 tun_dev_read+0x133 r8 0x7f7fffffc000 r9 0x5 r10 0x7e70007f311831b2 r11 0xd570af119707e040 r12 0 r13 0x3da r14 0xffff800000a24e60 r15 0xffff800022fc9438 rip 0xffffffff8120a128 tun_dev_read+0x138 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff800022fc9160 ss 0x10 tun_dev_read+0x138: movl 0x18(%rbx),%r12d ddb{0}> show proc PROC (syz-executor.1) pid=164834 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800020ec69d8,0xffff800020ec6778 process=0xffff800020e927d0 user=0xffff800022fc4000, vmspace=0xfffffd807f000450 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 81152 404723 70777 0 2 0 syz-executor.1 81152 342156 70777 0 2 0x4000000 syz-executor.1 *81152 164834 70777 0 7 0x4000000 syz-executor.1 81152 471979 70777 0 3 0x4000080 fsleep syz-executor.1 91278 424889 76287 0 7 0x482 syz-executor.0 54853 302445 0 0 3 0x14200 acct acct 91641 433569 1 0 3 0x100083 ttyin getty 35987 135864 0 0 3 0x14200 bored sosplice 70777 418909 76287 0 2 0x482 syz-executor.1 76287 97000 45454 0 3 0x82 thrsleep syz-fuzzer 76287 443948 45454 0 3 0x4000082 thrsleep syz-fuzzer 76287 235754 45454 0 3 0x4000082 thrsleep syz-fuzzer 76287 240142 45454 0 3 0x4000082 thrsleep syz-fuzzer 76287 238655 45454 0 3 0x4000082 kqread syz-fuzzer 76287 66334 45454 0 3 0x4000082 thrsleep syz-fuzzer 76287 351654 45454 0 3 0x4000082 thrsleep syz-fuzzer 76287 6790 45454 0 3 0x4000082 thrsleep syz-fuzzer 76287 387288 45454 0 3 0x4000082 thrsleep syz-fuzzer 76287 277805 45454 0 3 0x4000082 thrsleep syz-fuzzer 45454 150956 44823 0 3 0x10008a pause ksh 44823 138621 77366 0 3 0x92 select sshd 77366 346280 1 0 3 0x80 select sshd 24620 322961 2134 74 3 0x100092 bpf pflogd 2134 432397 1 0 3 0x80 netio pflogd 90528 171429 83387 73 3 0x100090 kqread syslogd 83387 69943 1 0 3 0x100082 netio syslogd 80018 389817 1 77 3 0x100090 poll dhclient 5671 241426 1 0 3 0x80 poll dhclient 36672 59498 0 0 3 0x14200 bored smr 13614 30147 0 0 2 0x14200 zerothread 14492 275249 0 0 3 0x14200 aiodoned aiodoned 87454 130227 0 0 3 0x14200 syncer update 50340 501456 0 0 3 0x14200 cleaner cleaner 99843 302640 0 0 3 0x14200 reaper reaper 56413 73801 0 0 3 0x14200 pgdaemon pagedaemon 15281 171524 0 0 3 0x14200 bored crynlk 3432 287260 0 0 3 0x14200 bored crypto 53619 126895 0 0 3 0x40014200 acpi0 acpi0 79734 364167 0 0 3 0x40014200 idle1 4773 292478 0 0 3 0x14200 bored softnet 99424 201508 0 0 3 0x14200 bored systqmp 89121 17915 0 0 3 0x14200 bored systq 15981 364916 0 0 2 0x40014200 softclock 75004 243005 0 0 3 0x40014200 idle0 1 228818 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 81152 (syz-executor.1) thread 0xffff800020ec7608 (164834) exclusive kernel_lock &kernel_lock r = 1 (0xffffffff8265c988) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 vn_read+0x45 sys/kern/vfs_vnops.c:357 #2 dofilereadv+0x1a1 sys/kern/sys_generic.c:237 #3 sys_read+0x83 sys/kern/sys_generic.c:157 #4 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #4 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #5 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9547 6441K 6751K 78643K 11637 0 pcb 13 8K 8K 78643K 168 0 rtable 98 3K 4K 78643K 528 0 ifaddr 115 23K 24K 78643K 265 0 counters 43 33K 34K 78643K 79 0 ioctlops 0 0K 4K 78643K 1549 0 iov 0 0K 16K 78643K 93 0 mount 1 1K 1K 78643K 1 0 vnodes 1215 76K 77K 78643K 1573 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 14 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 127 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 782 0 sigio 0 0K 0K 78643K 6 0 proc 61 63K 95K 78643K 544 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 49 0 in_multi 132 5K 5K 78643K 265 0 ether_multi 1 0K 0K 78643K 23 0 mrt 1 0K 0K 78643K 9 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 301 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 142 72K 88K 78643K 3627 0 UVM aobj 33 4K 4K 78643K 38 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 117 0 NDP 15 0K 0K 78643K 52 0 temp 141 3050K 3117K 78643K 7324 0 kqueue 3 4K 14K 78643K 57 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 12 0 3 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 82 0 80 1 0 1 1 0 8 0 rtentry 112 119 0 80 2 0 2 2 0 8 0 unpcb 120 539 0 520 1 0 1 1 0 8 0 syncache 264 16 0 16 5 4 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 92 0 92 3 2 1 1 0 8 1 tcpcb 544 389 0 371 3 1 2 2 0 8 0 ipq 40 2 0 2 1 1 0 1 0 8 0 ipqe 40 4 0 4 1 1 0 1 0 8 0 inpcb 280 2036 0 2025 4 2 2 2 0 8 0 rttmr 72 2 0 2 1 1 0 1 0 8 0 nd6 48 22 0 21 1 0 1 1 0 8 0 pkpcb 40 6 0 6 2 2 0 1 0 8 0 ppxss 1128 3 0 3 2 1 1 1 0 8 1 pffrag 232 1 0 1 1 1 0 1 0 482 0 pffrnode 88 1 0 1 1 1 0 1 0 8 0 pffrent 40 2 0 2 1 1 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 pfstitem 24 64 0 38 1 0 1 1 0 8 0 pfstkey 112 64 0 38 1 0 1 1 0 8 0 pfstate 328 64 0 38 3 0 3 3 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 623 0 461 18 6 12 14 0 8 0 art_table 32 625 0 461 2 0 2 2 0 8 0 art_node 16 118 0 82 1 0 1 1 0 8 0 sysvmsgpl 40 22 0 15 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 119 0 109 1 0 1 1 0 8 0 shmpl 112 36 0 5 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2475 0 1071 89 0 89 89 0 8 0 ffsino 272 2475 0 1071 95 0 95 95 0 8 0 nchpl 144 3746 0 2147 60 0 60 60 0 8 0 uvmvnodes 72 2760 0 0 51 0 51 51 0 8 0 vnodes 208 2760 0 0 146 0 146 146 0 8 0 namei 1024 10631 0 10631 3 2 1 1 0 8 1 percpumem 16 50 0 18 1 0 1 1 0 8 0 vcpupl 1984 5 0 0 1 0 1 1 0 8 0 vmpool 560 12 0 7 1 0 1 1 0 8 0 scsiplug 64 3 0 3 1 1 0 1 0 8 0 scxspl 192 11205 0 11205 11 10 1 7 0 8 1 plimitpl 152 77 0 69 1 0 1 1 0 8 0 sigapl 424 997 0 964 4 0 4 4 0 8 0 futexpl 56 12801 0 12800 3 2 1 1 0 8 0 knotepl 112 173 0 154 2 1 1 2 0 8 0 kqueuepl 144 173 0 171 1 0 1 1 0 8 0 pipelkpl 48 179 0 169 1 0 1 1 0 8 0 pipepl 120 358 0 339 1 0 1 1 0 8 0 fdescpl 496 980 0 964 3 0 3 3 0 8 0 filepl 152 6558 0 6448 6 1 5 6 0 8 0 lockfpl 104 164 0 163 1 0 1 1 0 8 0 lockfspl 48 59 0 58 1 0 1 1 0 8 0 sessionpl 112 20 0 9 1 0 1 1 0 8 0 pgrppl 48 91 0 79 1 0 1 1 0 8 0 ucredpl 96 629 0 618 1 0 1 1 0 8 0 zombiepl 144 964 0 963 1 0 1 1 0 8 0 processpl 984 997 0 963 5 0 5 5 0 8 0 procpl 624 2742 0 2696 4 0 4 4 0 8 0 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 27 0 27 5 5 0 1 0 8 0 sockpl 400 2666 0 2634 10 5 5 6 0 8 1 mcl64k 65536 13 0 0 2 0 2 2 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 10 0 0 2 0 2 2 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 176 0 0 21 0 21 21 0 8 0 mtagpl 80 35 0 0 1 0 1 1 0 8 0 mbufpl 256 329 0 0 17 0 17 17 0 8 0 bufpl 280 5199 0 135 362 0 362 362 0 8 0 anonpl 16 102043 0 87599 91 31 60 75 0 124 0 amapchunkpl 152 6866 0 6711 29 16 13 20 0 158 6 amappl16 192 4002 0 3220 57 16 41 48 0 8 1 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 400 0 394 1 0 1 1 0 8 0 amappl13 168 641 0 637 1 0 1 1 0 8 0 amappl12 160 22 0 20 2 1 1 1 0 8 0 amappl11 152 191 0 175 1 0 1 1 0 8 0 amappl10 144 32 0 25 1 0 1 1 0 8 0 amappl9 136 387 0 385 1 0 1 1 0 8 0 amappl8 128 398 0 351 2 0 2 2 0 8 0 amappl7 120 124 0 113 1 0 1 1 0 8 0 amappl6 112 148 0 143 1 0 1 1 0 8 0 amappl5 104 487 0 470 1 0 1 1 0 8 0 amappl4 96 1114 0 1082 1 0 1 1 0 8 0 amappl3 88 516 0 508 1 0 1 1 0 8 0 amappl2 80 6717 0 6645 2 0 2 2 0 8 0 amappl1 72 30998 0 30550 23 13 10 18 0 8 0 amappl 80 3029 0 2980 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 37 0 5 1 0 1 1 0 8 0 uaddrrnd 24 992 0 971 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 992 0 971 1 0 1 1 0 8 0 vmmpekpl 168 11319 0 11288 2 0 2 2 0 8 0 vmmpepl 168 125599 0 123616 146 54 92 114 0 357 1 vmsppl 368 991 0 971 2 0 2 2 0 8 0 pdppl 4096 1992 0 1947 7 1 6 7 0 8 0 pvpl 32 312853 0 295454 201 42 159 174 0 265 13 pmappl 232 991 0 971 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 284 0 18 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace tun_dev_read(5d01,ffff800022fc9438,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 spec_read(ffff800022fc9280) at spec_read+0xf1 sys/kern/spec_vnops.c:222 VOP_READ(fffffd806e38f008,ffff800022fc9438,10,fffffd807f7bf900) at VOP_READ+0xbf sys/kern/vfs_vops.c:247 vn_read(fffffd806cb863a0,ffff800022fc9438,0) at vn_read+0x124 sys/kern/vfs_vnops.c:375 dofilereadv(ffff800020ec7608,f0,ffff800022fc9438,0,ffff800022fc9520) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ec7608,ffff800022fc94d0,ffff800022fc9520) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800022fc95a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800022fc95a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x16eb4da8760, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020e00ff0) 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(ffffffff8265c780) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8265c780) at __mp_lock+0x127 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff8265c780,1) 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(ffff800020f5f490,1) at sleep_finish+0x113 sys/kern/kern_synch.c:418 sleep_finish_all(ffff800020f5f490,1) at sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:447 [inline] sleep_finish_all(ffff800020f5f490,1) at sleep_finish_all+0x32 sys/kern/kern_synch.c:393 tsleep(ffffffff82638428,120,ffffffff821efd81,2) at tsleep+0x1cc sys/kern/kern_synch.c:155 sys_nanosleep(ffff800020ec6018,ffff800020f5f5c0,ffff800020f5f610) at sys_nanosleep+0x205 sys/kern/kern_time.c:298 syscall(ffff800020f5f690) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020f5f690) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcce40, count: -12