panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/setuid/kernel/sys/kern/kern_unveil.c", line 200 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 203782 47902 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff82201f4e,ffffffff821b1020,c8,ffffffff821bcb81) at __assert+0x2b sys/kern/subr_prf.c:154 unveil_destroy(ffff800020a8b190) at unveil_destroy+0x19f sys/kern/kern_unveil.c:200 exit1(ffff800020a898c8,0,1) at exit1+0x38f sys/kern/kern_exit.c:218 sys_exit(ffff800020a898c8,ffff800024d33a10,ffff800024d33a60) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800024d33ae0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024d33ae0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,1,0,1,0,7f7fffff1674) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff1640, 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/setuid/kernel/sys/kern/kern_unveil.c", line 200 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:207 __assert(ffffffff82201f4e,ffffffff821b1020,c8,ffffffff821bcb81) at __assert+0x2b sys/kern/subr_prf.c:154 unveil_destroy(ffff800020a8b190) at unveil_destroy+0x19f sys/kern/kern_unveil.c:200 exit1(ffff800020a898c8,0,1) at exit1+0x38f sys/kern/kern_exit.c:218 sys_exit(ffff800020a898c8,ffff800024d33a10,ffff800024d33a60) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800024d33ae0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024d33ae0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,1,0,1,0,7f7fffff1674) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff1640, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800024d33820 rbx 0xffff800024d338d0 rdx 0xffff800020a898c8 rcx 0 rax 0 r8 0xffffffff816953ef kprintf+0x16f r9 0x1 r10 0x25 r11 0xc75b74f4a6e96db4 r12 0x3000000008 r13 0xffff800024d33830 r14 0x100 r15 0x1 rip 0xffffffff8142c8c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024d33810 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=496334 stat=onproc flags process=1018 proc=2000 pri=32, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020a88ee8,0xffffffff82621120 process=0xffff800020a8b190 user=0xffff800024d2e000, vmspace=0xfffffd807f00bb80 estcpu=29, cpticks=1, pctcpu=0.14 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 10829 237414 87119 32767 3 0x90 nanosleep syz-executor.1 87119 271430 71748 0 3 0x82 wait syz-executor.1 78768 394041 0 0 3 0x14200 bored sosplice 71748 279536 20723 0 3 0x82 thrsleep syz-fuzzer 71748 502685 20723 0 3 0x4000082 thrsleep syz-fuzzer 71748 212618 20723 0 3 0x4000082 thrsleep syz-fuzzer 71748 350948 20723 0 3 0x4000082 thrsleep syz-fuzzer 71748 432045 20723 0 3 0x4000082 thrsleep syz-fuzzer 71748 273084 20723 0 3 0x4000082 kqread syz-fuzzer 71748 13336 20723 0 3 0x4000082 thrsleep syz-fuzzer 71748 251113 20723 0 3 0x4000082 thrsleep syz-fuzzer 71748 124790 20723 0 3 0x4000082 thrsleep syz-fuzzer 71748 163901 20723 0 3 0x4000082 thrsleep syz-fuzzer 20723 440833 69766 0 3 0x10008a pause ksh 69766 304202 50472 0 3 0x92 select sshd 72351 122664 1 0 3 0x100083 ttyin getty 50472 311183 1 0 3 0x80 select sshd 99041 5523 99916 73 3 0x100090 kqread syslogd 99916 320161 1 0 3 0x100082 netio syslogd 73610 314847 1 77 3 0x100090 poll dhclient 62381 354025 1 0 3 0x80 poll dhclient 71205 439596 0 0 3 0x14200 pgzero zerothread 88227 116602 0 0 3 0x14200 aiodoned aiodoned 36977 191672 0 0 3 0x14200 syncer update 55447 134563 0 0 3 0x14200 cleaner cleaner 47902 203782 0 0 7 0x14200 reaper 15435 316052 0 0 3 0x14200 pgdaemon pagedaemon 63840 399191 0 0 3 0x14200 bored crynlk 2191 428992 0 0 3 0x14200 bored crypto 78954 199878 0 0 3 0x40014200 acpi0 acpi0 41915 330445 0 0 3 0x40014200 idle1 28730 269784 0 0 3 0x14200 bored softnet 5176 103917 0 0 3 0x14200 bored systqmp 74816 220243 0 0 3 0x14200 bored systq 97528 224143 0 0 3 0x40014200 bored softclock 30100 102126 0 0 3 0x40014200 idle0 56253 91220 0 0 3 0x14200 bored smr 1 276923 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 9469 6321K 6323K 78643K 14427 0 0 pcb 13 12K 14K 78643K 17 0 0 rtable 97 3K 4K 78643K 32185 0 0 ifaddr 31 21K 28K 78643K 4796 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 1315 0 0 iov 0 0K 44K 78643K 4759 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 76K 78643K 22603 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 275 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 13513 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 4 9K 33K 78643K 31861 0 0 sigio 0 0K 0K 78643K 3413 0 0 proc 51 62K 83K 78643K 36246 0 0 subproc 17 1K 2K 78643K 13175 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 2037 0 0 in_multi 22 1K 2K 78643K 8911 0 0 ether_multi 1 0K 0K 78643K 54 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 132 583K 583K 78643K 132 0 0 exec 0 0K 1K 78643K 13598 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 165 16K 35K 78643K 112869 0 0 UVM aobj 130 5K 5K 78643K 143 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 2208 0 0 NDP 4 0K 0K 78643K 2328 0 0 temp 97 3553K 3650K 78643K 158447 0 0 kqueue 0 0K 0K 78643K 369 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 1651 0 1647 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 3736 0 3734 1 0 1 1 0 8 0 rtentry 112 7885 0 7845 2 0 2 2 0 8 0 unpcb 120 20532 0 20468 20 17 3 3 0 8 0 syncache 264 177 0 177 62 62 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 2688 0 2688 15 15 0 1 0 8 0 tcpcb 544 9013 0 9009 107 105 2 14 0 8 1 ipq 40 315 0 315 103 103 0 1 0 8 0 ipqe 40 1073 0 1073 103 103 0 1 0 8 0 inpcb 280 33145 0 33134 171 168 3 13 0 8 1 nd6 48 1554 0 1552 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 34838 0 34580 19 0 19 19 0 8 0 art_table 32 34839 0 34580 20 17 3 3 0 8 0 art_node 16 7883 0 7846 1 0 1 1 0 8 0 sysvmsgpl 40 52 0 37 1 0 1 1 0 8 0 semapl 112 13511 0 13501 1 0 1 1 0 8 0 shmpl 112 141 0 13 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 37352 0 35883 48 0 48 48 0 8 0 ffsino 272 37352 0 35883 105 6 99 99 0 8 0 nchpl 144 77564 0 75931 65 3 62 62 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 452205 0 452205 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 232392 0 232392 196 195 1 7 0 8 1 plimitpl 152 5514 0 5507 1 0 1 1 0 8 0 sigapl 432 29713 0 29700 52 49 3 3 0 8 1 futexpl 56 493258 0 493258 3 2 1 1 0 8 1 knotepl 112 22836 0 22823 31 30 1 3 0 8 0 kqueuepl 104 10640 0 10638 38 37 1 4 0 8 0 pipepl 112 19582 0 19569 47 46 1 2 0 8 0 fdescpl 488 29714 0 29701 4 1 3 3 0 8 1 filepl 152 299513 0 299440 275 269 6 14 0 8 3 lockfpl 104 7136 0 7135 1 0 1 1 0 8 0 lockfspl 48 2493 0 2492 1 0 1 1 0 8 0 sessionpl 112 790 0 781 1 0 1 1 0 8 0 pgrppl 48 974 0 965 1 0 1 1 0 8 0 ucredpl 96 116686 0 116678 1 0 1 1 0 8 0 zombiepl 144 29701 0 29700 3 2 1 1 0 8 0 processpl 896 29730 0 29700 4 0 4 4 0 8 0 procpl 632 79100 0 79057 55 50 5 5 0 8 1 srpgc 64 1548 0 1548 62 61 1 1 0 8 1 sosppl 128 595 0 595 108 108 0 1 0 8 0 sockpl 384 57974 0 57901 291 280 11 26 0 8 3 mcl64k 65536 50 0 0 3 0 3 3 0 8 0 mcl16k 16384 69 0 0 7 5 2 3 0 8 0 mcl12k 12288 107 0 0 2 0 2 2 0 8 0 mcl9k 9216 73 0 0 3 1 2 2 0 8 0 mcl8k 8192 57 0 0 8 5 3 3 0 8 0 mcl4k 4096 53 0 0 4 1 3 3 0 8 0 mcl2k2 2112 9 0 0 1 0 1 1 0 8 0 mcl2k 2048 203 0 0 14 8 6 14 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 1835 0 0 17 0 17 17 0 8 0 bufpl 256 115322 0 108278 441 0 441 441 0 8 0 anonpl 16 3844096 0 3836312 294 241 53 69 0 124 0 amapchunkpl 152 273865 0 273770 411 405 6 18 0 158 1 amappl16 192 160280 0 159779 561 524 37 51 0 8 3 amappl15 184 3538 0 3538 67 66 1 1 0 8 1 amappl14 176 9404 0 9398 2 1 1 1 0 8 0 amappl13 168 2866 0 2866 72 71 1 1 0 8 1 amappl12 160 3003 0 2994 1 0 1 1 0 8 0 amappl11 152 5342 0 5330 1 0 1 1 0 8 0 amappl10 144 3571 0 3562 1 0 1 1 0 8 0 amappl9 136 13080 0 13075 1 0 1 1 0 8 0 amappl8 128 10655 0 10507 8 2 6 6 0 8 0 amappl7 120 6516 0 6508 1 0 1 1 0 8 0 amappl6 112 3582 0 3554 1 0 1 1 0 8 0 amappl5 104 8494 0 8479 1 0 1 1 0 8 0 amappl4 96 29279 0 29240 19 17 2 2 0 8 0 amappl3 88 5970 0 5962 1 0 1 1 0 8 0 amappl2 80 179139 0 179060 4 2 2 3 0 8 0 amappl1 72 840184 0 839753 76 66 10 20 0 8 1 amappl 80 91684 0 91647 2 1 1 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 142 0 13 3 0 3 3 0 8 0 uaddrrnd 24 29714 0 29700 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 29714 0 29700 1 0 1 1 0 8 0 vmmpekpl 168 268366 0 268337 3 0 3 3 0 8 0 vmmpepl 168 4063410 0 4061645 845 739 106 128 0 357 11 vmsppl 368 29713 0 29700 2 0 2 2 0 8 0 pdppl 4096 59435 0 59400 7 1 6 6 0 8 0 pvpl 32 10107720 0 10096275 1231 1098 133 170 0 265 8 pmappl 232 29713 0 29700 91 89 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 744 0 136 18 0 18 18 0 8 0