panic: vndioctl: null vp Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *420270 75849 0 0 0x4000000 0K syz-executor.1 504316 80856 0 0x14000 0x200 1 reaper db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff824a8210) at panic+0x177 sys/kern/subr_prf.c:202 vndsetcred(2902,80384601,ffff80002449aad0,1) at vndsetcred VOP_IOCTL(fffffd8076b18d88,80384601,ffff80002449aad0,1,fffffd807f7d8660,ffff8000fffeb500) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd8065449740,80384601,ffff80002449aad0,ffff8000fffeb500) at vn_ioctl+0xba sys/kern/vfs_vnops.c:531 sys_ioctl(ffff8000fffeb500,ffff80002449abe8,ffff80002449ac40) at sys_ioctl+0x4a2 syscall(ffff80002449acb0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002449acb0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3ab3c117eb0, count: 7 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: vndioctl: null vp ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff824a8210) at panic+0x177 sys/kern/subr_prf.c:202 vndsetcred(2902,80384601,ffff80002449aad0,1) at vndsetcred VOP_IOCTL(fffffd8076b18d88,80384601,ffff80002449aad0,1,fffffd807f7d8660,ffff8000fffeb500) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd8065449740,80384601,ffff80002449aad0,ffff8000fffeb500) at vn_ioctl+0xba sys/kern/vfs_vnops.c:531 sys_ioctl(ffff8000fffeb500,ffff80002449abe8,ffff80002449ac40) at sys_ioctl+0x4a2 syscall(ffff80002449acb0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002449acb0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3ab3c117eb0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002449a210 rbx 0xffffffff82820bff cpu_info_full_primary+0x2bff rdx 0x8b rcx 0x2 rax 0x19 r8 0xffffffff81278544 kprintf+0x144 r9 0x1 r10 0x1c0ebf07754925b1 r11 0x66e0d7411f4d149a r12 0xffffffff82820a00 cpu_info_full_primary+0x2a00 r13 0 r14 0 r15 0x1 rip 0xffffffff81c619e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002449a200 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=420270 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000fffea540,0xffff80002122f270 process=0xffff8000ffffba38 user=0xffff800024495000, vmspace=0xfffffd807ea63018 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 75849 91843 50834 0 2 0 syz-executor.1 75849 410757 50834 0 2 0x4000000 syz-executor.1 *75849 420270 50834 0 7 0x4000000 syz-executor.1 75849 411182 50834 0 3 0x4000080 fsleep syz-executor.1 86651 135730 59610 0 2 0x482 syz-executor.0 50834 294221 59610 0 3 0x82 nanoslp syz-executor.1 90921 468230 0 0 3 0x14200 acct acct 74305 38406 0 0 3 0x14280 nfsidl nfsio 65738 86836 0 0 3 0x14280 nfsidl nfsio 54155 355132 0 0 3 0x14280 nfsidl nfsio 21000 440899 0 0 3 0x14280 nfsidl nfsio 11638 450127 0 0 3 0x14280 nfsidl nfsio 84191 111665 0 0 3 0x14280 nfsidl nfsio 1840 314791 0 0 3 0x14280 nfsidl nfsio 26258 289066 0 0 3 0x14280 nfsidl nfsio 70028 88294 0 0 3 0x14280 nfsidl nfsio 31115 400760 0 0 3 0x14280 nfsidl nfsio 92968 24230 0 0 3 0x14280 nfsidl nfsio 3327 297806 0 0 3 0x14280 nfsidl nfsio 59730 488318 0 0 3 0x14280 nfsidl nfsio 11561 231223 0 0 3 0x14280 nfsidl nfsio 36504 505672 0 0 3 0x14280 nfsidl nfsio 99636 256735 0 0 3 0x14280 nfsidl nfsio 58531 346819 1 0 3 0x100083 ttyopn getty 34172 41180 0 0 3 0x14280 nfsidl nfsio 93282 24907 0 0 3 0x14280 nfsidl nfsio 48062 435373 0 0 3 0x14280 nfsidl nfsio 13744 471491 0 0 3 0x14280 nfsidl nfsio 13122 99711 0 0 3 0x14200 bored sosplice 59610 127105 53088 0 3 0x82 thrsleep syz-fuzzer 59610 376368 53088 0 3 0x4000082 nanoslp syz-fuzzer 59610 408015 53088 0 3 0x4000082 kqread syz-fuzzer 59610 411812 53088 0 3 0x4000082 thrsleep syz-fuzzer 59610 172674 53088 0 3 0x4000082 thrsleep syz-fuzzer 59610 347845 53088 0 3 0x4000082 thrsleep syz-fuzzer 59610 489826 53088 0 3 0x4000082 thrsleep syz-fuzzer 59610 226890 53088 0 3 0x4000082 thrsleep syz-fuzzer 53088 371880 23060 0 3 0x10008a sigsusp ksh 23060 56288 50409 0 3 0x9a kqread sshd 50409 23815 1 0 3 0x88 kqread sshd 96937 8690 11341 74 3 0x100092 bpf pflogd 11341 342410 1 0 3 0x80 netio pflogd 6078 77973 45389 73 3 0x100090 kqread syslogd 45389 136759 1 0 3 0x100082 netio syslogd 68267 122864 1 0 3 0x100080 kqread resolvd 26551 517750 85769 77 3 0x100092 kqread dhcpleased 8823 329129 85769 77 3 0x100092 kqread dhcpleased 85769 493991 1 0 3 0x80 kqread dhcpleased 18695 128809 0 0 3 0x14200 bored smr 54535 439199 0 0 2 0x14200 zerothread 25497 295155 0 0 3 0x14200 aiodoned aiodoned 75093 376947 0 0 3 0x14200 syncer update 93211 207580 0 0 3 0x14200 cleaner cleaner 80856 504316 0 0 7 0x14200 reaper 84710 249035 0 0 3 0x14200 pgdaemon pagedaemon 17162 221969 0 0 3 0x14200 bored viomb 11132 438627 0 0 3 0x40014200 acpi0 acpi0 88051 359883 0 0 3 0x40014200 idle1 89034 476956 0 0 3 0x14200 bored softnet 57248 268226 0 0 3 0x14200 bored systqmp 84505 169826 0 0 3 0x14200 bored systq 37310 431641 0 0 2 0x40014200 softclock 29456 441669 0 0 3 0x40014200 idle0 1 450963 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 75849 (syz-executor.1) thread 0xffff8000fffeb500 (420270) exclusive rwlock dklk r = 0 (0xffff8000006b6068) #0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4b0 sys/kern/subr_witness.c:1182 #1 rw_enter+0x3e2 sys/kern/kern_rwlock.c:310 #2 vndioctl+0x4f1 sys/dev/vnd.c:538 #3 VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 #4 vn_ioctl+0xba sys/kern/vfs_vnops.c:531 #5 sys_ioctl+0x4a2 #6 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #6 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #7 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828f11a8) #0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4b0 sys/kern/subr_witness.c:1182 #1 __mp_acquire_count+0x4c sys/kern/kern_lock.c:227 #2 mi_switch+0x3d3 sys/kern/sched_bsd.c:416 #3 sleep_finish+0x1b2 sys/kern/kern_synch.c:433 #4 rw_enter+0x35b sys/kern/kern_rwlock.c:286 #5 vndioctl+0x4f1 sys/dev/vnd.c:538 #6 VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 #7 vn_ioctl+0xba sys/kern/vfs_vnops.c:531 #8 sys_ioctl+0x4a2 #9 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #9 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #10 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10155 6488K 7179K 78643K 17108 0 pcb 13 14K 16K 78643K 2051 0 rtable 133 18K 21K 78643K 2801 0 ifaddr 62 18K 18K 78643K 1433 0 sysctl 2 0K 2K 78643K 6 0 counters 44 34K 34K 78643K 522 0 ioctlops 0 0K 6K 78643K 13011 0 iov 0 0K 28K 78643K 767 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1394 88K 88K 78643K 4773 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 326 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 2752 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 5 13K 25K 78643K 11191 0 sigio 0 0K 0K 78643K 164 0 proc 71 87K 112K 78643K 2125 0 subproc 26 1K 1K 78643K 703 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 727 0 in_multi 33 2K 2K 78643K 1089 0 ether_multi 1 0K 0K 78643K 193 0 mrt 1 0K 0K 78643K 86 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 169 758K 758K 78643K 169 0 exec 0 0K 2K 78643K 2697 0 pfkey data 0 0K 1K 78643K 6 0 tdb 3 0K 0K 78643K 3 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 443 847K 847K 78643K 144677 0 UVM aobj 131 8K 8K 78643K 134 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 789 0 NDP 7 0K 0K 78643K 362 0 temp 92 4210K 8296K 78643K 94274 0 kqueue 12 18K 28K 78643K 499 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 plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 1084 0 1081 16 15 1 5 0 8 0 rtentry 112 713 0 674 2 0 2 2 0 8 0 unpcb 128 6190 0 6175 62 61 1 5 0 8 0 syncache 296 33 0 33 10 9 1 1 0 8 1 tcpqe 32 128 0 128 8 7 1 1 0 8 1 tcpcb 736 4509 0 4496 138 129 9 18 0 8 4 arp 120 113 0 107 1 0 1 1 0 8 0 inpcb 304 10632 0 10619 139 128 11 11 0 8 8 rttmr 72 25 0 25 7 6 1 1 0 8 1 nd6 48 178 0 171 1 0 1 1 0 8 0 pkpcb 40 89 0 89 8 7 1 1 0 8 1 kcovpl 48 49 0 47 1 0 1 1 0 8 0 ppxss 1248 115 0 115 6 6 0 1 0 8 0 pfstscr 40 37 0 37 9 9 0 1 0 8 0 pffrag 232 53 0 50 4 3 1 1 0 482 0 pffrnode 88 53 0 50 4 3 1 1 0 8 0 pffrent 40 635 0 632 4 3 1 1 0 8 0 pfosfp 40 1435 0 1010 5 0 5 5 0 8 0 pfosfpen 112 1435 0 719 21 0 21 21 0 8 0 pfrktable 1344 218 0 207 8 7 1 2 0 8 0 pftag 88 16 0 12 1 0 1 1 0 8 0 pfqueue 264 10 0 10 3 3 0 1 0 8 0 pfstitem 24 25 0 23 1 0 1 1 0 8 0 pfstkey 112 88 0 86 1 0 1 1 0 8 0 pfstate 320 56 0 54 2 1 1 2 0 8 0 pfrule 1360 824 0 766 8 3 5 5 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 3037 0 2854 31 18 13 14 0 8 0 art_table 32 3038 0 2854 2 0 2 2 0 8 0 art_node 16 712 0 681 1 0 1 1 0 8 0 sysvmsgpl 40 19 0 16 1 0 1 1 0 8 0 semapl 112 2750 0 2740 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 15149 0 13704 91 0 91 91 0 8 0 ffsino 272 15149 0 13704 97 0 97 97 0 8 0 nchpl 144 29127 0 27523 61 1 60 61 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 224 5926 0 0 349 0 349 349 0 8 0 namei 1024 111220 0 111220 7 6 1 1 0 8 1 percpumem 16 273 0 239 1 0 1 1 0 8 0 vcpupl 2048 61 0 0 8 0 8 8 0 8 0 vmpool 560 70 0 9 5 0 5 5 0 8 0 pfiaddrpl 120 63 0 48 5 4 1 1 0 8 0 scsiplug 72 3 0 3 1 1 0 1 0 8 0 scxspl 216 87296 0 87296 54 53 1 8 0 8 1 plimitpl 152 1110 0 1101 1 0 1 1 0 8 0 sigapl 424 11348 0 11294 14 7 7 7 0 8 0 futexpl 64 75381 0 75380 5 4 1 1 0 8 0 knotepl 112 131 0 0 3 0 3 3 0 8 0 kqueuepl 216 1805 0 1797 39 36 3 5 0 8 2 pipepl 336 2053 0 2043 67 65 2 9 0 8 1 fdescpl 496 11287 0 11269 3 0 3 3 0 8 0 filepl 152 76551 0 76443 137 127 10 14 0 8 5 lockfpl 104 3430 0 3428 6 5 1 2 0 8 0 lockfspl 48 794 0 792 1 0 1 1 0 8 0 sessionpl 144 67 0 56 1 0 1 1 0 8 0 pgrppl 48 70 0 59 1 0 1 1 0 8 0 ucredpl 96 9539 0 9526 1 0 1 1 0 8 0 zombiepl 144 11294 0 11293 2 1 1 1 0 8 0 processpl 1064 11348 0 11293 4 0 4 4 0 8 0 procpl 672 34119 0 34054 20 13 7 7 0 8 1 srpgc 96 60 0 60 12 11 1 1 0 8 1 sosppl 168 65 0 64 18 17 1 1 0 8 0 sockpl 480 18113 0 18082 373 352 21 22 0 8 15 mcl64k 65536 18 0 0 3 0 3 3 0 8 0 mcl16k 16384 25 0 0 4 1 3 3 0 8 0 mcl12k 12288 41 0 0 2 0 2 2 0 8 0 mcl9k 9216 22 0 0 2 0 2 2 0 8 0 mcl8k 8192 33 0 0 4 1 3 3 0 8 0 mcl4k 4096 32 0 0 4 1 3 3 0 8 0 mcl2k2 2112 15 0 0 1 0 1 1 0 8 0 mcl2k 2048 251 0 0 23 6 17 23 0 8 0 mtagpl 96 210 0 0 4 0 4 4 0 8 0 mbufpl 256 1160 0 0 62 5 57 61 0 8 0 bufpl 288 22836 0 16507 453 0 453 453 0 8 0 anonpl 24 3276067 0 3259359 318 190 128 147 0 186 12 amapchunkpl 152 355084 0 354420 117 89 28 42 0 158 1 amappl16 200 31681 0 31016 196 155 41 57 0 8 5 amappl15 192 2557 0 2552 1 0 1 1 0 8 0 amappl14 184 1038 0 1038 7 6 1 1 0 8 1 amappl13 176 2186 0 2184 1 0 1 1 0 8 0 amappl12 168 240 0 240 7 7 0 1 0 8 0 amappl11 160 324 0 305 1 0 1 1 0 8 0 amappl10 152 1775 0 1767 1 0 1 1 0 8 0 amappl9 144 1548 0 1546 1 0 1 1 0 8 0 amappl8 136 3490 0 3409 3 0 3 3 0 8 0 amappl7 128 2526 0 2516 1 0 1 1 0 8 0 amappl6 120 1556 0 1547 1 0 1 1 0 8 0 amappl5 112 11022 0 10994 1 0 1 1 0 8 0 amappl4 104 2458 0 2428 1 0 1 1 0 8 0 amappl3 96 2303 0 2277 1 0 1 1 0 8 0 amappl2 88 13843 0 13782 4 2 2 2 0 8 0 amappl1 80 198629 0 198185 13 3 10 13 0 8 0 amappl 88 143335 0 143095 6 0 6 6 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 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 72 133 0 3 3 0 3 3 0 8 0 uaddrrnd 24 11357 0 11278 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 11357 0 11278 1 0 1 1 0 8 0 vmmpekpl 168 84458 0 84421 2 0 2 2 0 8 0 vmmpepl 168 1043543 0 1041414 385 262 123 123 0 357 24 vmsppl 368 11356 0 11277 11 3 8 8 0 8 0 rwobjpl 56 262458 0 254827 136 26 110 113 0 8 2 pdppl 4096 22722 0 22615 153 46 107 107 0 8 0 pvpl 32 5363414 0 5344710 476 285 191 229 0 265 14 pmappl 248 11356 0 11277 5 0 5 5 0 8 0 extentpl 40 57 0 38 1 0 1 1 0 8 0 phpool 112 1171 0 286 26 0 26 26 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff824a8210) at panic+0x177 sys/kern/subr_prf.c:202 vndsetcred(2902,80384601,ffff80002449aad0,1) at vndsetcred VOP_IOCTL(fffffd8076b18d88,80384601,ffff80002449aad0,1,fffffd807f7d8660,ffff8000fffeb500) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd8065449740,80384601,ffff80002449aad0,ffff8000fffeb500) at vn_ioctl+0xba sys/kern/vfs_vnops.c:531 sys_ioctl(ffff8000fffeb500,ffff80002449abe8,ffff80002449ac40) at sys_ioctl+0x4a2 syscall(ffff80002449acb0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002449acb0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3ab3c117eb0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff828f0fa0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828f0fa0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 uvm_unmap_detach(ffff8000211859c0,1) at uvm_unmap_detach+0x113 sys/uvm/uvm_map.c:1616 uvm_map_teardown(fffffd807ea63748) at uvm_map_teardown+0x262 sys/uvm/uvm_map.c:2789 uvmspace_free(fffffd807ea63748) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685 reaper(ffff800021148fc0) at reaper+0x189 sys/kern/kern_exit.c:462 end trace frame: 0x0, count: 7 ddb{1}> trace x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff828f0fa0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828f0fa0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 uvm_unmap_detach(ffff8000211859c0,1) at uvm_unmap_detach+0x113 sys/uvm/uvm_map.c:1616 uvm_map_teardown(fffffd807ea63748) at uvm_map_teardown+0x262 sys/uvm/uvm_map.c:2789 uvmspace_free(fffffd807ea63748) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685 reaper(ffff800021148fc0) at reaper+0x189 sys/kern/kern_exit.c:462 end trace frame: 0x0, count: -8