uvm_fault(0xffffffff828ace78, 0xfffffd0000000018, 0, 1) -> e kernel: page fault trap, code=0 Stopped at tun_dev_read+0x138: movl 0x18(%rbx),%r12d ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic kernel page fault uvm_fault(0xffffffff828ace78, 0xfffffd0000000018, 0, 1) -> e tun_dev_read(5d00,ffff800023eec248,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 end trace frame: 0xffff800023eec080, count: 0 ddb{1}> trace tun_dev_read(5d00,ffff800023eec248,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 spec_read(ffff800023eec090) at spec_read+0xf1 sys/kern/spec_vnops.c:222 VOP_READ(fffffd806e347008,ffff800023eec248,10,fffffd807f7bf960) at VOP_READ+0xbf sys/kern/vfs_vops.c:247 vn_read(fffffd80679c5448,ffff800023eec248,0) at vn_read+0x124 sys/kern/vfs_vnops.c:375 dofilereadv(ffff800020e29288,f0,ffff800023eec248,0,ffff800023eec330) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e29288,ffff800023eec2e0,ffff800023eec330) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800023eec3b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023eec3b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbe88b88ee70, count: -8 ddb{1}> show registers rdi 0 rsi 0x3da rbp 0xffff800023eebfd0 rbx 0xfffffd0000000000 rdx 0x475 rcx 0xffff800000aeb400 rax 0xffffffff821fc673 tun_dev_read+0x133 r8 0x7f7fffffc000 r9 0x5 r10 0x145090d357596044 r11 0x5ab0d7e83434acc0 r12 0 r13 0x3da r14 0xffff800000ac6670 r15 0xffff800023eec248 rip 0xffffffff821fc678 tun_dev_read+0x138 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff800023eebf70 ss 0x10 tun_dev_read+0x138: movl 0x18(%rbx),%r12d ddb{1}> show proc PROC (syz-executor.0) pid=308986 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020e2a128,0xffffffff828c27a0 process=0xffff800020e6b388 user=0xffff800023ee7000, vmspace=0xfffffd806e8f7738 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 12088 65843 58840 0 7 0 syz-executor.0 *12088 308986 58840 0 7 0x4000000 syz-executor.0 57522 457174 7262 0 3 0x2 biowait syz-executor.1 15509 75246 0 0 3 0x14200 bored sosplice 58840 62592 7262 0 3 0x82 nanosleep syz-executor.0 7262 358401 85989 0 3 0x82 kqread syz-fuzzer 7262 258827 85989 0 3 0x4000082 nanosleep syz-fuzzer 7262 291318 85989 0 3 0x4000082 thrsleep syz-fuzzer 7262 317418 85989 0 3 0x4000082 thrsleep syz-fuzzer 7262 281628 85989 0 3 0x4000082 thrsleep syz-fuzzer 7262 124060 85989 0 3 0x4000082 nanosleep syz-fuzzer 7262 432514 85989 0 3 0x4000082 thrsleep syz-fuzzer 7262 447161 85989 0 3 0x4000082 thrsleep syz-fuzzer 7262 411149 85989 0 3 0x4000082 thrsleep syz-fuzzer 7262 238975 85989 0 3 0x4000082 thrsleep syz-fuzzer 85989 261464 80715 0 3 0x10008a pause ksh 80715 171274 66229 0 3 0x92 select sshd 66770 404410 1 0 3 0x100083 ttyin getty 66229 164096 1 0 3 0x80 select sshd 36857 171916 6859 74 3 0x100092 bpf pflogd 6859 408831 1 0 3 0x80 netio pflogd 90136 383127 25194 73 3 0x100090 kqread syslogd 25194 313937 1 0 3 0x100082 netio syslogd 58864 178194 1 77 3 0x100090 poll dhclient 16419 75434 1 0 3 0x80 poll dhclient 34901 260034 0 0 3 0x14200 bored smr 70012 330353 0 0 3 0x14200 pgzero zerothread 27363 510744 0 0 3 0x14200 aiodoned aiodoned 1639 283298 0 0 3 0x14200 syncer update 58104 4659 0 0 3 0x14200 cleaner cleaner 46697 181363 0 0 3 0x14200 reaper reaper 97408 390686 0 0 3 0x14200 pgdaemon pagedaemon 42192 521395 0 0 3 0x14200 bored crynlk 57560 324777 0 0 3 0x14200 bored crypto 313 96809 0 0 3 0x40014200 acpi0 acpi0 27965 201142 0 0 3 0x40014200 idle1 64285 456779 0 0 3 0x14200 bored softnet 93827 261878 0 0 3 0x14200 bored systqmp 55244 383195 0 0 3 0x14200 bored systq 26078 392870 0 0 3 0x40014200 bored softclock 57049 82497 0 0 3 0x40014200 idle0 1 367077 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 12088 (syz-executor.0) thread 0xffff800020e29288 (308986) exclusive kernel_lock &kernel_lock r = 1 (0xffffffff8291b1c8) #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 57522 (syz-executor.1) thread 0xffff800020e2aae8 (457174) exclusive rrwlock inode r = 0 (0xfffffd806b1f66f8) #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 (0xfffffd806b1f63c8) #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9515 6544K 6677K 78643K 11090 0 pcb 13 8K 8K 78643K 55 0 rtable 101 3K 3K 78643K 324 0 ifaddr 61 12K 13K 78643K 114 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 61 0 ioctlops 0 0K 4K 78643K 1480 0 iov 0 0K 16K 78643K 23 0 mount 1 1K 1K 78643K 1 0 vnodes 1219 77K 77K 78643K 1312 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 7 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 19 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 904 0 sigio 0 0K 0K 78643K 624 0 proc 62 63K 95K 78643K 495 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 6 0 in_multi 39 2K 2K 78643K 67 0 ether_multi 1 0K 0K 78643K 5 0 mrt 0 0K 0K 78643K 2 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 231 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 129 39K 39K 78643K 3309 0 UVM aobj 15 2K 2K 78643K 15 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 22 0 NDP 10 0K 0K 78643K 26 0 temp 98 3863K 3952K 78643K 13557 0 kqueue 3 4K 8K 78643K 5 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 10 0 3 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 23 0 21 1 0 1 1 0 8 0 rtentry 112 67 0 25 2 0 2 2 0 8 0 unpcb 120 121 0 111 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 69 0 69 1 1 0 1 0 8 0 tcpcb 544 588 0 584 1 0 1 1 0 8 0 inpcb 296 718 0 710 1 0 1 1 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 10 0 6 1 0 1 1 0 8 0 pffrag 232 2 0 2 2 2 0 1 0 482 0 pffrnode 88 2 0 2 2 2 0 1 0 8 0 pffrent 40 90 0 90 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 pfstitem 24 33 0 6 1 0 1 1 0 8 0 pfstkey 112 33 0 6 1 0 1 1 0 8 0 pfstate 328 33 0 6 3 0 3 3 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 273 0 92 12 0 12 12 0 8 0 art_table 32 274 0 92 2 0 2 2 0 8 0 art_node 16 66 0 27 1 0 1 1 0 8 0 sysvmsgpl 40 11 0 8 1 0 1 1 0 8 0 semupl 112 6 0 6 1 1 0 1 0 8 0 semapl 112 13 0 3 1 0 1 1 0 8 0 shmpl 112 12 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2350 0 944 89 0 89 89 0 8 0 ffsino 272 2350 0 944 94 0 94 94 0 8 0 nchpl 144 4096 0 2501 60 0 60 60 0 8 0 uvmvnodes 72 2458 0 0 45 0 45 45 0 8 0 vnodes 208 2458 0 0 130 0 130 130 0 8 0 namei 1024 11594 0 11593 1 0 1 1 0 8 0 percpumem 16 41 0 9 1 0 1 1 0 8 0 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 560 1 0 0 1 0 1 1 0 8 0 scxspl 192 10507 0 10506 8 6 2 6 0 8 1 plimitpl 152 32 0 24 1 0 1 1 0 8 0 sigapl 424 1117 0 1085 4 0 4 4 0 8 0 futexpl 56 9416 0 9416 1 0 1 1 0 8 1 knotepl 112 75 0 56 1 0 1 1 0 8 0 kqueuepl 144 18 0 16 1 0 1 1 0 8 0 pipepl 304 120 0 110 3 1 2 2 0 8 1 fdescpl 496 1101 0 1085 3 0 3 3 0 8 0 filepl 152 6058 0 5955 6 1 5 5 0 8 1 lockfpl 104 46 0 44 1 0 1 1 0 8 0 lockfspl 48 19 0 17 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 23 0 12 1 0 1 1 0 8 0 ucredpl 96 189 0 180 1 0 1 1 0 8 0 zombiepl 144 1085 0 1085 1 0 1 1 0 8 1 processpl 992 1117 0 1085 6 1 5 5 0 8 0 procpl 624 2491 0 2449 4 0 4 4 0 8 0 sosppl 128 1 0 1 1 1 0 1 0 8 0 sockpl 400 862 0 842 5 2 3 4 0 8 1 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 170 0 0 21 0 21 21 0 8 0 mtagpl 96 13 0 0 1 0 1 1 0 8 0 mbufpl 256 268 0 0 16 0 16 16 0 8 0 bufpl 280 4445 0 133 308 0 308 308 0 8 0 anonpl 16 89220 0 73833 67 1 66 66 0 124 0 amapchunkpl 152 4877 0 4725 9 1 8 9 0 158 0 amappl16 192 3628 0 2770 44 0 44 44 0 8 1 amappl15 184 596 0 593 1 0 1 1 0 8 0 amappl14 176 24 0 19 1 0 1 1 0 8 0 amappl13 168 217 0 213 1 0 1 1 0 8 0 amappl12 160 3 0 3 1 1 0 1 0 8 0 amappl11 152 60 0 45 1 0 1 1 0 8 0 amappl10 144 703 0 694 1 0 1 1 0 8 0 amappl9 136 389 0 388 1 0 1 1 0 8 0 amappl8 128 375 0 338 2 0 2 2 0 8 0 amappl7 120 551 0 536 1 0 1 1 0 8 0 amappl6 112 25 0 20 1 0 1 1 0 8 0 amappl5 104 915 0 898 1 0 1 1 0 8 0 amappl4 96 682 0 652 1 0 1 1 0 8 0 amappl3 88 110 0 104 1 0 1 1 0 8 0 amappl2 80 7390 0 7317 2 0 2 2 0 8 0 amappl1 72 29052 0 28612 22 11 11 18 0 8 0 amappl 80 2757 0 2709 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 14 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1102 0 1085 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1102 0 1085 1 0 1 1 0 8 0 vmmpekpl 168 10194 0 10156 2 0 2 2 0 8 0 vmmpepl 168 131825 0 129783 140 17 123 123 0 357 32 vmsppl 368 1101 0 1085 2 0 2 2 0 8 0 pdppl 4096 2211 0 2171 6 0 6 6 0 8 0 pvpl 32 285056 0 266508 157 0 157 157 0 265 1 pmappl 232 1101 0 1085 2 0 2 2 0 8 1 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 262 0 5 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff827adff0) 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(ffffffff8291afc0) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8291afc0) at __mp_lock+0x127 sys/kern/kern_lock.c:147 intr_handler(ffff800021ef29a0,ffff80000004a400) at intr_handler+0x5e sys/arch/amd64/amd64/intr.c:532 Xintr_ioapic_edge17_untramp() at Xintr_ioapic_edge17_untramp+0x19f witness_warn(2,0,ffffffff82477d96) at witness_warn+0x346 sys/kern/subr_witness.c:1406 userret(ffff800020e2a128) at userret+0x360 sys/kern/kern_sig.c:1898 syscall(ffff800021ef2c50) at syscall+0x55f mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff800021ef2c50) at syscall+0x55f sys/arch/amd64/amd64/trap.c:592 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd42d0, count: -10 ddb{0}> machine ddbcpu 1 Stopped at tun_dev_read+0x138: movl 0x18(%rbx),%r12d ddb{1}> trace tun_dev_read(5d00,ffff800023eec248,10) at tun_dev_read+0x138 sys/net/if_tun.c:790 spec_read(ffff800023eec090) at spec_read+0xf1 sys/kern/spec_vnops.c:222 VOP_READ(fffffd806e347008,ffff800023eec248,10,fffffd807f7bf960) at VOP_READ+0xbf sys/kern/vfs_vops.c:247 vn_read(fffffd80679c5448,ffff800023eec248,0) at vn_read+0x124 sys/kern/vfs_vnops.c:375 dofilereadv(ffff800020e29288,f0,ffff800023eec248,0,ffff800023eec330) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e29288,ffff800023eec2e0,ffff800023eec330) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800023eec3b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023eec3b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbe88b88ee70, count: -8