panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c", line 188 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8278636d) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff82801704,ffffffff8277d011,bc,ffffffff8279d46b) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff8000231547e8) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff80002170b560,0,0,1) at exit1+0x3b8 sys/kern/kern_exit.c:222 sys_exit(ffff80002170b560,ffff800027fbfd40,ffff800027fbfd90) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff800027fbfe10) at syscall+0x4a8 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x76959e8901c0, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c", line 188 ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8278636d) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff82801704,ffffffff8277d011,bc,ffffffff8279d46b) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff8000231547e8) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff80002170b560,0,0,1) at exit1+0x3b8 sys/kern/kern_exit.c:222 sys_exit(ffff80002170b560,ffff800027fbfd40,ffff800027fbfd90) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff800027fbfe10) at syscall+0x4a8 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x76959e8901c0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800027fbfb50 rbx 0x2 rdx 0 rcx 0 rax 0xffff80002170b560 r8 0 r9 0x8080808080808080 r10 0xc2fd7374e5a7624 r11 0x5b7c0960633ce41d r12 0 r13 0xffff8000231547e8 r14 0 r15 0x1 rip 0xffffffff81de1e5c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff800027fbfb40 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) tid=216584 pid=74878 tcnt=1 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=84, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002170b560 forw=0xffffffffffffffff, list=0xffff800027fca2b8,0xffff800027fc9d78 process=0xffff8000231547e8 user=0xffff800027fba000, vmspace=0xfffffd80073ad008 estcpu=34, cpticks=4, pctcpu=0.1, user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 10845 368976 21423 0 3 0 futex syz-executor.1 10845 107104 21423 0 3 0x4000080 fsleep syz-executor.1 10845 517146 21423 0 3 0x4000080 fsleep syz-executor.1 93671 404006 68614 0 3 0x3000 suspend syz-executor.6 93671 92389 68614 0 3 0x4081000 futex syz-executor.6 23119 237289 78276 0 2 0 syz-executor.2 23119 54528 78276 0 3 0x4000080 fsleep syz-executor.2 23119 324675 78276 0 2 0x4000000 syz-executor.2 51164 35762 56734 0 2 0 syz-executor.4 51164 395826 56734 0 3 0x4000000 futex syz-executor.4 51164 31663 56734 0 2 0x4000000 syz-executor.4 11640 517139 58709 0 2 0x2 syz-executor.3 63557 172900 0 0 3 0x14280 nfsidl nfsio 34497 368746 0 0 3 0x14280 nfsidl nfsio 49019 63639 0 0 3 0x14280 nfsidl nfsio 41426 177604 0 0 3 0x14280 nfsidl nfsio 63521 177008 0 0 3 0x14280 nfsidl nfsio 83443 430427 0 0 3 0x14280 nfsidl nfsio 32422 389598 0 0 3 0x14280 nfsidl nfsio 49622 493217 0 0 3 0x14280 nfsidl nfsio 56588 254328 0 0 3 0x14280 nfsidl nfsio 40339 437214 0 0 3 0x14280 nfsidl nfsio 62735 229837 0 0 3 0x14280 nfsidl nfsio 73976 200875 0 0 3 0x14280 nfsidl nfsio 40353 514875 0 0 3 0x14280 nfsidl nfsio 14638 214998 0 0 3 0x14280 nfsidl nfsio 69227 31999 0 0 3 0x14280 nfsidl nfsio 50241 228000 0 0 3 0x14280 nfsidl nfsio 18407 415633 0 0 3 0x14280 nfsidl nfsio 39352 410207 0 0 3 0x14280 nfsidl nfsio 20581 340360 0 0 3 0x14280 nfsidl nfsio 35029 97935 0 0 3 0x14280 nfsidl nfsio 9119 71268 0 0 3 0x14200 acct acct 78276 140720 58709 0 2 0x482 syz-executor.2 61898 215779 58709 0 2 0x2 syz-executor.5 98985 413859 58709 0 2 0x2 syz-executor.7 68614 125738 58709 0 2 0x482 syz-executor.6 21423 425462 58709 0 2 0x482 syz-executor.1 19857 208846 58709 0 2 0x482 syz-executor.0 48163 399236 1 0 3 0x100083 ttyopn getty 56734 378382 58709 0 2 0x482 syz-executor.4 40424 269439 0 0 3 0x14200 bored sosplice 58709 85314 53027 0 3 0x2000082 thrsleep syz-fuzzer 58709 85516 53027 0 3 0x6000082 nanoslp syz-fuzzer 58709 445980 53027 0 3 0x6000082 wait syz-fuzzer 58709 115140 53027 0 3 0x6000082 wait syz-fuzzer 58709 397725 53027 0 3 0x6000082 wait syz-fuzzer 58709 95795 53027 0 3 0x6000082 thrsleep syz-fuzzer 58709 167381 53027 0 3 0x6000082 kqread syz-fuzzer 58709 322201 53027 0 3 0x6000082 wait syz-fuzzer 58709 396196 53027 0 3 0x6000082 wait syz-fuzzer 58709 403670 53027 0 3 0x6000082 wait syz-fuzzer 58709 282963 53027 0 3 0x6000082 thrsleep syz-fuzzer 58709 166232 53027 0 3 0x6000082 wait syz-fuzzer 58709 338544 53027 0 3 0x6000082 wait syz-fuzzer 58709 347863 53027 0 3 0x6000082 thrsleep syz-fuzzer 53027 343071 83439 0 3 0x10008a sigsusp ksh 83439 204127 16709 0 3 0x9a kqread sshd 16709 105951 1 0 3 0x88 kqread sshd 55606 456067 8907 73 3 0x1100090 kqread syslogd 8907 361380 1 0 3 0x100082 netio syslogd 38011 41112 1 0 3 0x100080 kqread resolvd 96198 103654 70768 77 3 0x100092 kqread dhcpleased 57655 473061 70768 77 3 0x100092 kqread dhcpleased 70768 112972 1 0 3 0x80 kqread dhcpleased 67316 507336 0 0 3 0x14200 bored smr 80872 376207 0 0 2 0x14200 zerothread 684 231142 0 0 3 0x14200 aiodoned aiodoned 1191 499648 0 0 3 0x14200 syncer update 63277 24187 0 0 3 0x14200 cleaner cleaner 40319 188515 0 0 2 0x14200 reaper 72727 84395 0 0 3 0x14200 pgdaemon pagedaemon 47353 303964 0 0 3 0x14200 bored viomb 19593 488611 0 0 3 0x40014200 acpi0 acpi0 88658 521011 0 0 3 0x14200 bored softnet3 45172 416706 0 0 3 0x14200 bored softnet2 50878 144042 0 0 3 0x14200 bored softnet1 98218 352792 0 0 3 0x14200 bored softnet0 28126 13720 0 0 3 0x14200 bored systqmp 4394 434438 0 0 3 0x14200 bored systq 25655 89460 0 0 2 0x40014200 softclock 6822 434194 0 0 3 0x40014200 idle0 1 50775 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10208 6498K 8296K 78643K 79301 0 pcb 13 18K 20K 78643K 800 0 rtable 243 7K 7K 78643K 1286 0 pf 32 9K 10K 78643K 407 0 ifaddr 44 13K 14K 78643K 291 0 ifgroup 55 2K 2K 78643K 660 0 sysctl 3 0K 2K 78643K 14 0 counters 29 17K 17K 78643K 200 0 ioctlops 0 0K 2K 78643K 593 0 iov 0 0K 28K 78643K 1460 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1598 100K 100K 78643K 22067 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 3 5K 13K 78643K 264 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 1116 0 dirhash 12 2K 2K 78643K 51 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 16 57K 69K 78643K 13135 0 sigio 0 0K 0K 78643K 474 0 proc 62 75K 75K 78643K 1972 0 subproc 104 6K 6K 78643K 390 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 496 0 in_multi 99 7K 7K 78643K 454 0 ether_multi 1 0K 0K 78643K 19 0 mrt 1 0K 0K 78643K 18 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 223 996K 996K 78643K 223 0 exec 0 0K 1K 78643K 1871 0 pfkey data 0 0K 1K 78643K 6 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 8 62K 64K 78643K 10 0 UVM amap 524 541K 550K 78643K 123781 0 UVM aobj 131 4K 4K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 283 0 NDP 12 0K 1K 78643K 243 0 temp 74 5916K 6052K 78643K 89951 0 kqueue 12 18K 28K 78643K 860 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 448 0 445 5 4 1 3 0 8 0 rtentry 112 381 0 268 5 1 4 4 0 8 0 unpcb 144 10452 0 10435 108 107 1 6 0 8 0 syncache 304 128 0 128 22 22 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 171 0 171 16 16 0 1 0 8 0 tcpcb 808 3199 0 3192 121 119 2 16 0 8 0 arp 88 63 0 45 1 0 1 1 0 8 0 ipq 40 15 0 15 7 7 0 1 0 8 0 ipqe 40 61 0 61 7 7 0 1 0 8 0 inpcb 336 7569 0 7559 162 160 2 15 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 1 0 1 1 1 0 1 0 8 0 nd6 104 103 0 76 1 0 1 1 0 8 0 pkpcb 40 266 0 266 10 10 0 1 0 8 0 kcovpl 48 30 0 22 1 0 1 1 0 8 0 ppxss 1160 56 0 56 14 14 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1464 0 988 39 9 30 30 0 8 0 art_table 32 1465 0 988 4 0 4 4 0 8 0 art_node 16 366 0 263 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 2 1 0 1 1 0 8 0 semapl 112 1114 0 1104 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 43 0 26 3 0 3 3 0 8 0 dino2pl 256 19303 0 17816 94 0 94 94 0 8 0 ffsino 240 19303 0 17816 88 0 88 88 0 8 0 nchpl 144 37842 0 37352 63 41 22 63 0 8 0 uvmvnodes 80 37485 0 0 765 0 765 765 0 8 0 vnodes 216 37485 0 0 2083 0 2083 2083 0 8 0 namei 1024 139014 0 139013 19 17 2 3 0 8 1 vcpupl 2048 170 0 0 22 0 22 22 0 8 0 vmpool 664 267 0 97 17 2 15 15 0 8 0 kstatmem 264 366 0 342 2 0 2 2 0 8 0 scxspl 216 128489 0 128489 37 36 1 8 1 8 1 plimitpl 152 1542 0 1527 1 0 1 1 0 8 0 sigapl 424 13812 0 13746 10 2 8 8 0 8 0 futexpl 64 135778 0 135773 9 8 1 1 0 8 0 knotepl 120 115556 0 115476 31 27 4 11 0 8 0 kqueuepl 184 1927 0 1919 26 25 1 4 0 8 0 pipepl 288 2811 0 2783 72 69 3 10 0 8 0 fdescpl 432 13368 0 13341 6 2 4 4 0 8 0 filepl 120 90789 0 90551 157 149 8 21 0 8 0 lockfpl 104 5033 0 5031 10 9 1 3 0 8 0 lockfspl 48 2005 0 2003 2 1 1 2 0 8 0 sessionpl 144 46 0 30 1 0 1 1 0 8 0 pgrppl 48 401 0 385 1 0 1 1 0 8 0 ucredpl 104 12418 0 12406 1 0 1 1 0 8 0 zombiepl 144 14482 0 14481 4 3 1 1 0 8 0 processpl 1008 13812 0 13746 12 3 9 9 0 8 0 procpl 680 33926 0 33839 25 17 8 11 0 8 0 sosppl 168 130 0 130 19 19 0 1 0 8 0 sockpl 456 18748 0 18718 507 501 6 41 0 8 1 mcl64k 65536 535 0 535 22 22 0 1 0 8 0 mcl16k 16384 282 0 282 26 26 0 1 0 8 0 mcl12k 12288 485 0 485 31 30 1 1 0 8 1 mcl9k 9216 200 0 200 30 30 0 1 0 8 0 mcl8k 8192 1177 0 1177 23 22 1 1 0 8 1 mcl4k 4096 1573 0 1573 20 19 1 2 0 8 1 mcl2k2 2112 111 0 111 22 22 0 1 0 8 0 mcl2k 2048 94674 0 94578 74 57 17 33 0 8 0 mtagpl 96 17170 0 15192 65 16 49 50 0 8 0 mbufpl 256 283992 0 281919 607 467 140 182 0 8 3 bufpl 288 29194 0 22794 458 0 458 458 0 8 0 anonpl 24 1341129 0 1326574 213 107 106 119 0 188 0 amapchunkpl 152 393509 0 392634 128 91 37 48 0 158 0 amappl16 200 26202 0 25673 135 106 29 40 0 8 0 amappl15 192 14 0 14 1 1 0 1 0 8 0 amappl14 184 245 0 232 2 1 1 2 0 8 0 amappl13 176 22 0 21 2 1 1 1 0 8 0 amappl12 168 14317 0 14288 2 0 2 2 0 8 0 amappl11 160 59 0 48 1 0 1 1 0 8 0 amappl10 152 49 0 40 2 1 1 1 0 8 0 amappl9 144 311 0 310 1 0 1 1 0 8 0 amappl8 136 702 0 563 5 0 5 5 0 8 0 amappl7 128 274 0 250 2 0 2 2 0 8 0 amappl6 120 663 0 653 1 0 1 1 0 8 0 amappl5 112 340 0 332 1 0 1 1 0 8 0 amappl4 104 721 0 693 2 1 1 2 0 8 0 amappl3 96 77135 0 77037 3 0 3 3 0 8 0 amappl2 88 14554 0 14481 3 1 2 3 0 8 0 amappl1 80 57003 0 56492 23 12 11 22 0 8 0 amappl 88 122655 0 122386 10 3 7 7 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 130 0 0 3 0 3 3 0 8 0 uaddrrnd 24 13635 0 13437 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 13635 0 13437 2 0 2 2 0 8 0 vmmpekpl 168 91595 0 91511 4 0 4 4 0 8 0 vmmpepl 168 787750 0 785208 302 183 119 139 0 357 0 vmsppl 368 13634 0 13437 23 4 19 19 0 8 0 rwobjpl 24 219755 0 180477 239 2 237 237 0 8 0 pdppl 4096 27276 0 27044 724 490 234 235 0 8 2 pvpl 32 3741577 0 3721244 564 379 185 360 0 265 0 pmappl 216 13634 0 13437 14 2 12 12 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2626 0 1500 35 1 34 34 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8278636d) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff82801704,ffffffff8277d011,bc,ffffffff8279d46b) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff8000231547e8) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff80002170b560,0,0,1) at exit1+0x3b8 sys/kern/kern_exit.c:222 sys_exit(ffff80002170b560,ffff800027fbfd40,ffff800027fbfd90) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff800027fbfe10) at syscall+0x4a8 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x76959e8901c0, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8278636d) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff82801704,ffffffff8277d011,bc,ffffffff8279d46b) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff8000231547e8) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff80002170b560,0,0,1) at exit1+0x3b8 sys/kern/kern_exit.c:222 sys_exit(ffff80002170b560,ffff800027fbfd40,ffff800027fbfd90) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff800027fbfe10) at syscall+0x4a8 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x76959e8901c0, count: -8