panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/setuid/kernel/sys/kern/kern_unveil.c", line 203 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 269989 1343 0 0x2 0x4000000 1 syz-fuzzer 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(ffffffff81fb0061,ffffffff81f66455,cb,ffffffff81f70d85) at __assert+0x2e sys/kern/subr_prf.c:154 unveil_destroy(ffff800020b2b510) at unveil_destroy+0x1a9 sys/kern/kern_unveil.c:203 exit1(ffff800020b29650,0,1) at exit1+0x38f sys/kern/kern_exit.c:218 sys_exit(ffff800020b29650,ffff800022df36d0,ffff800022df3740) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800022df37b0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022df37b0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,1,0,1,0,7f7fffffa6a4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffffa670, 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 kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/setuid/kernel/sys/kern/kern_unveil.c", line 203 ddb{0}> 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(ffffffff81fb0061,ffffffff81f66455,cb,ffffffff81f70d85) at __assert+0x2e sys/kern/subr_prf.c:154 unveil_destroy(ffff800020b2b510) at unveil_destroy+0x1a9 sys/kern/kern_unveil.c:203 exit1(ffff800020b29650,0,1) at exit1+0x38f sys/kern/kern_exit.c:218 sys_exit(ffff800020b29650,ffff800022df36d0,ffff800022df3740) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800022df37b0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022df37b0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,1,0,1,0,7f7fffffa6a4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffffa670, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800022df34e0 rbx 0xffff800022df3590 rdx 0xffff800020b29650 rcx 0 rax 0 r8 0xffffffff814feaf3 kprintf+0x173 r9 0x1 r10 0x25 r11 0x4b5cbfeae75e1cf6 r12 0x3000000008 r13 0xffff800022df34f0 r14 0x100 r15 0x1 rip 0xffffffff81dfea28 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022df34d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=166034 stat=onproc flags process=1018 proc=2000 pri=32, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff800020b29160,0xffffffff8236d358 process=0xffff800020b2b510 user=0xffff800022dee000, vmspace=0xfffffd806e8f78a8 estcpu=33, cpticks=6, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 54159 128623 14884 32767 2 0x490 syz-executor.0 14884 51453 1343 0 3 0x82 wait syz-executor.0 47441 114918 0 0 3 0x14200 bored sosplice 1343 399976 23660 0 3 0x82 thrsleep syz-fuzzer 1343 200607 23660 0 3 0x4000082 nanosleep syz-fuzzer 1343 89997 23660 0 3 0x4000082 thrsleep syz-fuzzer 1343 309195 23660 0 3 0x4000082 thrsleep syz-fuzzer 1343 419580 23660 0 3 0x4000082 thrsleep syz-fuzzer 1343 362285 23660 0 3 0x4000082 thrsleep syz-fuzzer 1343 126772 23660 0 3 0x4000082 thrsleep syz-fuzzer 1343 269989 23660 0 7 0x4000002 syz-fuzzer 1343 212792 23660 0 3 0x4000082 thrsleep syz-fuzzer 1343 104417 23660 0 3 0x4000082 kqread syz-fuzzer 23660 455432 10474 0 3 0x10008a pause ksh 10474 332890 70200 0 3 0x92 select sshd 7279 129884 1 0 3 0x100083 ttyin getty 70200 65026 1 0 3 0x80 select sshd 7153 469291 77204 73 3 0x100090 kqread syslogd 77204 95043 1 0 3 0x100082 netio syslogd 70953 224163 1 77 3 0x100090 poll dhclient 87915 231032 1 0 3 0x80 poll dhclient 44540 391943 0 0 2 0x14200 zerothread 95735 375769 0 0 3 0x14200 aiodoned aiodoned 31751 383745 0 0 3 0x14200 syncer update 42989 282279 0 0 3 0x14200 cleaner cleaner 12192 341762 0 0 3 0x14200 reaper reaper 15907 299436 0 0 3 0x14200 pgdaemon pagedaemon 55096 159324 0 0 3 0x14200 bored crynlk 99833 398086 0 0 3 0x14200 bored crypto 84594 423311 0 0 3 0x40014200 acpi0 acpi0 22351 304407 0 0 3 0x40014200 idle1 35816 21022 0 0 3 0x14200 bored softnet 31632 333269 0 0 3 0x14200 bored systqmp 24446 476365 0 0 3 0x14200 bored systq 13603 382962 0 0 3 0x40014200 bored softclock 78456 295455 0 0 3 0x40014200 idle0 99221 359986 0 0 3 0x14200 bored smr 1 208926 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9456 6319K 6321K 78643K 10963 0 0 pcb 13 8K 8K 78643K 13 0 0 rtable 85 2K 3K 78643K 3922 0 0 ifaddr 30 11K 12K 78643K 548 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 202 0 0 iov 0 0K 28K 78643K 399 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 76K 78643K 3351 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 40 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 454 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 4 9K 33K 78643K 4662 0 0 sigio 0 0K 0K 78643K 38 0 0 proc 44 50K 70K 78643K 4121 0 0 subproc 17 1K 2K 78643K 1445 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 557 0 0 in_multi 22 1K 2K 78643K 1080 0 0 ether_multi 1 0K 0K 78643K 31 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 1554 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 90 13K 30K 78643K 16250 0 0 UVM aobj 130 4K 4K 78643K 140 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 251 0 0 NDP 4 0K 0K 78643K 258 0 0 temp 97 2745K 2814K 78643K 22451 0 0 kqueue 0 0K 0K 78643K 77 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 174 0 169 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 395 0 393 1 0 1 1 0 8 0 rtentry 112 960 0 926 2 0 2 2 0 8 0 unpcb 120 1787 0 1779 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 4291 0 4291 1 1 0 1 0 8 0 tcpcb 544 1112 0 1108 1 0 1 1 0 8 0 inpcb 280 2440 0 2430 3 2 1 2 0 8 0 nd6 48 255 0 252 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 3936 0 3788 16 4 12 13 0 8 1 art_table 32 3937 0 3788 2 0 2 2 0 8 0 art_node 16 959 0 928 1 0 1 1 0 8 0 sysvmsgpl 40 30 0 20 2 1 1 1 0 8 0 semapl 112 450 0 440 1 0 1 1 0 8 0 shmpl 112 138 0 10 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 6205 0 4761 49 2 47 47 0 8 0 ffsino 272 6205 0 4761 97 0 97 97 0 8 0 nchpl 144 11780 0 10158 61 0 61 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 200 5926 0 0 312 0 312 312 0 8 0 namei 1024 45932 0 45932 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 34597 0 34597 23 22 1 7 0 8 1 plimitpl 152 688 0 681 1 0 1 1 0 8 0 sigapl 432 4584 0 4571 6 4 2 3 0 8 0 futexpl 56 40021 0 40021 1 0 1 1 0 8 1 knotepl 112 2774 0 2761 1 0 1 1 0 8 0 kqueuepl 104 1130 0 1128 1 0 1 1 0 8 0 pipepl 112 2944 0 2931 12 11 1 2 0 8 0 fdescpl 488 4585 0 4572 3 0 3 3 0 8 1 filepl 152 27271 0 27199 18 13 5 7 0 8 1 lockfpl 104 924 0 924 6 5 1 1 0 8 1 lockfspl 48 296 0 296 6 5 1 1 0 8 1 sessionpl 112 100 0 91 1 0 1 1 0 8 0 pgrppl 48 134 0 125 1 0 1 1 0 8 0 ucredpl 96 7444 0 7436 1 0 1 1 0 8 0 zombiepl 144 4572 0 4571 2 1 1 1 0 8 0 processpl 896 4601 0 4571 4 0 4 4 0 8 0 procpl 632 11983 0 11944 20 16 4 5 0 8 0 srpgc 64 168 0 168 17 16 1 1 0 8 1 sosppl 128 72 0 72 18 17 1 1 0 8 1 sockpl 384 4715 0 4698 8 5 3 4 0 8 1 mcl64k 65536 11 0 0 2 0 2 2 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 15 0 0 2 0 2 2 0 8 0 mcl8k 8192 9 0 0 2 0 2 2 0 8 0 mcl4k 4096 21 0 0 3 1 2 3 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 129 0 0 15 0 15 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 413 0 0 12 0 12 12 0 8 0 bufpl 256 15705 0 8681 440 0 440 440 0 8 0 anonpl 16 562780 0 555871 147 102 45 59 0 125 7 amapchunkpl 152 38105 0 38021 71 63 8 11 0 158 3 amappl16 192 22810 0 22447 157 130 27 39 0 8 6 amappl15 184 500 0 498 10 9 1 1 0 8 0 amappl14 176 1035 0 1029 1 0 1 1 0 8 0 amappl13 168 617 0 617 11 11 0 1 0 8 0 amappl12 160 645 0 640 1 0 1 1 0 8 0 amappl11 152 516 0 505 1 0 1 1 0 8 0 amappl10 144 887 0 883 1 0 1 1 0 8 0 amappl9 136 2274 0 2270 1 0 1 1 0 8 0 amappl8 128 1557 0 1530 2 0 2 2 0 8 0 amappl7 120 1031 0 1019 1 0 1 1 0 8 0 amappl6 112 301 0 293 1 0 1 1 0 8 0 amappl5 104 1301 0 1291 1 0 1 1 0 8 0 amappl4 96 4500 0 4467 2 1 1 2 0 8 0 amappl3 88 1472 0 1462 1 0 1 1 0 8 0 amappl2 80 29627 0 29564 3 1 2 3 0 8 0 amappl1 72 131945 0 131525 23 13 10 19 0 8 0 amappl 80 13587 0 13555 1 0 1 1 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 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 139 0 10 3 0 3 3 0 8 0 uaddrrnd 24 4585 0 4571 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4585 0 4571 1 0 1 1 0 8 0 vmmpekpl 168 41474 0 41445 2 0 2 2 0 8 0 vmmpepl 168 591981 0 590544 201 120 81 92 0 357 10 vmsppl 368 4584 0 4571 2 0 2 2 0 8 0 pdppl 4096 9177 0 9142 6 0 6 6 0 8 1 pvpl 32 1436142 0 1426158 294 173 121 152 0 265 27 pmappl 232 4584 0 4571 12 11 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 605 0 8 18 0 18 18 0 8 0