login: uvm_fault(0xffffffff826413a0, 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(0xffffffff826413a0, 0xfffffd0000000018, 0, 1) -> e tun_dev_read(5d01,ffff800021f89c28,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 end trace frame: 0xffff800021f89a60, count: 0 ddb{0}> trace tun_dev_read(5d01,ffff800021f89c28,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 spec_read(ffff800021f89a70) at spec_read+0xf1 sys/kern/spec_vnops.c:222 VOP_READ(fffffd806e2ec008,ffff800021f89c28,10,fffffd807f7bfb40) at VOP_READ+0xbf sys/kern/vfs_vops.c:247 vn_read(fffffd806cb734d8,ffff800021f89c28,0) at vn_read+0x124 sys/kern/vfs_vnops.c:375 dofilereadv(ffff800020ec6768,f0,ffff800021f89c28,0,ffff800021f89d10) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ec6768,ffff800021f89cc0,ffff800021f89d10) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800021f89d90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021f89d90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4c1ead4efc0, count: -8 ddb{0}> show registers rdi 0 rsi 0x3da rbp 0xffff800021f899b0 rbx 0xfffffd0000000000 rdx 0x4b8 rcx 0xffff8000009d9ac0 rax 0xffffffff81ab5ab3 tun_dev_read+0x133 r8 0x7f7fffffc000 r9 0x5 r10 0x1690725ce834527a r11 0x9efdba35b62ad702 r12 0 r13 0x3da r14 0xffff800000a25e60 r15 0xffff800021f89c28 rip 0xffffffff81ab5ab8 tun_dev_read+0x138 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff800021f89950 ss 0x10 tun_dev_read+0x138: movl 0x18(%rbx),%r12d ddb{0}> show proc PROC (syz-executor.1) pid=219731 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020ec7d58,0xffffffff82644260 process=0xffff800020f65b18 user=0xffff800021f84000, vmspace=0xfffffd807ea97188 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 14799 466183 49104 0 2 0 syz-executor.1 *14799 219731 49104 0 7 0x4000000 syz-executor.1 78474 159041 1 0 3 0x100083 ttyin getty 61212 230619 0 0 3 0x14200 bored sosplice 63029 502798 0 0 3 0x14200 acct acct 49104 50853 50924 0 3 0x82 nanosleep syz-executor.1 56978 451797 50924 0 3 0x82 piperd syz-executor.0 50924 347751 21623 0 3 0x82 kqread syz-fuzzer 50924 368258 21623 0 7 0x4000482 syz-fuzzer 50924 465586 21623 0 3 0x4000082 thrsleep syz-fuzzer 50924 312054 21623 0 3 0x4000082 thrsleep syz-fuzzer 50924 18415 21623 0 3 0x4000082 thrsleep syz-fuzzer 50924 431800 21623 0 3 0x4000082 thrsleep syz-fuzzer 50924 278003 21623 0 3 0x4000082 thrsleep syz-fuzzer 50924 175122 21623 0 3 0x4000082 thrsleep syz-fuzzer 50924 168573 21623 0 2 0x4000002 syz-fuzzer 50924 390018 21623 0 3 0x4000082 thrsleep syz-fuzzer 21623 179657 64122 0 3 0x10008a pause ksh 64122 476292 50991 0 3 0x92 select sshd 50991 389854 1 0 3 0x80 select sshd 57324 80054 28674 74 3 0x100092 bpf pflogd 28674 347201 1 0 3 0x80 netio pflogd 64041 58326 86598 73 3 0x100090 kqread syslogd 86598 502142 1 0 3 0x100082 netio syslogd 94388 166567 1 77 3 0x100090 poll dhclient 96640 515998 1 0 3 0x80 poll dhclient 73642 257756 0 0 3 0x14200 bored smr 88503 362255 0 0 2 0x14200 zerothread 67957 326449 0 0 3 0x14200 aiodoned aiodoned 64332 18012 0 0 3 0x14200 syncer update 20597 310468 0 0 3 0x14200 cleaner cleaner 98179 443074 0 0 3 0x14200 reaper reaper 78528 335802 0 0 3 0x14200 pgdaemon pagedaemon 93709 209287 0 0 3 0x14200 bored crynlk 82567 32427 0 0 3 0x14200 bored crypto 52096 302638 0 0 3 0x40014200 acpi0 acpi0 59540 446906 0 0 3 0x40014200 idle1 40564 261626 0 0 3 0x14200 bored softnet 48848 412511 0 0 3 0x14200 bored systqmp 1388 112680 0 0 3 0x14200 bored systq 14575 118717 0 0 2 0x40014200 softclock 48472 154186 0 0 3 0x40014200 idle0 1 492021 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 14799 (syz-executor.1) thread 0xffff800020ec6768 (219731) exclusive kernel_lock &kernel_lock r = 1 (0xffffffff8267d978) #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 6435K 6822K 78643K 12330 0 pcb 13 8K 8K 78643K 228 0 rtable 95 12K 13K 78643K 549 0 ifaddr 122 24K 25K 78643K 302 0 counters 43 33K 34K 78643K 101 0 ioctlops 0 0K 4K 78643K 1549 0 iov 0 0K 16K 78643K 157 0 mount 1 1K 1K 78643K 1 0 vnodes 1224 77K 77K 78643K 1921 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 26 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 178 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 1206 0 sigio 0 0K 0K 78643K 12 0 proc 63 63K 95K 78643K 564 0 subproc 32 2K 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 92 0 in_multi 142 5K 5K 78643K 278 0 ether_multi 1 0K 0K 78643K 41 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 303 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 150 153K 154K 78643K 4575 0 UVM aobj 61 5K 5K 78643K 71 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 196 0 NDP 16 0K 0K 78643K 54 0 temp 149 3055K 3123K 78643K 23907 0 kqueue 3 4K 22K 78643K 81 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 8 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 84 0 82 1 0 1 1 0 8 0 rtentry 112 85 0 52 2 0 2 2 0 8 0 unpcb 120 740 0 730 1 0 1 1 0 8 0 syncache 264 18 0 18 7 7 0 1 0 8 0 tcpqe 32 116 0 116 3 3 0 1 0 8 0 tcpcb 544 393 0 389 1 0 1 1 0 8 0 inpcb 280 1704 0 1697 12 10 2 2 0 8 1 rttmr 72 6 0 6 2 2 0 1 0 8 0 nd6 48 16 0 11 1 0 1 1 0 8 0 pkpcb 40 10 0 10 3 3 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 6 0 6 5 5 0 1 0 8 0 pffrag 232 9 0 9 4 4 0 1 0 482 0 pffrnode 88 9 0 9 4 4 0 1 0 8 0 pffrent 40 234 0 234 4 4 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 142 0 102 1 0 1 1 0 8 0 pfstkey 112 142 0 102 2 0 2 2 0 8 0 pfstate 328 142 0 102 5 1 4 4 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 532 0 330 18 5 13 16 0 8 0 art_table 32 534 0 330 3 0 3 3 0 8 0 art_node 16 84 0 57 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 2 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 174 0 164 1 0 1 1 0 8 0 shmpl 112 69 0 10 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 3299 0 1898 89 0 89 89 0 8 0 ffsino 272 3299 0 1898 95 0 95 95 0 8 0 nchpl 144 5215 0 3613 60 0 60 60 0 8 0 uvmvnodes 72 3761 0 0 69 0 69 69 0 8 0 vnodes 208 3761 0 0 198 0 198 198 0 8 0 namei 1024 17351 0 17351 7 6 1 1 0 8 1 percpumem 16 61 0 29 1 0 1 1 0 8 0 vcpupl 1984 13 0 1 2 0 2 2 0 8 0 vmpool 560 19 0 7 1 0 1 1 0 8 0 scsiplug 64 4 0 4 2 2 0 1 0 8 0 scxspl 192 15605 0 15605 17 16 1 7 0 8 1 plimitpl 152 89 0 81 1 0 1 1 0 8 0 sigapl 424 1426 0 1393 4 0 4 4 0 8 0 futexpl 56 21468 0 21468 7 6 1 1 0 8 1 knotepl 112 185 0 166 2 1 1 2 0 8 0 kqueuepl 144 197 0 195 1 0 1 1 0 8 0 pipelkpl 48 221 0 211 1 0 1 1 0 8 0 pipepl 120 442 0 423 2 1 1 2 0 8 0 fdescpl 496 1409 0 1393 3 0 3 3 0 8 0 filepl 152 9914 0 9814 9 4 5 7 0 8 1 lockfpl 104 280 0 279 1 0 1 1 0 8 0 lockfspl 48 107 0 106 1 0 1 1 0 8 0 sessionpl 112 21 0 10 1 0 1 1 0 8 0 pgrppl 48 25 0 14 1 0 1 1 0 8 0 ucredpl 96 2380 0 2371 1 0 1 1 0 8 0 zombiepl 144 1393 0 1393 1 0 1 1 0 8 1 processpl 984 1426 0 1393 7 2 5 5 0 8 0 procpl 624 3742 0 3699 4 0 4 4 0 8 0 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 16 0 16 7 7 0 1 0 8 0 sockpl 400 2558 0 2539 18 15 3 5 0 8 1 mcl64k 65536 14 0 0 2 0 2 2 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 7 0 0 1 0 1 1 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 209 0 0 24 2 22 24 0 8 0 mtagpl 80 113 0 0 3 0 3 3 0 8 0 mbufpl 256 567 0 0 25 0 25 25 0 8 0 bufpl 280 6018 0 147 420 0 420 420 0 8 0 anonpl 16 138987 0 124746 128 70 58 73 0 124 0 amapchunkpl 152 8241 0 8094 30 23 7 20 0 158 0 amappl16 192 5655 0 4903 80 42 38 49 0 8 0 amappl15 184 3 0 3 2 2 0 1 0 8 0 amappl14 176 1202 0 1191 1 0 1 1 0 8 0 amappl13 168 1199 0 1194 1 0 1 1 0 8 0 amappl12 160 15 0 7 1 0 1 1 0 8 0 amappl11 152 56 0 41 1 0 1 1 0 8 0 amappl10 144 19 0 13 1 0 1 1 0 8 0 amappl9 136 385 0 384 1 0 1 1 0 8 0 amappl8 128 363 0 320 2 0 2 2 0 8 0 amappl7 120 120 0 108 1 0 1 1 0 8 0 amappl6 112 25 0 20 1 0 1 1 0 8 0 amappl5 104 149 0 133 1 0 1 1 0 8 0 amappl4 96 1685 0 1653 1 0 1 1 0 8 0 amappl3 88 1310 0 1302 1 0 1 1 0 8 0 amappl2 80 10521 0 10453 2 0 2 2 0 8 0 amappl1 72 38165 0 37717 22 12 10 18 0 8 0 amappl 80 3993 0 3939 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 70 0 10 1 0 1 1 0 8 0 uaddrrnd 24 1428 0 1400 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1428 0 1400 1 0 1 1 0 8 0 vmmpekpl 168 13119 0 13088 2 0 2 2 0 8 0 vmmpepl 168 175779 0 173834 141 55 86 105 0 357 0 vmsppl 368 1427 0 1400 4 1 3 3 0 8 0 pdppl 4096 2864 0 2812 8 1 7 7 0 8 0 pvpl 32 413749 0 396470 260 119 141 176 0 265 1 pmappl 232 1427 0 1400 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 309 0 33 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace tun_dev_read(5d01,ffff800021f89c28,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 spec_read(ffff800021f89a70) at spec_read+0xf1 sys/kern/spec_vnops.c:222 VOP_READ(fffffd806e2ec008,ffff800021f89c28,10,fffffd807f7bfb40) at VOP_READ+0xbf sys/kern/vfs_vops.c:247 vn_read(fffffd806cb734d8,ffff800021f89c28,0) at vn_read+0x124 sys/kern/vfs_vnops.c:375 dofilereadv(ffff800020ec6768,f0,ffff800021f89c28,0,ffff800021f89d10) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ec6768,ffff800021f89cc0,ffff800021f89d10) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800021f89d90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021f89d90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4c1ead4efc0, 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(ffffffff8267d770) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8267d770) at __mp_lock+0x127 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff8267d770,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(ffff800020f18d50,1) at sleep_finish+0x113 sys/kern/kern_synch.c:418 sleep_finish_all(ffff800020f18d50,1) at sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:447 [inline] sleep_finish_all(ffff800020f18d50,1) at sleep_finish_all+0x32 sys/kern/kern_synch.c:393 tsleep(ffffffff82643430,120,ffffffff821f4f13,2) at tsleep+0x1cc sys/kern/kern_synch.c:155 sys_nanosleep(ffff800020ed0eb0,ffff800020f18e80,ffff800020f18ed0) at sys_nanosleep+0x205 sys/kern/kern_time.c:297 syscall(ffff800020f18f50) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020f18f50) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc000051f38, count: -12