panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/setuid/kernel/sys/kern/kern_unveil.c", line 196 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 36183 66539 0 0x2 0x4000000 0 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:212 __assert(ffffffff81fa04ed,ffffffff81f59f4d,c4,ffffffff81f64412) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b8da58) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b75530,0,1) at exit1+0x389 sys/kern/kern_exit.c:218 sys_exit(ffff800020b75530,ffff800020b37870,ffff800020b378e0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020b37950) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020b37950) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,0,7f7fffff0514) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff04e0, 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 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(ffffffff81fa04ed,ffffffff81f59f4d,c4,ffffffff81f64412) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b8da58) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b75530,0,1) at exit1+0x389 sys/kern/kern_exit.c:218 sys_exit(ffff800020b75530,ffff800020b37870,ffff800020b378e0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020b37950) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020b37950) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,0,7f7fffff0514) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff04e0, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020b37670 rbx 0xffff800020b37720 rdx 0xffff800020b75530 rcx 0 rax 0 r8 0xffffffff81db9223 kprintf+0x173 r9 0x1 r10 0x25 r11 0xa02a363df85e000b r12 0x3000000008 r13 0xffff800020b37680 r14 0x100 r15 0x1 rip 0xffffffff816dbf58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b37660 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=169469 stat=onproc flags process=1018 proc=2000 pri=50, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b74e28,0xffffffff8237fac0 process=0xffff800020b8da58 user=0xffff800020b32000, vmspace=0xfffffd807f00b438 estcpu=36, cpticks=5, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 23633 72165 65694 32767 2 0x490 syz-executor.0 65694 323943 66539 0 3 0x82 wait syz-executor.0 32481 462132 0 0 3 0x14200 bored sosplice 66539 150817 61655 0 3 0x82 thrsleep syz-fuzzer 66539 327481 61655 0 3 0x4000082 nanosleep syz-fuzzer 66539 19580 61655 0 3 0x4000082 thrsleep syz-fuzzer 66539 215666 61655 0 3 0x4000082 thrsleep syz-fuzzer 66539 477116 61655 0 3 0x4000082 thrsleep syz-fuzzer 66539 36183 61655 0 7 0x4000002 syz-fuzzer 66539 54896 61655 0 3 0x4000082 thrsleep syz-fuzzer 66539 262747 61655 0 3 0x4000082 thrsleep syz-fuzzer 66539 54909 61655 0 3 0x4000082 thrsleep syz-fuzzer 66539 202442 61655 0 3 0x4000082 kqread syz-fuzzer 61655 355056 37935 0 3 0x10008a pause ksh 37935 285400 72503 0 3 0x92 select sshd 19737 4773 1 0 3 0x100083 ttyin getty 72503 197479 1 0 3 0x80 select sshd 97071 299890 86857 73 3 0x100090 kqread syslogd 86857 99072 1 0 3 0x100082 netio syslogd 55244 89440 1 77 3 0x100090 poll dhclient 37875 78787 1 0 3 0x80 poll dhclient 61486 100019 0 0 2 0x14200 zerothread 64121 409236 0 0 3 0x14200 aiodoned aiodoned 70504 131591 0 0 3 0x14200 syncer update 15414 42514 0 0 3 0x14200 cleaner cleaner 98420 424660 0 0 3 0x14200 reaper reaper 8423 30967 0 0 3 0x14200 pgdaemon pagedaemon 60615 126552 0 0 3 0x14200 bored crynlk 96444 265252 0 0 3 0x14200 bored crypto 73178 485631 0 0 3 0x40014200 acpi0 acpi0 72845 471338 0 0 3 0x40014200 idle1 61376 180399 0 0 3 0x14200 bored softnet 96020 62202 0 0 3 0x14200 bored systqmp 69094 301538 0 0 3 0x14200 bored systq 50371 168325 0 0 3 0x40014200 bored softclock 99130 380370 0 0 3 0x40014200 idle0 62714 348290 0 0 3 0x14200 bored smr 1 460164 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 9455 6319K 6321K 78643K 10952 0 0 pcb 23 9K 11K 78643K 2230 0 0 rtable 83 2K 3K 78643K 3802 0 0 ifaddr 30 11K 12K 78643K 536 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 184 0 0 iov 0 0K 24K 78643K 256 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1209 76K 76K 78643K 3545 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 45 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 265 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 4 9K 33K 78643K 4789 0 0 sigio 0 0K 0K 78643K 49 0 0 proc 44 50K 70K 78643K 4062 0 0 subproc 17 1K 2K 78643K 1411 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 1074 0 0 ether_multi 1 0K 0K 78643K 28 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 1422 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 84 12K 30K 78643K 16436 0 0 UVM aobj 130 4K 4K 78643K 156 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 234 0 0 NDP 4 0K 0K 78643K 252 0 0 temp 97 2733K 2806K 78643K 22425 0 0 kqueue 0 0K 0K 78643K 75 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 168 0 164 1 0 1 1 0 8 0 inpcbpl 280 2297 0 2290 1 0 1 1 0 8 0 plimitpl 152 352 0 345 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 936 0 903 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 864 0 860 1 0 1 1 0 8 0 ipq 40 2 0 2 1 1 0 1 0 8 0 ipqe 40 4 0 4 1 1 0 1 0 8 0 nd6 48 249 0 246 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 3855 0 3708 16 4 12 13 0 8 1 art_table 32 3856 0 3708 2 0 2 2 0 8 0 art_node 16 935 0 905 1 0 1 1 0 8 0 sysvmsgpl 40 13 0 9 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 263 0 253 1 0 1 1 0 8 0 shmpl 112 154 0 26 5 1 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 6520 0 5021 49 0 49 49 0 8 0 ffsino 272 6520 0 5021 101 0 101 101 0 8 0 nchpl 144 12114 0 10498 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 46776 0 46776 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 32083 0 32083 20 19 1 6 0 8 1 sigapl 432 4717 0 4704 8 6 2 3 0 8 0 futexpl 56 39367 0 39367 2 1 1 1 0 8 1 knotepl 112 2700 0 2687 1 0 1 1 0 8 0 kqueuepl 104 1048 0 1046 1 0 1 1 0 8 0 pipepl 112 3134 0 3121 9 8 1 2 0 8 0 fdescpl 488 4718 0 4705 4 1 3 3 0 8 1 filepl 152 27940 0 27868 13 8 5 7 0 8 1 lockfpl 104 962 0 962 4 3 1 1 0 8 1 lockfspl 48 300 0 300 4 3 1 1 0 8 1 sessionpl 112 98 0 89 1 0 1 1 0 8 0 pgrppl 48 155 0 146 1 0 1 1 0 8 0 ucredpl 96 8554 0 8546 1 0 1 1 0 8 0 zombiepl 144 4705 0 4704 3 2 1 1 0 8 0 processpl 840 4734 0 4704 4 0 4 4 0 8 0 procpl 600 12365 0 12326 6 2 4 5 0 8 0 srpgc 64 492 0 492 13 12 1 1 0 8 1 sosppl 128 69 0 69 16 16 0 1 0 8 0 sockpl 384 4589 0 4572 6 3 3 4 0 8 1 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl16k 16384 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 19 0 0 2 0 2 2 0 8 0 mcl9k 9216 24 0 0 2 0 2 2 0 8 0 mcl8k 8192 10 0 0 2 0 2 2 0 8 0 mcl4k 4096 13 0 0 2 0 2 2 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 112 0 0 13 0 13 13 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 349 0 0 12 0 12 12 0 8 0 bufpl 256 12165 0 5160 438 0 438 438 0 8 0 anonpl 16 470407 0 465055 176 134 42 44 0 125 12 amapchunkpl 152 36316 0 36235 60 55 5 17 0 158 0 amappl16 192 20199 0 19893 156 128 28 30 0 8 11 amappl15 184 380 0 380 11 11 0 1 0 8 0 amappl14 176 1201 0 1192 2 1 1 1 0 8 0 amappl13 168 956 0 956 7 7 0 1 0 8 0 amappl12 160 557 0 556 1 0 1 1 0 8 0 amappl11 152 805 0 790 1 0 1 1 0 8 0 amappl10 144 843 0 840 2 1 1 1 0 8 0 amappl9 136 2001 0 1999 1 0 1 1 0 8 0 amappl8 128 1375 0 1350 1 0 1 1 0 8 0 amappl7 120 848 0 840 1 0 1 1 0 8 0 amappl6 112 603 0 594 1 0 1 1 0 8 0 amappl5 104 1139 0 1128 1 0 1 1 0 8 0 amappl4 96 4674 0 4647 1 0 1 1 0 8 0 amappl3 88 1158 0 1147 1 0 1 1 0 8 0 amappl2 80 30805 0 30743 4 2 2 3 0 8 0 amappl1 72 134573 0 134148 23 13 10 19 0 8 0 amappl 80 13846 0 13815 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 155 0 26 3 0 3 3 0 8 0 uaddrrnd 24 4718 0 4704 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4718 0 4704 1 0 1 1 0 8 0 vmmpekpl 168 42235 0 42209 2 0 2 2 0 8 0 vmmpepl 168 529786 0 528474 188 110 78 79 0 357 18 vmsppl 360 4717 0 4704 2 0 2 2 0 8 0 pdppl 4096 9444 0 9408 7 1 6 6 0 8 0 pvpl 32 1313760 0 1305317 337 221 116 122 0 265 34 pmappl 232 4717 0 4704 10 9 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 604 0 9 18 0 18 18 0 8 0