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 506766 30737 0 0x14000 0x200 1 reaper 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(ffffffff81f9834f,ffffffff81f4feb7,c4,ffffffff81f5a832) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b3b708) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b38720,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b38720,ffff800020bf7720,ffff800020bf7790) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020bf7800) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020bf7800) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffe8798) 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{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 196 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:212 __assert(ffffffff81f9834f,ffffffff81f4feb7,c4,ffffffff81f5a832) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b3b708) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b38720,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b38720,ffff800020bf7720,ffff800020bf7790) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020bf7800) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020bf7800) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffe8798) at Xsyscall+0x128 end trace frame: 0x0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020bf7520 rbx 0xffff800020bf75d0 rdx 0xffff800020b38720 rcx 0 rax 0 r8 0xffffffff8177e313 kprintf+0x173 r9 0x1 r10 0x25 r11 0xdd619a0c03fde18c r12 0x3000000008 r13 0xffff800020bf7530 r14 0x100 r15 0x1 rip 0xffffffff81967bf8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020bf7510 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=94278 stat=onproc flags process=1018 proc=2000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b38978,0xffffffff8235aaa8 process=0xffff800020b3b708 user=0xffff800020bf2000, vmspace=0xfffffd807effe708 estcpu=36, cpticks=5, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 30970 175357 32598 32767 3 0x90 nanosleep syz-executor.1 32598 56164 83924 0 3 0x82 wait syz-executor.1 77515 116623 0 0 3 0x14200 bored sosplice 83924 423278 96232 0 3 0x82 thrsleep syz-fuzzer 83924 442072 96232 0 2 0x4000482 syz-fuzzer 83924 403503 96232 0 3 0x4000082 thrsleep syz-fuzzer 83924 490070 96232 0 3 0x4000082 thrsleep syz-fuzzer 83924 105153 96232 0 3 0x4000082 thrsleep syz-fuzzer 83924 421409 96232 0 3 0x4000082 thrsleep syz-fuzzer 83924 366921 96232 0 3 0x4000082 thrsleep syz-fuzzer 83924 331626 96232 0 3 0x4000082 thrsleep syz-fuzzer 83924 27782 96232 0 3 0x4000082 thrsleep syz-fuzzer 83924 384396 96232 0 3 0x4000082 kqread syz-fuzzer 83924 240638 96232 0 3 0x4000082 thrsleep syz-fuzzer 96232 131700 45972 0 3 0x10008a pause ksh 45972 125271 83970 0 3 0x92 select sshd 92040 449209 1 0 3 0x100083 ttyin getty 83970 339430 1 0 3 0x80 select sshd 882 366118 81516 73 3 0x100090 kqread syslogd 81516 366603 1 0 3 0x100082 netio syslogd 87525 106803 1 77 3 0x100090 poll dhclient 61700 135227 1 0 3 0x80 poll dhclient 2694 441775 0 0 3 0x14200 pgzero zerothread 78618 220370 0 0 3 0x14200 aiodoned aiodoned 45916 246012 0 0 3 0x14200 syncer update 77072 102980 0 0 3 0x14200 cleaner cleaner 30737 506766 0 0 7 0x14200 reaper 76359 371106 0 0 3 0x14200 pgdaemon pagedaemon 83665 377839 0 0 3 0x14200 bored crynlk 1425 232578 0 0 3 0x14200 bored crypto 52446 483342 0 0 3 0x40014200 acpi0 acpi0 19329 435077 0 0 3 0x40014200 idle1 12704 402233 0 0 3 0x14200 bored softnet 92816 350734 0 0 3 0x14200 bored systqmp 60724 239705 0 0 3 0x14200 bored systq 66509 272233 0 0 3 0x40014200 bored softclock 25038 378507 0 0 3 0x40014200 idle0 65034 279394 0 0 3 0x14200 bored smr 1 17037 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 9455 6318K 6321K 78643K 10797 0 0 pcb 23 9K 11K 78643K 966 0 0 rtable 83 2K 3K 78643K 2430 0 0 ifaddr 30 10K 11K 78643K 341 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 87 0 0 iov 0 0K 32K 78643K 233 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1201 75K 75K 78643K 2279 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 27 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 204 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 4 9K 33K 78643K 2212 0 0 sigio 0 0K 0K 78643K 35 0 0 proc 44 50K 78K 78643K 2535 0 0 subproc 34 34817K 69634K 78643K 1768 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 260 0 0 in_multi 22 1K 2K 78643K 656 0 0 ether_multi 1 0K 0K 78643K 15 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 928 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 76 12K 29K 78643K 7930 0 0 UVM aobj 100 3K 3K 78643K 105 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 90 0 0 NDP 4 0K 0K 78643K 159 0 0 temp 97 2729K 2858K 78643K 16401 0 0 kqueue 0 0K 0K 78643K 21 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 106 0 102 1 0 1 1 0 8 0 inpcbpl 280 1093 0 1084 3 1 2 2 0 8 1 plimitpl 152 250 0 243 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 595 0 562 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 445 0 441 1 0 1 1 0 8 0 nd6 48 156 0 153 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2454 0 2306 15 3 12 13 0 8 1 art_table 32 2455 0 2306 2 0 2 2 0 8 0 art_node 16 594 0 564 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 2 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 199 0 189 1 0 1 1 0 8 0 shmpl 112 103 0 5 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3380 0 1897 48 0 48 48 0 8 0 ffsino 272 3380 0 1897 99 0 99 99 0 8 0 nchpl 144 5948 0 4301 62 0 62 62 0 8 0 uvmvnodes 72 4273 0 0 78 0 78 78 0 8 0 vnodes 200 4273 0 0 225 0 225 225 0 8 0 namei 1024 22922 0 22922 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 36553 0 36553 17 14 3 6 0 8 3 sigapl 432 2232 0 2219 3 1 2 3 0 8 0 futexpl 56 16306 0 16306 1 0 1 1 0 8 1 knotepl 112 1442 0 1429 1 0 1 1 0 8 0 kqueuepl 104 391 0 389 1 0 1 1 0 8 0 pipepl 112 1472 0 1459 3 2 1 2 0 8 0 fdescpl 488 2233 0 2220 3 0 3 3 0 8 0 filepl 152 12368 0 12296 8 3 5 6 0 8 1 lockfpl 104 516 0 516 3 2 1 1 0 8 1 lockfspl 48 178 0 178 3 2 1 1 0 8 1 sessionpl 112 67 0 58 1 0 1 1 0 8 0 pgrppl 48 89 0 80 1 0 1 1 0 8 0 ucredpl 96 2905 0 2897 1 0 1 1 0 8 0 zombiepl 144 2220 0 2219 2 1 1 1 0 8 0 processpl 840 2249 0 2219 4 0 4 4 0 8 0 procpl 600 5291 0 5250 5 1 4 5 0 8 0 srpgc 64 306 0 306 4 3 1 1 0 8 1 sosppl 128 20 0 20 6 6 0 1 0 8 0 sockpl 384 2089 0 2072 6 3 3 4 0 8 1 mcl64k 65536 11 0 0 2 0 2 2 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 12 0 0 2 0 2 2 0 8 0 mcl9k 9216 9 0 0 1 0 1 1 0 8 0 mcl8k 8192 9 0 0 2 0 2 2 0 8 0 mcl4k 4096 12 0 0 2 0 2 2 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 130 0 0 15 0 15 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 244 0 0 12 0 12 12 0 8 0 bufpl 256 36657 0 30446 391 0 391 391 0 8 0 anonpl 16 209565 0 203859 65 34 31 45 0 125 0 amapchunkpl 152 18217 0 18133 23 18 5 9 0 158 1 amappl16 192 7612 0 7243 31 7 24 30 0 8 0 amappl15 184 323 0 322 1 0 1 1 0 8 0 amappl14 176 615 0 611 2 1 1 1 0 8 0 amappl13 168 260 0 258 3 2 1 1 0 8 0 amappl12 160 221 0 220 2 1 1 1 0 8 0 amappl11 152 440 0 426 1 0 1 1 0 8 0 amappl10 144 281 0 278 2 1 1 1 0 8 0 amappl9 136 1344 0 1339 1 0 1 1 0 8 0 amappl8 128 755 0 731 1 0 1 1 0 8 0 amappl7 120 330 0 322 1 0 1 1 0 8 0 amappl6 112 329 0 318 1 0 1 1 0 8 0 amappl5 104 673 0 663 1 0 1 1 0 8 0 amappl4 96 2304 0 2276 2 1 1 2 0 8 0 amappl3 88 525 0 519 1 0 1 1 0 8 0 amappl2 80 14036 0 13981 2 0 2 2 0 8 0 amappl1 72 69370 0 68945 23 13 10 19 0 8 0 amappl 72 6290 0 6258 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 104 0 5 2 0 2 2 0 8 0 uaddrrnd 24 2233 0 2219 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2233 0 2219 1 0 1 1 0 8 0 vmmpekpl 168 21517 0 21492 2 0 2 2 0 8 0 vmmpepl 168 253661 0 252330 110 37 73 78 0 357 7 vmsppl 360 2232 0 2219 2 0 2 2 0 8 0 pdppl 4096 4474 0 4438 6 0 6 6 0 8 0 pvpl 32 658092 0 649307 164 59 105 120 0 265 16 pmappl 232 2232 0 2219 4 3 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 554 0 6 16 0 16 16 0 8 0