uvm_fault(0xffffffff827b0b88, 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(0xffffffff827b0b88, 0xfffffd0000000018, 0, 1) -> e tun_dev_read(5d01,ffff800021efd628,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 end trace frame: 0xffff800021efd460, count: 0 ddb{0}> trace tun_dev_read(5d01,ffff800021efd628,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 spec_read(ffff800021efd470) at spec_read+0xf1 sys/kern/spec_vnops.c:222 VOP_READ(fffffd806e67c1a8,ffff800021efd628,10,fffffd807f7bf5a0) at VOP_READ+0xbf sys/kern/vfs_vops.c:247 vn_read(fffffd80673dec78,ffff800021efd628,0) at vn_read+0x124 sys/kern/vfs_vnops.c:375 dofilereadv(ffff800020e089d8,f0,ffff800021efd628,0,ffff800021efd710) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e089d8,ffff800021efd6c0,ffff800021efd710) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800021efd790) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021efd790) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc77bad893c0, count: -8 ddb{0}> show registers rdi 0 rsi 0x3da rbp 0xffff800021efd3b0 rbx 0xfffffd0000000000 rdx 0x152 rcx 0xffff800000adb540 rax 0xffffffff81b18813 tun_dev_read+0x133 r8 0x7f7fffffc000 r9 0x5 r10 0xad1d1bfcf83340ce r11 0x25ab6256385bbde1 r12 0 r13 0x3da r14 0xffff800000af6660 r15 0xffff800021efd628 rip 0xffffffff81b18818 tun_dev_read+0x138 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff800021efd350 ss 0x10 tun_dev_read+0x138: movl 0x18(%rbx),%r12d ddb{0}> show proc PROC (syz-executor.1) pid=392553 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020e09128,0xffffffff828d0c00 process=0xffff800020e23370 user=0xffff800021ef8000, vmspace=0xfffffd8066b715d0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 18843 253896 37631 0 2 0 syz-executor.1 *18843 392553 37631 0 7 0x4000000 syz-executor.1 75633 35217 1 0 3 0x100083 ttyin getty 73620 482588 0 0 3 0x14200 bored sosplice 37631 412431 89900 0 7 0x482 syz-executor.1 84460 442619 89900 0 3 0x82 piperd syz-executor.0 89900 203427 12245 0 3 0x82 thrsleep syz-fuzzer 89900 334883 12245 0 3 0x4000082 nanosleep syz-fuzzer 89900 9134 12245 0 3 0x4000082 thrsleep syz-fuzzer 89900 69892 12245 0 3 0x4000082 kqread syz-fuzzer 89900 413780 12245 0 3 0x4000082 thrsleep syz-fuzzer 89900 253607 12245 0 2 0x4000002 syz-fuzzer 89900 280245 12245 0 3 0x4000082 thrsleep syz-fuzzer 89900 21564 12245 0 3 0x4000082 thrsleep syz-fuzzer 89900 157768 12245 0 3 0x4000082 thrsleep syz-fuzzer 89900 125352 12245 0 3 0x4000082 thrsleep syz-fuzzer 12245 430909 3 0 3 0x10008a pause ksh 3 510014 86201 0 3 0x92 select sshd 86201 381997 1 0 3 0x80 select sshd 32966 384688 5368 74 3 0x100092 bpf pflogd 5368 166418 1 0 3 0x80 netio pflogd 70786 247139 52216 73 3 0x100090 kqread syslogd 52216 82591 1 0 3 0x100082 netio syslogd 3024 519540 1 77 3 0x100090 poll dhclient 90460 431733 1 0 3 0x80 poll dhclient 6792 248794 0 0 3 0x14200 bored smr 92574 393624 0 0 2 0x14200 zerothread 58031 370040 0 0 3 0x14200 aiodoned aiodoned 73855 515556 0 0 3 0x14200 syncer update 99847 100157 0 0 3 0x14200 cleaner cleaner 75088 368421 0 0 3 0x14200 reaper reaper 65906 24791 0 0 3 0x14200 pgdaemon pagedaemon 92471 301836 0 0 3 0x14200 bored crynlk 16344 304765 0 0 3 0x14200 bored crypto 75860 51321 0 0 3 0x40014200 acpi0 acpi0 18010 232058 0 0 3 0x40014200 idle1 3247 369567 0 0 3 0x14200 bored softnet 91314 498763 0 0 3 0x14200 bored systqmp 70756 452411 0 0 3 0x14200 bored systq 32391 55292 0 0 3 0x40014200 bored softclock 27519 333083 0 0 3 0x40014200 idle0 1 444103 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 18843 (syz-executor.1) thread 0xffff800020e089d8 (392553) exclusive kernel_lock &kernel_lock r = 1 (0xffffffff828c9810) #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 9536 6436K 6813K 78643K 11572 0 pcb 13 8K 8K 78643K 130 0 rtable 119 7K 9K 78643K 589 0 ifaddr 99 19K 20K 78643K 260 0 sysctl 2 0K 0K 78643K 4 0 counters 43 33K 34K 78643K 77 0 ioctlops 0 0K 4K 78643K 1606 0 iov 0 0K 24K 78643K 122 0 mount 1 1K 1K 78643K 1 0 vnodes 1222 77K 77K 78643K 1560 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 16 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 5 13K 25K 78643K 825 0 sigio 0 0K 0K 78643K 5 0 proc 62 63K 95K 78643K 489 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 67 0 in_multi 90 3K 4K 78643K 304 0 ether_multi 1 0K 0K 78643K 20 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 270 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 130 87K 97K 78643K 3434 0 UVM aobj 38 2K 2K 78643K 42 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 1K 78643K 110 0 NDP 14 0K 0K 78643K 65 0 temp 131 3869K 3934K 78643K 11493 0 kqueue 3 4K 16K 78643K 46 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 10 0 1 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 59 0 57 1 0 1 1 0 8 0 rtentry 112 100 0 58 2 0 2 2 0 8 0 unpcb 120 293 0 283 1 0 1 1 0 8 0 syncache 264 12 0 12 4 4 0 1 0 8 0 tcpqe 32 791 0 791 1 1 0 1 0 8 0 tcpcb 544 251 0 247 1 0 1 1 0 8 0 inpcb 296 791 0 782 5 3 2 2 0 8 1 nd6 48 44 0 41 1 0 1 1 0 8 0 pkpcb 40 9 0 9 2 2 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 2 0 2 2 2 0 1 0 8 0 pfstscr 40 2 0 1 1 0 1 1 0 8 0 pffrag 232 3 0 3 2 2 0 1 0 482 0 pffrnode 88 3 0 3 2 2 0 1 0 8 0 pffrent 40 7 0 7 2 2 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 pfrktable 1344 64 0 57 2 0 2 2 0 8 1 pftag 88 6 0 6 3 2 1 1 0 8 1 pfstitem 24 17 0 11 1 0 1 1 0 8 0 pfstkey 112 19 0 13 1 0 1 1 0 8 0 pfstate 328 16 0 12 2 0 2 2 0 8 0 pfrule 1360 48 0 36 4 2 2 2 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 306 0 107 15 1 14 14 0 8 1 art_table 32 308 0 107 2 0 2 2 0 8 0 art_node 16 99 0 60 1 0 1 1 0 8 0 sysvmsgpl 40 49 0 34 1 0 1 1 0 8 0 semupl 112 3 0 3 2 2 0 1 0 8 0 semapl 112 9 0 0 1 0 1 1 0 8 0 shmpl 112 40 0 4 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2530 0 1123 89 0 89 89 0 8 0 ffsino 272 2530 0 1123 96 1 95 95 0 8 0 nchpl 144 4311 0 2696 61 0 61 61 0 8 0 uvmvnodes 72 2778 0 0 51 0 51 51 0 8 0 vnodes 208 2778 0 0 147 0 147 147 0 8 0 namei 1024 11714 0 11714 5 4 1 1 0 8 1 percpumem 16 49 0 17 1 0 1 1 0 8 0 vcpupl 1984 7 0 0 1 0 1 1 0 8 0 vmpool 560 11 0 4 2 1 1 1 0 8 0 pfiaddrpl 120 19 0 14 1 0 1 1 0 8 0 scxspl 192 11962 0 11962 11 8 3 5 0 8 3 plimitpl 152 69 0 61 1 0 1 1 0 8 0 sigapl 424 1042 0 1010 4 0 4 4 0 8 0 futexpl 56 11101 0 11101 4 3 1 1 0 8 1 knotepl 112 107 0 88 1 0 1 1 0 8 0 kqueuepl 144 103 0 101 1 0 1 1 0 8 0 pipelkpl 48 189 0 179 1 0 1 1 0 8 0 pipepl 120 378 0 359 2 1 1 2 0 8 0 fdescpl 496 1026 0 1010 3 0 3 3 0 8 0 filepl 152 6252 0 6149 10 5 5 7 0 8 0 lockfpl 104 206 0 205 1 0 1 1 0 8 0 lockfspl 48 60 0 59 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 21 0 10 1 0 1 1 0 8 0 ucredpl 96 720 0 711 1 0 1 1 0 8 0 zombiepl 144 1010 0 1010 4 3 1 1 0 8 1 processpl 984 1042 0 1010 8 3 5 5 0 8 0 procpl 624 2627 0 2585 4 0 4 4 0 8 0 sosppl 128 6 0 6 2 1 1 1 0 8 1 sockpl 400 1154 0 1135 11 8 3 4 0 8 1 mcl64k 65536 514 0 0 65 1 64 65 0 8 1 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 10 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 9 0 0 2 0 2 2 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 233 0 0 29 0 29 29 0 8 0 mtagpl 96 66 0 0 2 0 2 2 0 8 0 mbufpl 256 778 0 0 45 0 45 45 0 8 0 bufpl 280 5200 0 137 362 0 362 362 0 8 0 anonpl 16 108077 0 91463 116 33 83 84 0 124 15 amapchunkpl 152 5737 0 5568 17 5 12 12 0 158 4 amappl16 192 5024 0 4134 79 26 53 57 0 8 8 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 26 0 21 1 0 1 1 0 8 0 amappl13 168 29 0 26 1 0 1 1 0 8 0 amappl12 160 433 0 430 1 0 1 1 0 8 0 amappl11 152 62 0 46 1 0 1 1 0 8 0 amappl10 144 356 0 349 1 0 1 1 0 8 0 amappl9 136 387 0 384 1 0 1 1 0 8 0 amappl8 128 339 0 312 1 0 1 1 0 8 0 amappl7 120 117 0 106 1 0 1 1 0 8 0 amappl6 112 27 0 20 1 0 1 1 0 8 0 amappl5 104 1264 0 1245 1 0 1 1 0 8 0 amappl4 96 500 0 469 1 0 1 1 0 8 0 amappl3 88 135 0 129 1 0 1 1 0 8 0 amappl2 80 6804 0 6733 2 0 2 2 0 8 0 amappl1 72 30720 0 30275 23 14 9 18 0 8 0 amappl 80 2890 0 2839 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 41 0 4 1 0 1 1 0 8 0 uaddrrnd 24 1037 0 1014 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1037 0 1014 1 0 1 1 0 8 0 vmmpekpl 168 10888 0 10847 4 1 3 3 0 8 0 vmmpepl 168 127300 0 125243 150 46 104 112 0 357 10 vmsppl 368 1036 0 1014 3 0 3 3 0 8 0 pdppl 4096 2081 0 2035 7 0 7 7 0 8 1 pvpl 32 321690 0 302007 240 48 192 195 0 265 30 pmappl 232 1036 0 1014 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 385 0 19 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace tun_dev_read(5d01,ffff800021efd628,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 spec_read(ffff800021efd470) at spec_read+0xf1 sys/kern/spec_vnops.c:222 VOP_READ(fffffd806e67c1a8,ffff800021efd628,10,fffffd807f7bf5a0) at VOP_READ+0xbf sys/kern/vfs_vops.c:247 vn_read(fffffd80673dec78,ffff800021efd628,0) at vn_read+0x124 sys/kern/vfs_vnops.c:375 dofilereadv(ffff800020e089d8,f0,ffff800021efd628,0,ffff800021efd710) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e089d8,ffff800021efd6c0,ffff800021efd710) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800021efd790) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021efd790) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc77bad893c0, count: -8 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(ffffffff828c9608) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828c9608) at __mp_lock+0x127 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff828c9608,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(ffff8000230ffbc0,1) at sleep_finish+0x113 sys/kern/kern_synch.c:418 sleep_finish_all(ffff8000230ffbc0,1) at sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:447 [inline] sleep_finish_all(ffff8000230ffbc0,1) at sleep_finish_all+0x32 sys/kern/kern_synch.c:393 tsleep(ffffffff827d1a74,120,ffffffff823ee3cf,2) at tsleep+0x1cc sys/kern/kern_synch.c:155 sys_nanosleep(ffff800020ddd868,ffff8000230ffcf0,ffff8000230ffd40) at sys_nanosleep+0x205 sys/kern/kern_time.c:297 syscall(ffff8000230ffdc0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000230ffdc0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd7f00, count: -12