panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 196 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:212 __assert(ffffffff81f98711,ffffffff81f9cd8c,c4,ffffffff81f5c06e) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b8d3c8) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b39530,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b39530,ffff800020c1eea0,ffff800020c1ef10) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020c1ef80) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c1ef80) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffd9288) at Xsyscall+0x128 end trace frame: 0x0, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 196 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:212 __assert(ffffffff81f98711,ffffffff81f9cd8c,c4,ffffffff81f5c06e) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b8d3c8) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b39530,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b39530,ffff800020c1eea0,ffff800020c1ef10) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020c1ef80) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c1ef80) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffd9288) at Xsyscall+0x128 end trace frame: 0x0, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020c1eca0 rbx 0xffff800020c1ed50 rdx 0xffff800020b39530 rcx 0 rax 0 r8 0xffffffff812d2ac3 kprintf+0x173 r9 0x1 r10 0x25 r11 0x5312012679ade116 r12 0x3000000008 r13 0xffff800020c1ecb0 r14 0x100 r15 0x1 rip 0xffffffff816ce868 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c1ec90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=90108 stat=onproc flags process=1008 proc=2000 pri=50, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b38018,0xffffffff82341258 process=0xffff800020b8d3c8 user=0xffff800020c1a000, vmspace=0xfffffd807effe000 estcpu=36, cpticks=8, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 62369 265738 5358 0 3 0x82 nanosleep syz-executor.0 88521 414533 0 0 3 0x14200 bored sosplice 25401 101969 5358 0 3 0x82 nanosleep syz-executor.1 5358 367764 39439 0 3 0x82 thrsleep syz-fuzzer 5358 468798 39439 0 3 0x4000082 thrsleep syz-fuzzer 5358 66350 39439 0 3 0x4000082 thrsleep syz-fuzzer 5358 204105 39439 0 3 0x4000082 thrsleep syz-fuzzer 5358 63103 39439 0 3 0x4000082 thrsleep syz-fuzzer 5358 425819 39439 0 3 0x4000082 thrsleep syz-fuzzer 5358 401114 39439 0 3 0x4000082 kqread syz-fuzzer 5358 54908 39439 0 3 0x4000082 thrsleep syz-fuzzer 5358 310279 39439 0 3 0x4000082 thrsleep syz-fuzzer 5358 428071 39439 0 3 0x4000082 thrsleep syz-fuzzer 5358 37584 39439 0 3 0x4000082 thrsleep syz-fuzzer 39439 277456 82756 0 3 0x10008a pause ksh 82756 437603 19437 0 3 0x92 select sshd 78881 182636 1 0 3 0x100083 ttyin getty 19437 422771 1 0 3 0x80 select sshd 79711 157102 41646 74 3 0x100092 bpf pflogd 41646 324427 1 0 3 0x80 netio pflogd 12585 80086 68081 73 3 0x100090 kqread syslogd 68081 132543 1 0 3 0x100082 netio syslogd 51438 511391 1 77 3 0x100090 poll dhclient 4422 116535 1 0 3 0x80 poll dhclient 61115 26965 0 0 3 0x14200 pgzero zerothread 84617 7406 0 0 3 0x14200 aiodoned aiodoned 77891 241040 0 0 3 0x14200 syncer update 15307 295104 0 0 3 0x14200 cleaner cleaner 42278 322355 0 0 3 0x14200 reaper reaper 23581 399967 0 0 3 0x14200 pgdaemon pagedaemon 20792 283520 0 0 3 0x14200 bored crynlk 52227 291455 0 0 3 0x14200 bored crypto 97806 63149 0 0 3 0x40014200 acpi0 acpi0 99749 516954 0 0 3 0x40014200 idle1 68654 332035 0 0 3 0x14200 bored softnet 61174 475302 0 0 3 0x14200 bored systqmp 41475 473335 0 0 3 0x14200 bored systq 79949 18506 0 0 3 0x40014200 bored softclock 8502 39135 0 0 7 0x40014200 idle0 92966 234229 0 0 3 0x14200 bored smr 1 346046 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9485 6640K 6908K 78643K 11248 0 0 pcb 25 9K 11K 78643K 153 0 0 rtable 108 4K 4K 78643K 338 0 0 ifaddr 43 11K 12K 78643K 84 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1475 0 0 iov 0 0K 16K 78643K 24 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1201 75K 76K 78643K 1451 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 3 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 52 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 4 9K 25K 78643K 293 0 0 sigio 0 0K 0K 78643K 3 0 0 proc 56 63K 91K 78643K 470 0 0 subproc 64 65538K 69634K 78643K 136 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 27 0 0 in_multi 33 2K 2K 78643K 65 0 0 ether_multi 1 0K 0K 78643K 4 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 54 238K 238K 78643K 54 0 0 exec 0 0K 1K 78643K 247 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 88 21K 22K 78643K 1798 0 0 UVM aobj 12 2K 2K 78643K 14 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 10 0 0 NDP 9 0K 0K 78643K 24 0 0 temp 106 2719K 2847K 78643K 6728 0 0 kqueue 0 0K 0K 78643K 4 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 10 0 4 1 0 1 1 0 8 0 inpcbpl 280 143 0 136 1 0 1 1 0 8 0 plimitpl 152 23 0 15 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 67 0 23 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 6 0 6 1 1 0 1 0 8 0 tcpcb 544 46 0 42 1 0 1 1 0 8 0 nd6 48 12 0 6 1 0 1 1 0 8 0 ppxss 1128 6 0 6 2 1 1 1 0 8 1 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 15 0 3 1 0 1 1 0 8 0 pfstkey 112 15 0 3 1 0 1 1 0 8 0 pfstate 328 15 0 3 1 0 1 1 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 280 0 88 12 0 12 12 0 8 0 art_table 32 281 0 88 2 0 2 2 0 8 0 art_node 16 66 0 26 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 3 1 0 1 1 0 8 0 semapl 112 50 0 40 1 0 1 1 0 8 0 shmpl 112 12 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1807 0 382 47 0 47 47 0 8 0 ffsino 272 1807 0 382 96 0 96 96 0 8 0 nchpl 144 2392 0 751 61 0 61 61 0 8 0 uvmvnodes 72 2038 0 0 38 0 38 38 0 8 0 vnodes 200 2038 0 0 108 0 108 108 0 8 0 namei 1024 6761 0 6761 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 13648 0 13648 8 7 1 6 0 8 1 sigapl 432 486 0 471 3 1 2 3 0 8 0 futexpl 56 3015 0 3015 1 0 1 1 0 8 1 knotepl 112 123 0 104 1 0 1 1 0 8 0 kqueuepl 104 54 0 52 1 0 1 1 0 8 0 pipepl 112 354 0 335 2 1 1 1 0 8 0 fdescpl 488 487 0 472 5 2 3 3 0 8 1 filepl 152 2668 0 2569 6 1 5 5 0 8 1 lockfpl 104 94 0 94 2 1 1 1 0 8 1 lockfspl 48 32 0 32 2 1 1 1 0 8 1 sessionpl 112 20 0 9 1 0 1 1 0 8 0 pgrppl 48 26 0 15 1 0 1 1 0 8 0 ucredpl 96 361 0 352 1 0 1 1 0 8 0 zombiepl 144 472 0 470 3 2 1 1 0 8 0 processpl 840 503 0 470 4 0 4 4 0 8 0 procpl 600 1000 0 957 4 0 4 4 0 8 0 srpgc 64 12 0 12 1 0 1 1 0 8 1 sosppl 128 7 0 7 2 1 1 1 0 8 1 sockpl 384 265 0 246 5 2 3 4 0 8 1 mcl64k 65536 370 0 0 47 0 47 47 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 114 0 0 14 0 14 14 0 8 0 mtagpl 80 3 0 0 1 0 1 1 0 8 0 mbufpl 256 467 0 0 29 0 29 29 0 8 0 bufpl 256 20232 0 14021 390 0 390 390 0 8 0 anonpl 16 62105 0 52877 55 2 53 53 0 125 7 amapchunkpl 152 2854 0 2744 12 2 10 10 0 158 4 amappl16 192 2078 0 1492 41 2 39 41 0 8 8 amappl15 184 233 0 229 1 0 1 1 0 8 0 amappl14 176 107 0 103 2 1 1 1 0 8 0 amappl13 168 16 0 16 2 1 1 1 0 8 1 amappl12 160 12 0 10 1 0 1 1 0 8 0 amappl11 152 52 0 34 1 0 1 1 0 8 0 amappl10 144 82 0 77 1 0 1 1 0 8 0 amappl9 136 685 0 680 1 0 1 1 0 8 0 amappl8 128 219 0 203 1 0 1 1 0 8 0 amappl7 120 41 0 37 1 0 1 1 0 8 0 amappl6 112 68 0 58 1 0 1 1 0 8 0 amappl5 104 142 0 128 1 0 1 1 0 8 0 amappl4 96 719 0 685 2 1 1 2 0 8 0 amappl3 88 149 0 142 1 0 1 1 0 8 0 amappl2 80 2951 0 2893 3 1 2 2 0 8 0 amappl1 72 20467 0 20016 25 15 10 20 0 8 0 amappl 72 1300 0 1261 1 0 1 1 0 75 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 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 13 0 2 1 0 1 1 0 8 0 uaddrrnd 24 487 0 471 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 487 0 471 1 0 1 1 0 8 0 vmmpekpl 168 7776 0 7753 2 0 2 2 0 8 0 vmmpepl 168 59774 0 58171 128 24 104 113 0 357 31 vmsppl 360 486 0 471 2 0 2 2 0 8 0 pdppl 4096 982 0 942 8 2 6 6 0 8 1 pvpl 32 190828 0 178414 142 6 136 136 0 265 18 pmappl 232 486 0 471 2 1 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 611 0 7 18 0 18 18 0 8 0