uvm_fault(0xffffffff827c1250, 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(0xffffffff827c1250, 0xfffffd0000000018, 0, 1) -> e tun_dev_read(5d00,ffff800023f2dcc8,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 end trace frame: 0xffff800023f2db00, count: 0 ddb{0}> trace tun_dev_read(5d00,ffff800023f2dcc8,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 spec_read(ffff800023f2db10) at spec_read+0xf1 sys/kern/spec_vnops.c:222 VOP_READ(fffffd806edab688,ffff800023f2dcc8,10,fffffd807f7bf5a0) at VOP_READ+0xbf sys/kern/vfs_vops.c:247 vn_read(fffffd8066a72908,ffff800023f2dcc8,0) at vn_read+0x124 sys/kern/vfs_vnops.c:375 dofilereadv(ffff800020e18c48,f0,ffff800023f2dcc8,0,ffff800023f2ddb0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e18c48,ffff800023f2dd60,ffff800023f2ddb0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800023f2de30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023f2de30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x24c1617300, count: -8 ddb{0}> show registers rdi 0 rsi 0x3da rbp 0xffff800023f2da50 rbx 0xfffffd0000000000 rdx 0x153 rcx 0xffff800000ae8280 rax 0xffffffff8235d1f3 tun_dev_read+0x133 r8 0x7f7fffffc000 r9 0x5 r10 0xdb2d181ab3881f92 r11 0x4ab398532558500c r12 0 r13 0x3da r14 0xffff800000ac3660 r15 0xffff800023f2dcc8 rip 0xffffffff8235d1f8 tun_dev_read+0x138 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff800023f2d9f0 ss 0x10 tun_dev_read+0x138: movl 0x18(%rbx),%r12d ddb{0}> show proc PROC (syz-executor.0) pid=184801 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020e19ae8,0xffffffff828f7fc0 process=0xffff80002310cf98 user=0xffff800023f28000, vmspace=0xfffffd806e8f1458 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 13203 442259 99656 0 2 0 syz-executor.0 *13203 184801 99656 0 7 0x4000000 syz-executor.0 51960 276598 59636 0 2 0x480 syz-executor.1 51960 160324 59636 0 3 0x4000080 fsleep syz-executor.1 51960 257985 59636 0 3 0x4000080 fsleep syz-executor.1 80080 495033 0 0 3 0x14280 nfsidl nfsio 55936 55269 0 0 3 0x14280 nfsidl nfsio 11604 276232 0 0 3 0x14280 nfsidl nfsio 76435 349482 0 0 3 0x14280 nfsidl nfsio 74451 142413 0 0 3 0x14280 nfsidl nfsio 8319 140479 0 0 3 0x14280 nfsidl nfsio 4872 235649 0 0 3 0x14280 nfsidl nfsio 901 362053 0 0 3 0x14280 nfsidl nfsio 1294 372001 0 0 3 0x14280 nfsidl nfsio 32199 308140 0 0 3 0x14280 nfsidl nfsio 43231 121231 0 0 3 0x14280 nfsidl nfsio 28286 335713 0 0 3 0x14280 nfsidl nfsio 72524 57692 0 0 3 0x14280 nfsidl nfsio 94290 393067 0 0 3 0x14280 nfsidl nfsio 4763 300033 0 0 3 0x14280 nfsidl nfsio 54637 286402 0 0 3 0x14280 nfsidl nfsio 92829 381459 0 0 3 0x14280 nfsidl nfsio 75189 405859 0 0 3 0x14280 nfsidl nfsio 5054 450987 0 0 3 0x14280 nfsidl nfsio 30443 495469 0 0 3 0x14280 nfsidl nfsio 8897 315677 0 0 3 0x14200 bored sosplice 59636 140108 16308 0 7 0x482 syz-executor.1 99656 307483 16308 0 3 0x82 nanosleep syz-executor.0 16308 146909 98232 0 3 0x82 thrsleep syz-fuzzer 16308 153749 98232 0 3 0x4000082 nanosleep syz-fuzzer 16308 322135 98232 0 3 0x4000082 thrsleep syz-fuzzer 16308 371389 98232 0 3 0x4000082 thrsleep syz-fuzzer 16308 242194 98232 0 3 0x4000082 thrsleep syz-fuzzer 16308 254052 98232 0 3 0x4000082 thrsleep syz-fuzzer 16308 65498 98232 0 3 0x4000082 thrsleep syz-fuzzer 16308 375173 98232 0 3 0x4000082 thrsleep syz-fuzzer 16308 501310 98232 0 3 0x4000082 thrsleep syz-fuzzer 16308 194514 98232 0 3 0x4000082 kqread syz-fuzzer 98232 386955 78062 0 3 0x10008a pause ksh 78062 125112 44396 0 3 0x92 select sshd 65663 88233 1 0 3 0x100083 ttyin getty 44396 231043 1 0 3 0x80 select sshd 69639 83824 11987 74 2 0x100492 pflogd 11987 444576 1 0 3 0x80 netio pflogd 43747 235934 53113 73 3 0x100090 kqread syslogd 53113 205815 1 0 3 0x100082 netio syslogd 39840 214516 1 77 3 0x100090 poll dhclient 41050 270468 1 0 3 0x80 poll dhclient 77763 410766 0 0 3 0x14200 bored smr 39332 460263 0 0 3 0x14200 pgzero zerothread 25526 184027 0 0 3 0x14200 aiodoned aiodoned 12650 45679 0 0 3 0x14200 syncer update 33585 311148 0 0 3 0x14200 cleaner cleaner 46796 211633 0 0 3 0x14200 reaper reaper 81191 303823 0 0 3 0x14200 pgdaemon pagedaemon 62193 139189 0 0 3 0x14200 bored crynlk 39180 358914 0 0 3 0x14200 bored crypto 22719 484619 0 0 3 0x40014200 acpi0 acpi0 80429 307752 0 0 3 0x40014200 idle1 80904 479261 0 0 3 0x14200 bored softnet 35480 521667 0 0 3 0x14200 bored systqmp 44367 40311 0 0 3 0x14200 bored systq 47574 404321 0 0 2 0x40014200 softclock 82542 123381 0 0 3 0x40014200 idle0 1 257694 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 13203 (syz-executor.0) thread 0xffff800020e18c48 (184801) exclusive kernel_lock &kernel_lock r = 1 (0xffffffff828b3f90) #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 9531 6429K 7059K 78643K 11706 0 pcb 13 8K 8K 78643K 117 0 rtable 100 5K 7K 78643K 395 0 ifaddr 88 17K 17K 78643K 167 0 counters 43 33K 34K 78643K 63 0 ioctlops 0 0K 4K 78643K 1536 0 iov 0 0K 16K 78643K 74 0 mount 1 1K 1K 78643K 1 0 vnodes 1215 76K 77K 78643K 1524 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 8 1K 1K 78643K 12 0 dirhash 9 1K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 614 0 sigio 0 0K 0K 78643K 131 0 proc 61 63K 95K 78643K 499 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 58 0 in_multi 69 3K 3K 78643K 137 0 ether_multi 1 0K 0K 78643K 15 0 mrt 0 0K 0K 78643K 7 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 253 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 131 39K 41K 78643K 3006 0 UVM aobj 40 2K 2K 78643K 44 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 73 0 NDP 14 0K 0K 78643K 30 0 temp 131 3854K 3918K 78643K 6758 0 kqueue 3 4K 18K 78643K 41 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 5 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 51 0 49 1 0 1 1 0 8 0 rtentry 112 68 0 33 2 0 2 2 0 8 0 unpcb 120 428 0 418 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 764 0 764 1 1 0 1 0 8 0 tcpcb 544 196 0 192 1 0 1 1 0 8 0 inpcb 280 1136 0 1127 4 2 2 2 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 8 0 6 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 ppxss 1128 3 0 3 3 3 0 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 8 0 8 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 13 0 11 2 1 1 1 0 8 0 pfstitem 24 25 0 12 1 0 1 1 0 8 0 pfstkey 112 25 0 12 1 0 1 1 0 8 0 pfstate 328 25 0 12 2 0 2 2 0 8 0 pfrule 1360 32 0 18 3 1 2 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 288 0 102 14 1 13 13 0 8 0 art_table 32 290 0 102 2 0 2 2 0 8 0 art_node 16 67 0 35 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 11 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 6 0 0 1 0 1 1 0 8 0 shmpl 112 42 0 4 2 0 2 2 0 8 0 dirhash 1024 17 0 10 3 1 2 3 0 8 0 dino2pl 256 2224 0 826 89 0 89 89 0 8 0 ffsino 272 2224 0 826 96 1 95 95 0 8 0 nchpl 144 3229 0 1620 60 0 60 60 0 8 0 uvmvnodes 72 2494 0 0 46 0 46 46 0 8 0 vnodes 208 2494 0 0 132 0 132 132 0 8 0 namei 1024 9129 0 9129 5 4 1 1 0 8 1 percpumem 16 42 0 10 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 560 7 0 5 1 0 1 1 0 8 0 pfiaddrpl 120 5 0 3 2 1 1 1 0 8 0 scsiplug 64 6 0 6 3 2 1 1 0 8 1 scxspl 192 9809 0 9809 9 8 1 5 0 8 1 plimitpl 152 66 0 58 1 0 1 1 0 8 0 sigapl 424 850 0 797 6 0 6 6 0 8 0 futexpl 56 8854 0 8852 4 3 1 1 0 8 0 knotepl 112 141 0 122 2 1 1 2 0 8 0 kqueuepl 144 84 0 82 1 0 1 1 0 8 0 pipelkpl 48 421 0 411 1 0 1 1 0 8 0 pipepl 120 842 0 823 1 0 1 1 0 8 0 fdescpl 496 814 0 797 3 0 3 3 0 8 0 filepl 152 5589 0 5487 7 2 5 5 0 8 0 lockfpl 104 108 0 107 1 0 1 1 0 8 0 lockfspl 48 40 0 39 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 668 0 659 1 0 1 1 0 8 0 zombiepl 144 797 0 797 3 2 1 1 0 8 1 processpl 984 850 0 797 8 1 7 7 0 8 0 procpl 624 2240 0 2175 6 0 6 6 0 8 1 sosppl 128 12 0 12 4 3 1 1 0 8 1 sockpl 400 1648 0 1627 10 6 4 4 0 8 1 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 12 0 0 2 0 2 2 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 161 0 0 20 0 20 20 0 8 0 mtagpl 80 81 0 0 2 0 2 2 0 8 0 mbufpl 256 420 0 0 25 0 25 25 0 8 0 bufpl 280 4523 0 135 314 0 314 314 0 8 0 anonpl 16 83953 0 68082 83 5 78 81 0 124 12 amapchunkpl 152 4763 0 4613 15 1 14 14 0 158 6 amappl16 192 3427 0 2565 58 10 48 56 0 8 4 amappl15 184 291 0 288 1 0 1 1 0 8 0 amappl14 176 315 0 309 1 0 1 1 0 8 0 amappl13 168 30 0 27 1 0 1 1 0 8 0 amappl12 160 11 0 9 1 0 1 1 0 8 0 amappl11 152 341 0 324 1 0 1 1 0 8 0 amappl10 144 21 0 16 1 0 1 1 0 8 0 amappl9 136 400 0 397 1 0 1 1 0 8 0 amappl8 128 355 0 318 2 0 2 2 0 8 0 amappl7 120 119 0 107 1 0 1 1 0 8 0 amappl6 112 32 0 23 1 0 1 1 0 8 0 amappl5 104 711 0 693 1 0 1 1 0 8 0 amappl4 96 489 0 460 1 0 1 1 0 8 0 amappl3 88 414 0 408 1 0 1 1 0 8 0 amappl2 80 5858 0 5779 2 0 2 2 0 8 0 amappl1 72 27667 0 27203 23 13 10 18 0 8 0 amappl 80 2469 0 2421 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 43 0 4 1 0 1 1 0 8 0 uaddrrnd 24 821 0 802 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 821 0 802 1 0 1 1 0 8 0 vmmpekpl 168 11422 0 11383 2 0 2 2 0 8 0 vmmpepl 168 105055 0 102919 137 36 101 113 0 357 8 vmsppl 368 820 0 802 2 0 2 2 0 8 0 pdppl 4096 1649 0 1606 7 1 6 6 0 8 0 pvpl 32 264875 0 245665 207 18 189 192 0 265 33 pmappl 232 820 0 802 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 292 0 17 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace tun_dev_read(5d00,ffff800023f2dcc8,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 spec_read(ffff800023f2db10) at spec_read+0xf1 sys/kern/spec_vnops.c:222 VOP_READ(fffffd806edab688,ffff800023f2dcc8,10,fffffd807f7bf5a0) at VOP_READ+0xbf sys/kern/vfs_vops.c:247 vn_read(fffffd8066a72908,ffff800023f2dcc8,0) at vn_read+0x124 sys/kern/vfs_vnops.c:375 dofilereadv(ffff800020e18c48,f0,ffff800023f2dcc8,0,ffff800023f2ddb0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e18c48,ffff800023f2dd60,ffff800023f2ddb0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800023f2de30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023f2de30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x24c1617300, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020d80ff0) 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(ffffffff828b3d88) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828b3d88) at __mp_lock+0x127 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff828b3d88,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(ffff800023112f20,1) at sleep_finish+0x113 sys/kern/kern_synch.c:418 sleep_finish_all(ffff800023112f20,1) at sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:447 [inline] sleep_finish_all(ffff800023112f20,1) at sleep_finish_all+0x32 sys/kern/kern_synch.c:393 tsleep(ffffffff827b9ff0,120,ffffffff823d63cf,2) at tsleep+0x1cc sys/kern/kern_synch.c:155 sys_nanosleep(ffff800020e19398,ffff800023113050,ffff8000231130a0) at sys_nanosleep+0x205 sys/kern/kern_time.c:297 syscall(ffff800023113120) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023113120) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd9f60, count: -12