panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 202 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 104522 22977 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(ffffffff81fad0ad,ffffffff81fb1058,ca,ffffffff81f6f96c) at __assert+0x2e sys/kern/subr_prf.c:154 unveil_destroy(ffff800020b7c380) at unveil_destroy+0x1a9 sys/kern/kern_unveil.c:202 exit1(ffff800020b29650,0,1) at exit1+0x38f sys/kern/kern_exit.c:218 sys_exit(ffff800020b29650,ffff800020b8b130,ffff800020b8b1a0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020b8b210) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b8b210) at syscall+0x552 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,1,0,1,0,7f7ffffc58e4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc58b0, 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/multicore/kernel/sys/kern/kern_unveil.c", line 202 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(ffffffff81fad0ad,ffffffff81fb1058,ca,ffffffff81f6f96c) at __assert+0x2e sys/kern/subr_prf.c:154 unveil_destroy(ffff800020b7c380) at unveil_destroy+0x1a9 sys/kern/kern_unveil.c:202 exit1(ffff800020b29650,0,1) at exit1+0x38f sys/kern/kern_exit.c:218 sys_exit(ffff800020b29650,ffff800020b8b130,ffff800020b8b1a0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020b8b210) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b8b210) at syscall+0x552 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,1,0,1,0,7f7ffffc58e4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc58b0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020b8af40 rbx 0xffff800020b8aff0 rdx 0xffff800020b29650 rcx 0 rax 0 r8 0xffffffff817a64c3 kprintf+0x173 r9 0x1 r10 0x25 r11 0x27453cf3464c99cd r12 0x3000000008 r13 0xffff800020b8af50 r14 0x100 r15 0x1 rip 0xffffffff81974458 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b8af30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=285832 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020aff8b8,0xffffffff823ab6f0 process=0xffff800020b7c380 user=0xffff800020b86000, vmspace=0xfffffd807effd450 estcpu=36, cpticks=7, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 1291 508891 1 0 3 0x100083 ttyin getty 93744 111972 0 0 3 0x14200 bored sosplice 42108 84 22977 0 3 0x82 nanosleep syz-executor.0 22977 373898 46614 0 3 0x82 thrsleep syz-fuzzer 22977 494381 46614 0 3 0x4000082 nanosleep syz-fuzzer 22977 112254 46614 0 3 0x4000082 thrsleep syz-fuzzer 22977 104522 46614 0 7 0x4000002 syz-fuzzer 22977 497202 46614 0 3 0x4000082 thrsleep syz-fuzzer 22977 259915 46614 0 3 0x4000082 thrsleep syz-fuzzer 22977 113013 46614 0 3 0x4000082 kqread syz-fuzzer 22977 496841 46614 0 3 0x4000082 thrsleep syz-fuzzer 22977 294780 46614 0 3 0x4000082 thrsleep syz-fuzzer 22977 412730 46614 0 2 0x4000002 syz-fuzzer 46614 266831 28954 0 3 0x10008a pause ksh 28954 412149 54682 0 3 0x92 select sshd 54682 117672 1 0 3 0x80 select sshd 75825 391707 19591 74 3 0x100092 bpf pflogd 19591 119161 1 0 3 0x80 netio pflogd 1913 371821 76118 73 3 0x100090 kqread syslogd 76118 283656 1 0 3 0x100082 netio syslogd 22808 320818 1 77 3 0x100090 poll dhclient 46483 35247 1 0 3 0x80 poll dhclient 398 113257 0 0 2 0x14200 zerothread 2222 335798 0 0 3 0x14200 aiodoned aiodoned 17846 422654 0 0 3 0x14200 syncer update 82236 396086 0 0 3 0x14200 cleaner cleaner 6984 388595 0 0 3 0x14200 reaper reaper 99917 219352 0 0 3 0x14200 pgdaemon pagedaemon 26764 416742 0 0 3 0x14200 bored crynlk 58630 122402 0 0 3 0x14200 bored crypto 68404 384632 0 0 3 0x40014200 acpi0 acpi0 50833 27817 0 0 3 0x40014200 idle1 48137 482906 0 0 3 0x14200 bored softnet 28349 319754 0 0 3 0x14200 bored systqmp 10620 196834 0 0 3 0x14200 bored systq 28716 418980 0 0 2 0x40014200 softclock 14057 12969 0 0 3 0x40014200 idle0 93499 388438 0 0 3 0x14200 bored smr 1 281465 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 9563 6450K 6962K 78643K 16402 0 0 pcb 13 8K 8K 78643K 181 0 0 rtable 86 3K 4K 78643K 680 0 0 ifaddr 69 15K 17K 78643K 298 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1578 0 0 iov 0 0K 28K 78643K 232 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1210 76K 77K 78643K 3233 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 28 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 241 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 3 5K 25K 78643K 2142 0 0 sigio 0 0K 0K 78643K 37 0 0 proc 57 63K 83K 78643K 694 0 0 subproc 16 1K 2K 78643K 55 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 198 0 0 in_multi 22 1K 2K 78643K 135 0 0 ether_multi 1 0K 0K 78643K 19 0 0 mrt 0 0K 0K 78643K 21 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 391 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 93 13K 25K 78643K 8025 0 0 UVM aobj 112 3K 3K 78643K 119 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 116 0 0 NDP 16 0K 0K 78643K 82 0 0 temp 184 2747K 2816K 78643K 10124 0 0 kqueue 0 0K 0K 78643K 26 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 9 0 5 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 81 0 79 1 0 1 1 0 8 0 rtentry 112 67 0 34 2 0 2 2 0 8 0 unpcb 120 710 0 700 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 7482 0 7482 2 2 0 2 0 8 0 tcpcb 544 294 0 288 1 0 1 1 0 8 0 inpcb 280 935 0 928 2 1 1 2 0 8 0 rttmr 72 11 0 11 3 3 0 1 0 8 0 nd6 48 9 0 6 1 0 1 1 0 8 0 pkpcb 40 14 0 14 2 2 0 1 0 8 0 ppxss 1128 42 0 42 8 7 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 37 0 33 1 0 1 1 0 8 0 pfstkey 112 37 0 33 1 0 1 1 0 8 0 pfstate 328 37 0 33 2 1 1 2 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 258 0 113 14 3 11 13 0 8 0 art_table 32 259 0 113 2 0 2 2 0 8 0 art_node 16 64 0 34 1 0 1 1 0 8 0 sysvmsgpl 40 22 0 13 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 239 0 229 1 0 1 1 0 8 0 shmpl 112 117 0 7 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4752 0 3338 47 0 47 47 0 8 0 ffsino 272 4752 0 3338 96 0 96 96 0 8 0 nchpl 144 7905 0 6277 62 0 62 62 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 24548 0 24548 5 4 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 2 0 2 2 2 0 1 0 8 0 scxspl 192 23787 0 23787 19 18 1 6 0 8 1 plimitpl 152 173 0 166 1 0 1 1 0 8 0 sigapl 432 2340 0 2326 3 1 2 3 0 8 0 futexpl 56 25047 0 25047 2 1 1 1 0 8 1 knotepl 112 383 0 370 1 0 1 1 0 8 0 kqueuepl 104 400 0 398 1 0 1 1 0 8 0 pipepl 112 1372 0 1359 2 1 1 1 0 8 0 fdescpl 488 2341 0 2327 3 0 3 3 0 8 0 filepl 152 13537 0 13461 6 1 5 5 0 8 1 lockfpl 104 827 0 827 4 3 1 1 0 8 1 lockfspl 48 298 0 298 4 3 1 1 0 8 1 sessionpl 112 20 0 10 1 0 1 1 0 8 0 pgrppl 48 44 0 34 1 0 1 1 0 8 0 ucredpl 96 2476 0 2467 1 0 1 1 0 8 0 zombiepl 144 2327 0 2326 5 4 1 1 0 8 0 processpl 896 2357 0 2326 4 0 4 4 0 8 0 procpl 632 7139 0 7099 10 5 5 5 0 8 1 srpgc 64 9 0 9 5 5 0 1 0 8 0 sosppl 128 30 0 30 8 8 0 1 0 8 0 sockpl 384 1764 0 1745 5 2 3 3 0 8 1 mcl64k 65536 308 0 0 37 17 20 34 0 8 1 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 11 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 11 0 0 2 0 2 2 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 270 0 0 30 9 21 30 0 8 0 mtagpl 80 24 0 0 1 0 1 1 0 8 0 mbufpl 256 588 0 0 30 0 30 30 0 8 0 bufpl 256 11585 0 4556 440 0 440 440 0 8 0 anonpl 16 243940 0 232163 113 48 65 65 0 125 12 amapchunkpl 152 13701 0 13593 25 16 9 10 0 158 4 amappl16 192 13240 0 12600 108 67 41 45 0 8 8 amappl15 184 287 0 286 1 0 1 1 0 8 0 amappl14 176 55 0 51 1 0 1 1 0 8 0 amappl13 168 14 0 13 2 1 1 1 0 8 0 amappl12 160 761 0 760 2 1 1 1 0 8 0 amappl11 152 68 0 53 1 0 1 1 0 8 0 amappl10 144 75 0 72 1 0 1 1 0 8 0 amappl9 136 1672 0 1668 1 0 1 1 0 8 0 amappl8 128 1226 0 1200 1 0 1 1 0 8 0 amappl7 120 49 0 43 1 0 1 1 0 8 0 amappl6 112 61 0 53 1 0 1 1 0 8 0 amappl5 104 902 0 888 1 0 1 1 0 8 0 amappl4 96 1862 0 1833 2 1 1 2 0 8 0 amappl3 88 998 0 988 1 0 1 1 0 8 0 amappl2 80 18237 0 18163 4 1 3 3 0 8 0 amappl1 72 60955 0 60514 26 16 10 20 0 8 0 amappl 80 7421 0 7385 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 118 0 7 2 0 2 2 0 8 0 uaddrrnd 24 2341 0 2326 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2341 0 2326 1 0 1 1 0 8 0 vmmpekpl 168 23227 0 23199 2 0 2 2 0 8 0 vmmpepl 168 293705 0 291987 187 93 94 99 0 357 11 vmsppl 368 2340 0 2326 2 0 2 2 0 8 0 pdppl 4096 4690 0 4652 6 0 6 6 0 8 0 pvpl 32 641110 0 626207 255 95 160 160 0 265 35 pmappl 232 2340 0 2326 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 673 0 36 19 0 19 19 0 8 0