uvm_fault(0xffffffff827b2f58, 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(0xffffffff827b2f58, 0xfffffd0000000018, 0, 1) -> e tun_dev_read(5d01,ffff8000231022b8,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 end trace frame: 0xffff8000231020f0, count: 0 ddb{0}> trace tun_dev_read(5d01,ffff8000231022b8,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 spec_read(ffff800023102100) at spec_read+0xf1 sys/kern/spec_vnops.c:222 VOP_READ(fffffd806e638348,ffff8000231022b8,10,fffffd807f7bf960) at VOP_READ+0xbf sys/kern/vfs_vops.c:247 vn_read(fffffd8066bf2868,ffff8000231022b8,0) at vn_read+0x124 sys/kern/vfs_vnops.c:375 dofilereadv(ffff800020e09768,f0,ffff8000231022b8,0,ffff8000231023a0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e09768,ffff800023102350,ffff8000231023a0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800023102420) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023102420) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa9bd69fff20, count: -8 ddb{0}> show registers rdi 0 rsi 0x3da rbp 0xffff800023102040 rbx 0xfffffd0000000000 rdx 0x152 rcx 0xffff800000adb640 rax 0xffffffff81d1c693 tun_dev_read+0x133 r8 0x7f7fffffc000 r9 0x5 r10 0x7d42de2796bb8465 r11 0xf82a9329b0d5717b r12 0 r13 0x3da r14 0xffff800000af1e70 r15 0xffff8000231022b8 rip 0xffffffff81d1c698 tun_dev_read+0x138 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff800023101fe0 ss 0x10 tun_dev_read+0x138: movl 0x18(%rbx),%r12d ddb{0}> show proc PROC (syz-executor.1) pid=357349 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020e38af0,0xffff800020e09c58 process=0xffff8000230eafb0 user=0xffff8000230fd000, vmspace=0xfffffd80643bb740 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 65678 114516 84312 0 7 0 syz-executor.1 *65678 357349 84312 0 7 0x4000000 syz-executor.1 65678 445896 84312 0 3 0x4000080 fsleep syz-executor.1 6191 56722 0 0 3 0x14280 nfsidl nfsio 52916 93054 0 0 3 0x14280 nfsidl nfsio 12348 432373 0 0 3 0x14280 nfsidl nfsio 72940 445883 0 0 3 0x14280 nfsidl nfsio 57839 95050 0 0 3 0x14280 nfsidl nfsio 35637 262123 0 0 3 0x14280 nfsidl nfsio 43942 288642 0 0 3 0x14280 nfsidl nfsio 61281 378472 0 0 3 0x14280 nfsidl nfsio 8604 320295 0 0 3 0x14280 nfsidl nfsio 56725 303425 0 0 3 0x14280 nfsidl nfsio 67006 415316 0 0 3 0x14280 nfsidl nfsio 52784 205691 0 0 3 0x14280 nfsidl nfsio 84752 187723 0 0 3 0x14280 nfsidl nfsio 77932 160235 0 0 3 0x14280 nfsidl nfsio 691 403935 0 0 3 0x14280 nfsidl nfsio 98060 462554 0 0 3 0x14280 nfsidl nfsio 96338 426950 0 0 3 0x14280 nfsidl nfsio 34096 301506 0 0 3 0x14280 nfsidl nfsio 7882 133000 0 0 3 0x14280 nfsidl nfsio 7314 410367 0 0 3 0x14280 nfsidl nfsio 23837 180006 0 0 3 0x14200 bored sosplice 84312 139775 47361 0 3 0x82 nanosleep syz-executor.1 25972 371431 47361 0 2 0x482 syz-executor.0 47361 512506 59521 0 3 0x82 thrsleep syz-fuzzer 47361 107032 59521 0 2 0x4000482 syz-fuzzer 47361 241422 59521 0 3 0x4000082 thrsleep syz-fuzzer 47361 256491 59521 0 3 0x4000082 thrsleep syz-fuzzer 47361 178307 59521 0 3 0x4000082 kqread syz-fuzzer 47361 427527 59521 0 3 0x4000082 thrsleep syz-fuzzer 47361 98077 59521 0 3 0x4000082 thrsleep syz-fuzzer 47361 230489 59521 0 3 0x4000082 thrsleep syz-fuzzer 47361 340118 59521 0 3 0x4000082 thrsleep syz-fuzzer 47361 69261 59521 0 3 0x4000082 thrsleep syz-fuzzer 59521 318062 62839 0 3 0x10008a pause ksh 62839 105391 69787 0 3 0x92 select sshd 1462 405410 1 0 3 0x100083 ttyin getty 69787 422718 1 0 3 0x80 select sshd 64375 160405 98370 74 3 0x100092 bpf pflogd 98370 458226 1 0 3 0x80 netio pflogd 44988 217453 15799 73 3 0x100090 kqread syslogd 15799 229121 1 0 3 0x100082 netio syslogd 45973 33890 1 77 3 0x100090 poll dhclient 72546 466189 1 0 3 0x80 poll dhclient 32712 333826 0 0 3 0x14200 bored smr 86804 98245 0 0 2 0x14200 zerothread 46241 407284 0 0 3 0x14200 aiodoned aiodoned 21689 98315 0 0 3 0x14200 syncer update 23073 486432 0 0 3 0x14200 cleaner cleaner 50235 261928 0 0 3 0x14200 reaper reaper 48818 319818 0 0 3 0x14200 pgdaemon pagedaemon 80022 182909 0 0 3 0x14200 bored crynlk 4430 270633 0 0 3 0x14200 bored crypto 71021 286420 0 0 3 0x40014200 acpi0 acpi0 25874 347096 0 0 3 0x40014200 idle1 9648 366573 0 0 3 0x14200 bored softnet 89519 115287 0 0 3 0x14200 bored systqmp 81353 515713 0 0 3 0x14200 bored systq 73110 309339 0 0 2 0x40014200 softclock 2375 110869 0 0 3 0x40014200 idle0 1 213750 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 65678 (syz-executor.1) thread 0xffff800020e09768 (357349) exclusive kernel_lock &kernel_lock r = 1 (0xffffffff828df750) #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 9521 6495K 6809K 78643K 11333 0 pcb 13 8K 8K 78643K 117 0 rtable 86 2K 6K 78643K 336 0 ifaddr 78 16K 16K 78643K 138 0 sysctl 2 0K 0K 78643K 4 0 counters 43 33K 34K 78643K 61 0 ioctlops 0 0K 4K 78643K 1675 0 iov 0 0K 16K 78643K 78 0 mount 1 1K 1K 78643K 1 0 vnodes 1211 76K 77K 78643K 1456 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 184 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 722 0 sigio 0 0K 0K 78643K 11 0 proc 62 63K 95K 78643K 507 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 55 0 in_multi 70 3K 3K 78643K 128 0 ether_multi 1 0K 0K 78643K 17 0 mrt 0 0K 0K 78643K 6 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 248 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 134 88K 88K 78643K 3256 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 90 0 NDP 11 0K 0K 78643K 26 0 temp 113 3866K 3944K 78643K 9537 0 kqueue 3 4K 10K 78643K 19 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 1 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 38 0 36 1 0 1 1 0 8 0 rtentry 112 60 0 26 2 0 2 2 0 8 0 unpcb 120 386 0 374 1 0 1 1 0 8 0 syncache 264 7 0 7 3 3 0 1 0 8 0 tcpqe 32 220 0 220 1 1 0 1 0 8 0 tcpcb 544 876 0 872 2 1 1 2 0 8 0 inpcb 296 1371 0 1364 4 2 2 2 0 8 1 rttmr 72 2 0 2 2 2 0 1 0 8 0 nd6 48 11 0 6 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 pffrag 232 4 0 3 2 1 1 1 0 482 0 pffrnode 88 4 0 3 2 1 1 1 0 8 0 pffrent 40 53 0 52 2 1 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 7 0 7 1 1 0 1 0 8 0 pfstitem 24 55 0 13 1 0 1 1 0 8 0 pfstkey 112 55 0 13 2 0 2 2 0 8 0 pfstate 328 55 0 13 5 0 5 5 0 8 0 pfrule 1360 25 0 24 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 294 0 137 14 2 12 13 0 8 0 art_table 32 295 0 137 2 0 2 2 0 8 0 art_node 16 59 0 30 1 0 1 1 0 8 0 sysvmsgpl 40 26 0 17 2 1 1 1 0 8 0 semupl 112 7 0 7 1 1 0 1 0 8 0 semapl 112 178 0 168 1 0 1 1 0 8 0 shmpl 112 35 0 5 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2330 0 933 89 1 88 89 0 8 0 ffsino 272 2330 0 933 94 0 94 94 0 8 0 nchpl 144 3795 0 2181 60 0 60 60 0 8 0 uvmvnodes 72 2532 0 0 47 0 47 47 0 8 0 vnodes 208 2532 0 0 134 0 134 134 0 8 0 namei 1024 9981 0 9981 3 2 1 1 0 8 1 percpumem 16 41 0 9 1 0 1 1 0 8 0 vcpupl 1984 8 0 0 1 0 1 1 0 8 0 vmpool 560 12 0 4 1 0 1 1 0 8 0 pfiaddrpl 120 4 0 4 1 1 0 1 0 8 0 scxspl 192 10628 0 10628 11 10 1 7 0 8 1 plimitpl 152 60 0 52 1 0 1 1 0 8 0 sigapl 424 958 0 906 6 0 6 6 0 8 0 futexpl 56 11303 0 11302 3 2 1 1 0 8 0 knotepl 112 78 0 59 1 0 1 1 0 8 0 kqueuepl 144 97 0 95 1 0 1 1 0 8 0 pipepl 304 185 0 175 4 3 1 2 0 8 0 fdescpl 496 922 0 906 3 0 3 3 0 8 0 filepl 152 5755 0 5655 6 1 5 6 0 8 1 lockfpl 104 156 0 155 1 0 1 1 0 8 0 lockfspl 48 48 0 47 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 22 0 11 1 0 1 1 0 8 0 ucredpl 96 449 0 440 1 0 1 1 0 8 0 zombiepl 144 906 0 905 3 2 1 1 0 8 0 processpl 992 958 0 905 7 0 7 7 0 8 0 procpl 624 2466 0 2402 6 0 6 6 0 8 1 sosppl 128 10 0 10 2 2 0 1 0 8 0 sockpl 400 1800 0 1779 8 4 4 4 0 8 1 mcl64k 65536 11 0 0 2 0 2 2 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 6 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 173 0 0 21 0 21 21 0 8 0 mtagpl 96 32 0 0 1 0 1 1 0 8 0 mbufpl 256 313 0 0 17 2 15 17 0 8 0 bufpl 280 5144 0 136 358 0 358 358 0 8 0 anonpl 16 108065 0 90658 100 28 72 87 0 124 0 amapchunkpl 152 5570 0 5399 20 12 8 20 0 158 0 amappl16 192 4589 0 3647 73 25 48 59 0 8 0 amappl15 184 342 0 341 2 1 1 1 0 8 0 amappl14 176 23 0 19 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 22 0 18 1 0 1 1 0 8 0 amappl11 152 404 0 387 1 0 1 1 0 8 0 amappl10 144 358 0 353 1 0 1 1 0 8 0 amappl9 136 389 0 388 1 0 1 1 0 8 0 amappl8 128 352 0 322 1 0 1 1 0 8 0 amappl7 120 117 0 106 1 0 1 1 0 8 0 amappl6 112 372 0 365 2 1 1 1 0 8 0 amappl5 104 846 0 827 1 0 1 1 0 8 0 amappl4 96 494 0 461 1 0 1 1 0 8 0 amappl3 88 127 0 121 1 0 1 1 0 8 0 amappl2 80 6714 0 6644 2 0 2 2 0 8 0 amappl1 72 36335 0 35870 23 13 10 18 0 8 0 amappl 80 2716 0 2664 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 934 0 910 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 934 0 910 1 0 1 1 0 8 0 vmmpekpl 168 11018 0 10976 4 1 3 3 0 8 0 vmmpepl 168 124738 0 122583 136 35 101 116 0 357 3 vmsppl 368 933 0 910 3 0 3 3 0 8 0 pdppl 4096 1875 0 1828 8 1 7 7 0 8 0 pvpl 32 325782 0 305233 230 51 179 210 0 265 5 pmappl 232 933 0 910 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 278 0 16 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace tun_dev_read(5d01,ffff8000231022b8,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 spec_read(ffff800023102100) at spec_read+0xf1 sys/kern/spec_vnops.c:222 VOP_READ(fffffd806e638348,ffff8000231022b8,10,fffffd807f7bf960) at VOP_READ+0xbf sys/kern/vfs_vops.c:247 vn_read(fffffd8066bf2868,ffff8000231022b8,0) at vn_read+0x124 sys/kern/vfs_vnops.c:375 dofilereadv(ffff800020e09768,f0,ffff8000231022b8,0,ffff8000231023a0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e09768,ffff800023102350,ffff8000231023a0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800023102420) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023102420) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa9bd69fff20, 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x36 kd_curproc sys/dev/kcov.c:411 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x36 sys/dev/kcov.c:79 syscall(ffff8000230e4be0) at syscall+0x400 mi_syscall sys/sys/syscall_mi.h:93 [inline] syscall(ffff8000230e4be0) at syscall+0x400 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc3110, count: -6