uvm_fault(0xffffffff8263e320, 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(0xffffffff8263e320, 0xfffffd0000000018, 0, 1) -> e tun_dev_read(5d01,ffff800021fc1538,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 end trace frame: 0xffff800021fc1370, count: 0 ddb{0}> trace tun_dev_read(5d01,ffff800021fc1538,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 spec_read(ffff800021fc1380) at spec_read+0xf1 sys/kern/spec_vnops.c:222 VOP_READ(fffffd806ede91a8,ffff800021fc1538,10,fffffd807f7bf9c0) at VOP_READ+0xbf sys/kern/vfs_vops.c:247 vn_read(fffffd80677f1c90,ffff800021fc1538,0) at vn_read+0x124 sys/kern/vfs_vnops.c:375 dofilereadv(ffff800020ec6768,f0,ffff800021fc1538,0,ffff800021fc1620) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ec6768,ffff800021fc15d0,ffff800021fc1620) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800021fc16a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021fc16a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2fb26fa1da0, count: -8 ddb{0}> show registers rdi 0 rsi 0x3da rbp 0xffff800021fc12c0 rbx 0xfffffd0000000000 rdx 0x460 rcx 0xffff8000009d7800 rax 0xffffffff82194303 tun_dev_read+0x133 r8 0x7f7fffffc000 r9 0x5 r10 0x214e7728688fde5d r11 0xc966b1da30d22262 r12 0 r13 0x3da r14 0xffff800000a28660 r15 0xffff800021fc1538 rip 0xffffffff82194308 tun_dev_read+0x138 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff800021fc1260 ss 0x10 tun_dev_read+0x138: movl 0x18(%rbx),%r12d ddb{0}> show proc PROC (syz-executor.1) pid=447174 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ec6018,0xffffffff82693af8 process=0xffff800020e927d0 user=0xffff800021fbc000, vmspace=0xfffffd8064ff6a20 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 67612 418811 93981 0 2 0 syz-executor.1 67612 488328 93981 0 3 0x4000080 fsleep syz-executor.1 *67612 447174 93981 0 7 0x4000000 syz-executor.1 78026 486548 43489 0 7 0x480 syz-executor.0 78026 458062 43489 0 3 0x4000080 netcon syz-executor.0 78026 374389 43489 0 3 0x4000080 fsleep syz-executor.0 50449 376825 0 0 3 0x14200 acct acct 43489 71327 37731 0 3 0x82 nanosleep syz-executor.0 43402 385576 1 0 3 0x100083 ttyin getty 63679 94985 0 0 3 0x14200 bored sosplice 93981 352013 37731 0 3 0x82 nanosleep syz-executor.1 37731 430292 81937 0 3 0x82 thrsleep syz-fuzzer 37731 432385 81937 0 3 0x4000082 thrsleep syz-fuzzer 37731 308408 81937 0 3 0x4000082 thrsleep syz-fuzzer 37731 467112 81937 0 3 0x4000082 thrsleep syz-fuzzer 37731 190861 81937 0 3 0x4000082 thrsleep syz-fuzzer 37731 81971 81937 0 3 0x4000082 kqread syz-fuzzer 37731 296953 81937 0 3 0x4000082 thrsleep syz-fuzzer 37731 38632 81937 0 3 0x4000082 thrsleep syz-fuzzer 37731 302983 81937 0 3 0x4000082 thrsleep syz-fuzzer 37731 54092 81937 0 3 0x4000082 thrsleep syz-fuzzer 81937 38958 89568 0 3 0x10008a pause ksh 89568 1039 52014 0 3 0x92 select sshd 52014 221728 1 0 3 0x80 select sshd 55512 267385 31425 74 3 0x100092 bpf pflogd 31425 11813 1 0 3 0x80 netio pflogd 3261 365962 86722 73 3 0x100090 kqread syslogd 86722 161275 1 0 3 0x100082 netio syslogd 56738 351700 1 77 3 0x100090 poll dhclient 2627 265616 1 0 3 0x80 poll dhclient 20386 100626 0 0 3 0x14200 bored smr 11906 6480 0 0 2 0x14200 zerothread 9115 187624 0 0 3 0x14200 aiodoned aiodoned 88581 110207 0 0 3 0x14200 syncer update 66173 521833 0 0 3 0x14200 cleaner cleaner 57733 84712 0 0 3 0x14200 reaper reaper 88455 334338 0 0 3 0x14200 pgdaemon pagedaemon 90835 86173 0 0 3 0x14200 bored crynlk 4707 503149 0 0 3 0x14200 bored crypto 97579 509848 0 0 3 0x40014200 acpi0 acpi0 46071 133058 0 0 3 0x40014200 idle1 70245 147211 0 0 3 0x14200 bored softnet 15052 86180 0 0 3 0x14200 bored systqmp 64992 471405 0 0 3 0x14200 bored systq 57317 337137 0 0 2 0x40014200 softclock 46595 362411 0 0 3 0x40014200 idle0 1 422525 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 67612 (syz-executor.1) thread 0xffff800020ec6768 (447174) exclusive kernel_lock &kernel_lock r = 1 (0xffffffff82640b58) #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 6430K 7046K 78643K 12207 0 pcb 13 8K 8K 78643K 372 0 rtable 103 3K 4K 78643K 457 0 ifaddr 90 17K 17K 78643K 209 0 counters 43 33K 34K 78643K 77 0 ioctlops 0 0K 4K 78643K 1530 0 iov 0 0K 24K 78643K 104 0 mount 1 1K 1K 78643K 1 0 vnodes 1223 77K 77K 78643K 1677 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 13 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 96 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 679 0 sigio 0 0K 0K 78643K 9 0 proc 62 63K 95K 78643K 558 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 73 0 in_multi 78 3K 4K 78643K 191 0 ether_multi 1 0K 0K 78643K 20 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 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 278 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 171 171K 171K 78643K 3324 0 UVM aobj 38 4K 4K 78643K 40 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 306 0 NDP 14 0K 0K 78643K 43 0 temp 142 3046K 3122K 78643K 19290 0 kqueue 3 4K 12K 78643K 38 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 11 0 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 395 0 393 1 0 1 1 0 8 0 rtentry 112 92 0 51 2 0 2 2 0 8 0 unpcb 120 406 0 396 1 0 1 1 0 8 0 syncache 264 13 0 13 6 5 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 44 0 44 3 2 1 1 0 8 1 tcpcb 544 605 0 598 3 2 1 2 0 8 0 inpcb 280 1712 0 1702 3 1 2 2 0 8 1 rttmr 72 2 0 2 1 1 0 1 0 8 0 nd6 48 16 0 13 1 0 1 1 0 8 0 ppxss 1128 4 0 4 1 1 0 1 0 8 0 pffrag 232 11 0 11 4 4 0 1 0 482 0 pffrnode 88 11 0 11 4 4 0 1 0 8 0 pffrent 40 198 0 198 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 68 0 36 1 0 1 1 0 8 0 pfstkey 112 68 0 36 2 0 2 2 0 8 0 pfstate 328 68 0 36 4 0 4 4 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 426 0 243 14 1 13 13 0 8 0 art_table 32 427 0 243 2 0 2 2 0 8 0 art_node 16 91 0 52 1 0 1 1 0 8 0 sysvmsgpl 40 17 0 4 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 88 0 78 1 0 1 1 0 8 0 shmpl 112 38 0 2 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2311 0 904 89 0 89 89 0 8 0 ffsino 272 2311 0 904 95 0 95 95 0 8 0 nchpl 144 3448 0 1848 60 0 60 60 0 8 0 uvmvnodes 72 2719 0 0 50 0 50 50 0 8 0 vnodes 208 2719 0 0 144 0 144 144 0 8 0 namei 1024 9893 0 9893 2 1 1 1 0 8 1 percpumem 16 49 0 17 1 0 1 1 0 8 0 vcpupl 1984 12 0 0 2 0 2 2 0 8 0 vmpool 560 14 0 2 1 0 1 1 0 8 0 scxspl 192 9764 0 9764 8 7 1 7 0 8 1 plimitpl 152 85 0 77 1 0 1 1 0 8 0 sigapl 424 894 0 860 4 0 4 4 0 8 0 futexpl 56 11585 0 11583 2 1 1 1 0 8 0 knotepl 112 120 0 101 1 0 1 1 0 8 0 kqueuepl 144 115 0 111 1 0 1 1 0 8 0 pipelkpl 48 168 0 158 1 0 1 1 0 8 0 pipepl 120 336 0 317 1 0 1 1 0 8 0 fdescpl 496 877 0 860 3 0 3 3 0 8 0 filepl 152 6264 0 6162 7 2 5 6 0 8 0 lockfpl 104 187 0 186 1 0 1 1 0 8 0 lockfspl 48 67 0 66 1 0 1 1 0 8 0 sessionpl 112 20 0 9 1 0 1 1 0 8 0 pgrppl 48 30 0 19 1 0 1 1 0 8 0 ucredpl 96 584 0 575 1 0 1 1 0 8 0 zombiepl 144 860 0 860 1 0 1 1 0 8 1 processpl 984 894 0 860 5 0 5 5 0 8 0 procpl 624 2439 0 2392 4 0 4 4 0 8 0 sosppl 128 9 0 9 3 2 1 1 0 8 1 sockpl 400 2527 0 2503 8 3 5 5 0 8 2 mcl64k 65536 9 0 0 2 0 2 2 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 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 8 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 229 0 0 28 0 28 28 0 8 0 mtagpl 80 38 0 0 1 0 1 1 0 8 0 mbufpl 256 331 0 0 19 0 19 19 0 8 0 bufpl 280 4664 0 133 324 0 324 324 0 8 0 anonpl 16 91641 0 77460 81 22 59 74 0 124 0 amapchunkpl 152 5616 0 5471 24 13 11 20 0 158 4 amappl16 192 3964 0 3177 53 12 41 52 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 24 0 20 1 0 1 1 0 8 0 amappl13 168 339 0 336 1 0 1 1 0 8 0 amappl12 160 13 0 7 1 0 1 1 0 8 0 amappl11 152 383 0 366 1 0 1 1 0 8 0 amappl10 144 33 0 26 1 0 1 1 0 8 0 amappl9 136 387 0 386 1 0 1 1 0 8 0 amappl8 128 386 0 340 2 0 2 2 0 8 0 amappl7 120 126 0 114 1 0 1 1 0 8 0 amappl6 112 252 0 240 1 0 1 1 0 8 0 amappl5 104 550 0 532 1 0 1 1 0 8 0 amappl4 96 1048 0 1016 1 0 1 1 0 8 0 amappl3 88 127 0 122 1 0 1 1 0 8 0 amappl2 80 5958 0 5875 2 0 2 2 0 8 0 amappl1 72 29468 0 29002 23 12 11 18 0 8 0 amappl 80 2722 0 2662 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 39 0 2 1 0 1 1 0 8 0 uaddrrnd 24 891 0 862 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 891 0 862 1 0 1 1 0 8 0 vmmpekpl 168 10858 0 10824 2 0 2 2 0 8 0 vmmpepl 168 112999 0 110897 127 34 93 115 0 357 1 vmsppl 368 890 0 862 3 0 3 3 0 8 0 pdppl 4096 1790 0 1736 7 0 7 7 0 8 0 pvpl 32 286457 0 269044 187 35 152 178 0 265 7 pmappl 232 890 0 862 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 285 0 10 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace tun_dev_read(5d01,ffff800021fc1538,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 spec_read(ffff800021fc1380) at spec_read+0xf1 sys/kern/spec_vnops.c:222 VOP_READ(fffffd806ede91a8,ffff800021fc1538,10,fffffd807f7bf9c0) at VOP_READ+0xbf sys/kern/vfs_vops.c:247 vn_read(fffffd80677f1c90,ffff800021fc1538,0) at vn_read+0x124 sys/kern/vfs_vnops.c:375 dofilereadv(ffff800020ec6768,f0,ffff800021fc1538,0,ffff800021fc1620) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ec6768,ffff800021fc15d0,ffff800021fc1620) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800021fc16a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021fc16a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2fb26fa1da0, 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 __sanitizer_cov_trace_cmp4(bd125,bd126) at __sanitizer_cov_trace_cmp4+0x20 trace_cmp sys/dev/kcov.c:104 [inline] __sanitizer_cov_trace_cmp4(bd125,bd126) at __sanitizer_cov_trace_cmp4+0x20 sys/dev/kcov.c:135 __mp_lock(ffffffff82640950) at __mp_lock+0x139 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82640950) at __mp_lock+0x139 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff82640950,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(ffff800021f773f0,1) at sleep_finish+0x113 sys/kern/kern_synch.c:418 sleep_finish_all(ffff800021f773f0,1) at sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:447 [inline] sleep_finish_all(ffff800021f773f0,1) at sleep_finish_all+0x32 sys/kern/kern_synch.c:393 tsleep(ffffffff82638464,120,ffffffff821ef088,2) at tsleep+0x1cc sys/kern/kern_synch.c:155 sys_nanosleep(ffff800020ec7398,ffff800021f77520,ffff800021f77570) at sys_nanosleep+0x205 sys/kern/kern_time.c:297 syscall(ffff800021f775f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021f775f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe8890, count: -13