uvm_fault(0xffffffff82887150, 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(0xffffffff82887150, 0xfffffd0000000018, 0, 1) -> e tun_dev_read(5d01,ffff800022b27568,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 end trace frame: 0xffff800022b273a0, count: 0 ddb{0}> trace tun_dev_read(5d01,ffff800022b27568,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 spec_read(ffff800022b273b0) at spec_read+0xf1 sys/kern/spec_vnops.c:222 VOP_READ(fffffd806e349348,ffff800022b27568,10,fffffd807f7bfba0) at VOP_READ+0xbf sys/kern/vfs_vops.c:247 vn_read(fffffd8068002dc8,ffff800022b27568,0) at vn_read+0x124 sys/kern/vfs_vnops.c:375 dofilereadv(ffff800020e09eb8,f0,ffff800022b27568,0,ffff800022b27650) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e09eb8,ffff800022b27600,ffff800022b27650) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800022b276d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800022b276d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x81cc290c0d0, count: -8 ddb{0}> show registers rdi 0 rsi 0x3da rbp 0xffff800022b272f0 rbx 0xfffffd0000000000 rdx 0x153 rcx 0xffff800000aea100 rax 0xffffffff81c066c3 tun_dev_read+0x133 r8 0x7f7fffffc000 r9 0x5 r10 0xba0243d7c499f69a r11 0xd0ac333e81267a87 r12 0 r13 0x3da r14 0xffff800000af5670 r15 0xffff800022b27568 rip 0xffffffff81c066c8 tun_dev_read+0x138 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff800022b27290 ss 0x10 tun_dev_read+0x138: movl 0x18(%rbx),%r12d ddb{0}> show proc PROC (syz-executor.1) pid=501473 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020e0aae8,0xffffffff828ed3c0 process=0xffff800020ecc028 user=0xffff800022b22000, vmspace=0xfffffd806e90ab88 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 12254 439033 97679 0 2 0 syz-executor.1 *12254 501473 97679 0 7 0x4000000 syz-executor.1 64566 493895 0 0 3 0x14200 acct acct 22653 52553 15094 0 2 0x2 syz-executor.0 52949 374060 0 0 3 0x14200 bored sosplice 97679 220352 15094 0 2 0x482 syz-executor.1 15094 475571 34171 0 7 0x482 syz-fuzzer 15094 517596 34171 0 2 0x4000482 syz-fuzzer 15094 363824 34171 0 3 0x4000082 thrsleep syz-fuzzer 15094 357229 34171 0 3 0x4000082 thrsleep syz-fuzzer 15094 498955 34171 0 3 0x4000082 thrsleep syz-fuzzer 15094 33630 34171 0 3 0x4000082 kqread syz-fuzzer 15094 444985 34171 0 3 0x4000082 thrsleep syz-fuzzer 15094 382319 34171 0 3 0x4000082 thrsleep syz-fuzzer 15094 67710 34171 0 3 0x4000082 thrsleep syz-fuzzer 15094 412788 34171 0 3 0x4000082 thrsleep syz-fuzzer 34171 361327 91469 0 3 0x10008a pause ksh 91469 396838 2861 0 3 0x92 select sshd 2180 376552 1 0 3 0x100083 ttyin getty 2861 152612 1 0 3 0x80 select sshd 70609 403581 58749 74 3 0x100092 bpf pflogd 58749 113159 1 0 3 0x80 netio pflogd 75281 300248 51643 73 3 0x100090 kqread syslogd 51643 279378 1 0 3 0x100082 netio syslogd 67201 58711 1 77 3 0x100090 poll dhclient 82036 520866 1 0 3 0x80 poll dhclient 73246 434255 0 0 3 0x14200 bored smr 2055 142040 0 0 3 0x14200 pgzero zerothread 65946 69644 0 0 3 0x14200 aiodoned aiodoned 53168 139973 0 0 3 0x14200 syncer update 67648 281525 0 0 3 0x14200 cleaner cleaner 90222 489751 0 0 3 0x14200 reaper reaper 64680 324239 0 0 3 0x14200 pgdaemon pagedaemon 30820 217392 0 0 3 0x14200 bored crynlk 50705 48387 0 0 3 0x14200 bored crypto 88233 437644 0 0 3 0x40014200 acpi0 acpi0 78957 335898 0 0 3 0x40014200 idle1 46462 395904 0 0 3 0x14200 bored softnet 10205 442393 0 0 3 0x14200 bored systqmp 28713 43224 0 0 3 0x14200 bored systq 643 348132 0 0 2 0x40014200 softclock 98381 409854 0 0 3 0x40014200 idle0 1 210423 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 12254 (syz-executor.1) thread 0xffff800020e09eb8 (501473) exclusive kernel_lock &kernel_lock r = 1 (0xffffffff828eb410) #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 Process 22653 (syz-executor.0) thread 0xffff800020e0a878 (52553) exclusive rrwlock inode r = 0 (0xfffffd80782c8f78) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:311 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:462 #3 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x13e sys/ufs/ffs/ffs_vfsops.c:1358 #5 ffs_inode_alloc+0x1e2 sys/ufs/ffs/ffs_alloc.c:394 #6 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1162 #7 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #8 domkdirat+0x121 sys/kern/vfs_syscalls.c:3051 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #10 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd80683f3810) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:311 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:462 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:603 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:575 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:3036 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9532 6428K 6865K 78643K 11592 0 pcb 13 8K 8K 78643K 102 0 rtable 137 10K 13K 78643K 510 0 ifaddr 100 20K 20K 78643K 219 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 73 0 ioctlops 0 0K 4K 78643K 1711 0 iov 0 0K 16K 78643K 74 0 mount 1 1K 1K 78643K 1 0 vnodes 1222 77K 77K 78643K 1539 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 12 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 156 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 843 0 sigio 0 0K 0K 78643K 4 0 proc 63 63K 95K 78643K 555 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 345 0 in_multi 96 4K 4K 78643K 186 0 ether_multi 1 0K 0K 78643K 16 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 271 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 127 55K 59K 78643K 3562 0 UVM aobj 33 2K 2K 78643K 39 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 89 0 NDP 13 0K 0K 78643K 43 0 temp 138 3877K 4125K 78643K 15071 0 kqueue 3 4K 8K 78643K 18 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 9 0 3 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 52 0 50 1 0 1 1 0 8 0 rtentry 112 84 0 38 2 0 2 2 0 8 0 unpcb 120 282 0 272 1 0 1 1 0 8 0 syncache 264 7 0 7 3 3 0 1 0 8 0 tcpqe 32 113 0 113 2 2 0 1 0 8 0 tcpcb 544 784 0 779 3 2 1 2 0 8 0 ipq 40 2 0 2 1 1 0 1 0 8 0 ipqe 40 4 0 4 1 1 0 1 0 8 0 inpcb 296 1308 0 1300 3 1 2 2 0 8 1 rttmr 72 3 0 3 2 2 0 1 0 8 0 nd6 48 24 0 17 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1136 3 0 3 3 3 0 1 0 8 0 pffrag 232 2 0 2 1 1 0 1 0 482 0 pffrnode 88 2 0 2 1 1 0 1 0 8 0 pffrent 40 90 0 90 1 1 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 44 0 32 2 1 1 2 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 264 2 0 2 1 1 0 1 0 8 0 pfstitem 24 21 0 6 1 0 1 1 0 8 0 pfstkey 112 21 0 6 1 0 1 1 0 8 0 pfstate 328 21 0 6 2 0 2 2 0 8 0 pfsrctr 152 15 0 15 1 1 0 1 0 8 0 pfrule 1360 43 0 24 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 305 0 110 14 0 14 14 0 8 0 art_table 32 306 0 110 2 0 2 2 0 8 0 art_node 16 83 0 42 1 0 1 1 0 8 0 sysvmsgpl 40 41 0 24 1 0 1 1 0 8 0 semapl 112 153 0 143 1 0 1 1 0 8 0 shmpl 112 36 0 6 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2428 0 1024 89 0 89 89 0 8 0 ffsino 272 2428 0 1024 97 2 95 95 0 8 0 nchpl 144 4008 0 2415 60 0 60 60 0 8 0 uvmvnodes 72 2718 0 0 50 0 50 50 0 8 0 vnodes 208 2718 0 0 144 0 144 144 0 8 0 namei 1024 10686 0 10685 3 2 1 1 0 8 0 percpumem 16 47 0 15 1 0 1 1 0 8 0 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 560 4 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 19 0 7 1 0 1 1 0 8 0 scxspl 192 11050 0 11050 11 10 1 7 0 8 1 plimitpl 152 50 0 42 1 0 1 1 0 8 0 sigapl 424 1057 0 1024 4 0 4 4 0 8 0 futexpl 56 11787 0 11787 2 1 1 1 0 8 1 knotepl 112 93 0 74 1 0 1 1 0 8 0 kqueuepl 144 65 0 60 1 0 1 1 0 8 0 pipepl 304 181 0 171 3 2 1 2 0 8 0 fdescpl 496 1040 0 1024 3 0 3 3 0 8 0 filepl 152 5861 0 5757 6 1 5 5 0 8 0 lockfpl 104 114 0 113 1 0 1 1 0 8 0 lockfspl 48 43 0 42 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 31 0 20 1 0 1 1 0 8 0 ucredpl 96 447 0 438 1 0 1 1 0 8 0 zombiepl 144 1024 0 1024 2 1 1 1 0 8 1 processpl 992 1057 0 1024 6 1 5 5 0 8 0 procpl 624 2722 0 2679 4 0 4 4 0 8 0 sosppl 128 4 0 4 3 3 0 1 0 8 0 sockpl 400 1646 0 1626 7 3 4 4 0 8 1 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 8 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 14 0 0 2 0 2 2 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 198 0 0 24 0 24 24 0 8 0 mtagpl 96 37 0 0 1 0 1 1 0 8 0 mbufpl 256 289 0 0 17 0 17 17 0 8 0 bufpl 280 4703 0 134 327 0 327 327 0 8 0 anonpl 16 107634 0 90353 85 14 71 77 0 124 0 amapchunkpl 152 5666 0 5516 15 8 7 11 0 158 0 amappl16 192 3638 0 2692 49 1 48 49 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 752 0 746 1 0 1 1 0 8 0 amappl13 168 36 0 33 1 0 1 1 0 8 0 amappl12 160 65 0 65 1 1 0 1 0 8 0 amappl11 152 764 0 746 1 0 1 1 0 8 0 amappl10 144 19 0 14 1 0 1 1 0 8 0 amappl9 136 389 0 388 1 0 1 1 0 8 0 amappl8 128 373 0 346 1 0 1 1 0 8 0 amappl7 120 124 0 111 1 0 1 1 0 8 0 amappl6 112 24 0 20 1 0 1 1 0 8 0 amappl5 104 259 0 243 1 0 1 1 0 8 0 amappl4 96 1203 0 1170 1 0 1 1 0 8 0 amappl3 88 869 0 860 1 0 1 1 0 8 0 amappl2 80 7026 0 6953 2 0 2 2 0 8 0 amappl1 72 38904 0 38462 23 13 10 18 0 8 0 amappl 80 2997 0 2948 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 38 0 6 1 0 1 1 0 8 0 uaddrrnd 24 1044 0 1024 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1044 0 1024 1 0 1 1 0 8 0 vmmpekpl 168 11900 0 11865 2 0 2 2 0 8 0 vmmpepl 168 138221 0 136099 133 33 100 127 0 357 1 vmsppl 368 1043 0 1024 2 0 2 2 0 8 0 pdppl 4096 2095 0 2052 7 1 6 6 0 8 0 pvpl 32 337195 0 316701 199 27 172 185 0 265 4 pmappl 232 1043 0 1024 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 281 0 13 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace tun_dev_read(5d01,ffff800022b27568,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 spec_read(ffff800022b273b0) at spec_read+0xf1 sys/kern/spec_vnops.c:222 VOP_READ(fffffd806e349348,ffff800022b27568,10,fffffd807f7bfba0) at VOP_READ+0xbf sys/kern/vfs_vops.c:247 vn_read(fffffd8068002dc8,ffff800022b27568,0) at vn_read+0x124 sys/kern/vfs_vnops.c:375 dofilereadv(ffff800020e09eb8,f0,ffff800022b27568,0,ffff800022b27650) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e09eb8,ffff800022b27600,ffff800022b27650) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800022b276d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800022b276d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x81cc290c0d0, 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(ffffffff828eb208) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828eb208) at __mp_lock+0x127 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff828eb208,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(ffff800020e62a60,1) at sleep_finish+0x113 sys/kern/kern_synch.c:418 sleep_finish_all(ffff800020e62a60,1) at sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:447 [inline] sleep_finish_all(ffff800020e62a60,1) at sleep_finish_all+0x32 sys/kern/kern_synch.c:393 tsleep(ffffffff827d308c,120,ffffffff823f0d70,2) at tsleep+0x1cc sys/kern/kern_synch.c:155 sys_nanosleep(ffff800020e40d50,ffff800020e62b90,ffff800020e62be0) at sys_nanosleep+0x205 sys/kern/kern_time.c:297 syscall(ffff800020e62c60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e62c60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff3c38, count: -12