panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 196 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 419204 4507 0 0x2 0 1 syz-executor.1 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(ffffffff81f98711,ffffffff81f9cd8c,c4,ffffffff81f5c06e) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b8c9f0) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b38270,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b38270,ffff800020c499a0,ffff800020c49a10) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020c49a80) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c49a80) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffc2d08) 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/multicore/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(ffffffff81f98711,ffffffff81f9cd8c,c4,ffffffff81f5c06e) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b8c9f0) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b38270,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b38270,ffff800020c499a0,ffff800020c49a10) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020c49a80) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c49a80) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffc2d08) at Xsyscall+0x128 end trace frame: 0x0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020c497a0 rbx 0xffff800020c49850 rdx 0xffff800020b38270 rcx 0 rax 0 r8 0xffffffff812d2ac3 kprintf+0x173 r9 0x1 r10 0x25 r11 0x202ea6ee18f3c3e4 r12 0x3000000008 r13 0xffff800020c497b0 r14 0x100 r15 0x1 rip 0xffffffff816ce868 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c49790 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=363614 stat=onproc flags process=1008 proc=2000 pri=50, usrpri=76, nice=20 forw=0xffffffffffffffff, list=0xffff800020b38bd0,0xffffffff82341258 process=0xffff800020b8c9f0 user=0xffff800020c44000, vmspace=0xfffffd807effe438 estcpu=26, cpticks=13, pctcpu=0.8 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 13021 467448 54993 0 3 0x82 piperd syz-executor.0 91308 148967 0 0 3 0x14200 bored sosplice 4507 419204 54993 0 7 0x2 syz-executor.1 54993 482535 76725 0 3 0x82 thrsleep syz-fuzzer 54993 1379 76725 0 3 0x4000082 thrsleep syz-fuzzer 54993 305332 76725 0 3 0x4000082 thrsleep syz-fuzzer 54993 341290 76725 0 3 0x4000082 thrsleep syz-fuzzer 54993 345742 76725 0 3 0x4000082 thrsleep syz-fuzzer 54993 248639 76725 0 3 0x4000082 kqread syz-fuzzer 54993 58724 76725 0 3 0x4000082 thrsleep syz-fuzzer 54993 206762 76725 0 3 0x4000082 thrsleep syz-fuzzer 54993 509223 76725 0 3 0x4000082 thrsleep syz-fuzzer 54993 205783 76725 0 3 0x4000082 thrsleep syz-fuzzer 54993 282859 76725 0 3 0x4000082 thrsleep syz-fuzzer 76725 329711 50114 0 3 0x10008a pause ksh 50114 387233 37641 0 3 0x92 select sshd 21457 472194 1 0 3 0x100083 ttyin getty 37641 311031 1 0 3 0x80 select sshd 6947 518097 19472 74 3 0x100092 bpf pflogd 19472 446099 1 0 3 0x80 netio pflogd 89957 98128 40657 73 3 0x100090 kqread syslogd 40657 366141 1 0 3 0x100082 netio syslogd 24606 203276 1 77 3 0x100090 poll dhclient 35192 477113 1 0 3 0x80 poll dhclient 71437 308619 0 0 3 0x14200 pgzero zerothread 59903 324837 0 0 3 0x14200 aiodoned aiodoned 7657 244635 0 0 3 0x14200 syncer update 20755 210483 0 0 3 0x14200 cleaner cleaner 93401 422988 0 0 3 0x14200 reaper reaper 35719 240833 0 0 3 0x14200 pgdaemon pagedaemon 72175 89425 0 0 3 0x14200 bored crynlk 70280 518310 0 0 3 0x14200 bored crypto 86379 272534 0 0 3 0x40014200 acpi0 acpi0 75344 448033 0 0 3 0x40014200 idle1 99989 505166 0 0 3 0x14200 bored softnet 20169 259612 0 0 3 0x14200 bored systqmp 49705 413376 0 0 3 0x14200 bored systq 93079 216013 0 0 3 0x40014200 bored softclock 95708 204930 0 0 3 0x40014200 idle0 42460 367762 0 0 3 0x14200 bored smr 1 245206 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 9485 6521K 14592K 78643K 11391 0 0 pcb 25 9K 11K 78643K 224 0 0 rtable 108 4K 4K 78643K 334 0 0 ifaddr 46 11K 11K 78643K 79 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1477 0 0 iov 0 0K 12K 78643K 25 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1203 75K 76K 78643K 1508 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 8 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 67 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 4 9K 25K 78643K 333 0 0 sigio 0 0K 0K 78643K 4 0 0 proc 56 63K 91K 78643K 471 0 0 subproc 64 65538K 69634K 78643K 136 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 38 0 0 in_multi 33 2K 2K 78643K 59 0 0 ether_multi 1 0K 0K 78643K 1 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 246 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 85 20K 21K 78643K 1960 0 0 UVM aobj 20 2K 2K 78643K 22 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 8 0 0 NDP 8 0K 0K 78643K 23 0 0 temp 137 2729K 2851K 78643K 6796 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 10 0 4 1 0 1 1 0 8 0 inpcbpl 280 184 0 177 1 0 1 1 0 8 0 plimitpl 152 27 0 19 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 67 0 23 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 72 0 68 1 0 1 1 0 8 0 nd6 48 12 0 6 1 0 1 1 0 8 0 ppxss 1128 4 0 4 2 1 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 19 0 5 1 0 1 1 0 8 0 pfstkey 112 19 0 5 1 0 1 1 0 8 0 pfstate 328 19 0 5 2 0 2 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 276 0 88 12 0 12 12 0 8 0 art_table 32 277 0 88 2 0 2 2 0 8 0 art_node 16 66 0 26 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 63 0 53 1 0 1 1 0 8 0 shmpl 112 20 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1878 0 455 47 0 47 47 0 8 0 ffsino 272 1878 0 455 96 0 96 96 0 8 0 nchpl 144 2513 0 868 62 0 62 62 0 8 0 uvmvnodes 72 2150 0 0 40 0 40 40 0 8 0 vnodes 200 2150 0 0 114 0 114 114 0 8 0 namei 1024 7028 0 7028 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 14461 0 14461 7 6 1 6 0 8 1 sigapl 432 526 0 511 3 1 2 3 0 8 0 futexpl 56 3885 0 3885 1 0 1 1 0 8 1 knotepl 112 136 0 117 1 0 1 1 0 8 0 kqueuepl 104 67 0 65 1 0 1 1 0 8 0 pipepl 112 384 0 365 3 1 2 2 0 8 1 fdescpl 488 527 0 512 4 1 3 3 0 8 1 filepl 152 2884 0 2785 7 0 7 7 0 8 3 lockfpl 104 100 0 100 2 1 1 1 0 8 1 lockfspl 48 33 0 33 2 1 1 1 0 8 1 sessionpl 112 20 0 9 1 0 1 1 0 8 0 pgrppl 48 26 0 15 1 0 1 1 0 8 0 ucredpl 96 293 0 284 1 0 1 1 0 8 0 zombiepl 144 512 0 511 2 1 1 1 0 8 0 processpl 840 543 0 511 4 0 4 4 0 8 0 procpl 600 1168 0 1126 4 0 4 4 0 8 0 srpgc 64 12 0 12 2 1 1 1 0 8 1 sockpl 384 375 0 356 4 0 4 4 0 8 2 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 126 0 0 15 0 15 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 190 0 0 12 1 11 11 0 8 0 bufpl 256 20428 0 14217 390 0 390 390 0 8 0 anonpl 16 55129 0 45821 49 2 47 47 0 125 1 amapchunkpl 152 2842 0 2725 7 1 6 7 0 158 0 amappl16 192 2086 0 1463 32 0 32 32 0 8 0 amappl14 176 52 0 48 2 1 1 1 0 8 0 amappl13 168 150 0 147 1 0 1 1 0 8 0 amappl12 160 18 0 17 1 0 1 1 0 8 0 amappl11 152 53 0 34 1 0 1 1 0 8 0 amappl10 144 78 0 74 1 0 1 1 0 8 0 amappl9 136 646 0 642 1 0 1 1 0 8 0 amappl8 128 187 0 170 1 0 1 1 0 8 0 amappl7 120 45 0 41 1 0 1 1 0 8 0 amappl6 112 64 0 55 1 0 1 1 0 8 0 amappl5 104 140 0 125 1 0 1 1 0 8 0 amappl4 96 778 0 743 2 1 1 2 0 8 0 amappl3 88 131 0 126 1 0 1 1 0 8 0 amappl2 80 3323 0 3266 2 0 2 2 0 8 0 amappl1 72 21619 0 21155 25 15 10 20 0 8 0 amappl 72 1463 0 1422 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 21 0 2 1 0 1 1 0 8 0 uaddrrnd 24 527 0 511 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 527 0 511 1 0 1 1 0 8 0 vmmpekpl 168 8551 0 8528 2 0 2 2 0 8 0 vmmpepl 168 63509 0 61852 126 32 94 110 0 357 18 vmsppl 360 526 0 511 2 0 2 2 0 8 0 pdppl 4096 1062 0 1022 7 1 6 6 0 8 0 pvpl 32 191044 0 178060 128 4 124 124 0 265 8 pmappl 232 526 0 511 2 1 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 546 0 6 16 0 16 16 0 8 0