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(ffffffff82788312) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff82801754,ffffffff8277ea6c,bc,ffffffff8279f4e0) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff800021718fc0) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff8000216e5aa0,0,0,1) at exit1+0x3b8 sys/kern/kern_exit.c:222 sys_exit(ffff8000216e5aa0,ffff8000217621c0,ffff800021762210) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff800021762290) at syscall+0x4a8 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7647825cc7c0, 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(ffffffff82788312) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff82801754,ffffffff8277ea6c,bc,ffffffff8279f4e0) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff800021718fc0) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff8000216e5aa0,0,0,1) at exit1+0x3b8 sys/kern/kern_exit.c:222 sys_exit(ffff8000216e5aa0,ffff8000217621c0,ffff800021762210) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff800021762290) at syscall+0x4a8 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7647825cc7c0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800021761fd0 rbx 0x2 rdx 0 rcx 0 rax 0xffff8000216e5aa0 r8 0 r9 0x8080808080808080 r10 0xaf32db01d750a5 r11 0x598182230c0ca10f r12 0 r13 0xffff800021718fc0 r14 0 r15 0x1 rip 0xffffffff826952ac db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff800021761fc0 ss 0 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (syz-executor.5) tid=359662 pid=59256 tcnt=1 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=84, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff8000216e5aa0 forw=0xffffffffffffffff, list=0xffff8000216e5000,0xffff8000216e67f8 process=0xffff800021718fc0 user=0xffff80002175d000, vmspace=0xfffffd806986e5d0 estcpu=34, cpticks=4, pctcpu=0.1, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 90593 457908 94376 0 3 0 futex syz-executor.6 90593 114014 94376 0 3 0x4000080 lockf syz-executor.6 68508 342683 3657 0 2 0 syz-executor.3 45057 131706 35739 0 3 0 futex syz-executor.0 45057 81349 35739 0 2 0x4000000 syz-executor.0 45057 146460 35739 0 3 0x4000080 fsleep syz-executor.0 45057 188266 35739 0 3 0x4000000 futex syz-executor.0 40257 228965 7168 0 2 0 syz-executor.4 40257 206285 7168 0 2 0x4000000 syz-executor.4 40257 9422 7168 0 3 0x4000080 fsleep syz-executor.4 40257 326638 7168 0 2 0x4000000 syz-executor.4 5698 232849 24871 0 2 0 syz-executor.7 5698 290393 24871 0 3 0x4000080 lockf syz-executor.7 5698 194460 24871 0 3 0x4000080 lockf syz-executor.7 5698 2716 24871 0 3 0x4000000 futex syz-executor.7 81917 166235 64687 0 3 0 futex syz-executor.1 81917 434540 64687 0 3 0x4000080 lockf syz-executor.1 81917 5893 64687 0 3 0x4000080 lockf syz-executor.1 94376 80104 14106 0 2 0x482 syz-executor.6 7168 249521 14106 0 2 0x482 syz-executor.4 35739 245482 14106 0 2 0x2 syz-executor.0 19469 28641 0 0 3 0x14200 acct acct 64687 474661 14106 0 2 0x482 syz-executor.1 40828 181418 1 0 3 0x100083 ttyin getty 84802 312445 14106 0 2 0x2 syz-executor.2 24871 488343 14106 0 2 0x482 syz-executor.7 18898 335999 14106 0 2 0x482 syz-executor.5 59169 397914 0 0 3 0x14200 bored sosplice 3657 127279 14106 0 2 0x482 syz-executor.3 14106 119727 70018 0 3 0x2000082 thrsleep syz-fuzzer 14106 25540 70018 0 3 0x6000082 thrsleep syz-fuzzer 14106 344962 70018 0 3 0x6000082 thrsleep syz-fuzzer 14106 19779 70018 0 3 0x6000082 wait syz-fuzzer 14106 267016 70018 0 3 0x6000082 wait syz-fuzzer 14106 338405 70018 0 3 0x6000082 wait syz-fuzzer 14106 95517 70018 0 3 0x6000082 thrsleep syz-fuzzer 14106 314317 70018 0 3 0x6000082 wait syz-fuzzer 14106 250870 70018 0 3 0x6000082 wait syz-fuzzer 14106 173309 70018 0 3 0x6000082 wait syz-fuzzer 14106 390838 70018 0 3 0x6000082 thrsleep syz-fuzzer 14106 241267 70018 0 3 0x6000082 kqread syz-fuzzer 14106 499654 70018 0 3 0x6000082 wait syz-fuzzer 14106 103180 70018 0 3 0x6000082 wait syz-fuzzer 70018 280200 2974 0 3 0x10008a sigsusp ksh 2974 147854 81678 0 3 0x9a kqread sshd 81678 186393 1 0 3 0x88 kqread sshd 37042 33478 62232 73 3 0x1100090 kqread syslogd 62232 267628 1 0 3 0x100082 netio syslogd 9550 390245 1 0 3 0x100080 kqread resolvd 3095 235698 38658 77 3 0x100092 kqread dhcpleased 24700 250411 38658 77 3 0x100092 kqread dhcpleased 38658 489093 1 0 3 0x80 kqread dhcpleased 12817 475334 0 0 3 0x14200 bored smr 12348 474024 0 0 2 0x14200 zerothread 1215 141893 0 0 3 0x14200 aiodoned aiodoned 34548 368408 0 0 3 0x14200 syncer update 50893 128578 0 0 3 0x14200 cleaner cleaner 88735 255451 0 0 2 0x14200 reaper 24748 507043 0 0 3 0x14200 pgdaemon pagedaemon 97865 191036 0 0 3 0x14200 bored viomb 80970 193290 0 0 3 0x40014200 acpi0 acpi0 76887 237215 0 0 3 0x14200 bored softnet3 90195 366484 0 0 3 0x14200 bored softnet2 51504 48479 0 0 3 0x14200 bored softnet1 45526 522378 0 0 3 0x14200 bored softnet0 73136 410050 0 0 3 0x14200 bored systqmp 99563 494761 0 0 3 0x14200 bored systq 97257 456331 0 0 2 0x40014200 softclock 45909 40700 0 0 3 0x40014200 idle0 1 73719 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 6430K 7521K 78643K 16051 0 pcb 13 14K 16K 78643K 586 0 rtable 243 7K 7K 78643K 1541 0 pf 32 9K 9K 78643K 274 0 ifaddr 44 12K 13K 78643K 226 0 ifgroup 55 2K 2K 78643K 431 0 sysctl 4 1K 1K 78643K 8 0 counters 29 17K 17K 78643K 137 0 ioctlops 0 0K 2K 78643K 424 0 iov 0 0K 24K 78643K 1117 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1516 95K 95K 78643K 6505 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 3 5K 9K 78643K 156 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 1086 0 dirhash 12 2K 2K 78643K 39 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 17 61K 73K 78643K 13797 0 sigio 0 0K 0K 78643K 309 0 proc 62 75K 91K 78643K 1965 0 subproc 104 6K 8K 78643K 448 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 324 0 in_multi 99 7K 7K 78643K 469 0 ether_multi 1 0K 0K 78643K 19 0 mrt 1 0K 0K 78643K 10 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 247 1102K 1102K 78643K 247 0 exec 0 0K 1K 78643K 1721 0 pfkey data 0 0K 0K 78643K 2 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 491 531K 535K 78643K 144277 0 UVM aobj 131 6K 6K 78643K 134 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 328 0 NDP 12 0K 1K 78643K 180 0 temp 74 5916K 6044K 78643K 99456 0 kqueue 13 20K 26K 78643K 673 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 531 0 528 8 7 1 3 0 8 0 rtentry 112 383 0 270 4 0 4 4 0 8 0 unpcb 144 12930 0 12913 138 137 1 10 0 8 0 syncache 304 136 0 136 30 30 0 1 0 8 0 tcpqe 32 455 0 455 22 22 0 1 0 8 0 tcpcb 808 4288 0 4284 141 140 1 14 0 8 0 arp 88 63 0 45 1 0 1 1 0 8 0 ipq 40 51 0 51 6 6 0 1 0 8 0 ipqe 40 189 0 189 6 6 0 1 0 8 0 inpcb 336 8048 0 8040 142 141 1 12 0 8 0 nd6 104 107 0 80 1 0 1 1 0 8 0 pkpcb 40 3440 0 3439 51 50 1 2 0 8 0 kcovpl 48 30 0 22 1 0 1 1 0 8 0 ppxss 1160 41 0 41 12 12 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1500 0 1011 33 2 31 31 0 8 0 art_table 32 1501 0 1011 4 0 4 4 0 8 0 art_node 16 370 0 267 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 8 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 1079 0 1069 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 35 0 18 3 0 3 3 0 8 0 dino2pl 256 20475 0 18973 95 0 95 95 0 8 0 ffsino 240 20475 0 18973 89 0 89 89 0 8 0 nchpl 144 39602 0 37957 63 0 63 63 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 142804 0 142804 13 12 1 3 0 8 1 vcpupl 2048 125 0 0 16 0 16 16 0 8 0 vmpool 664 153 0 28 11 0 11 11 0 8 0 kstatmem 264 240 0 216 2 0 2 2 0 8 0 scxspl 216 112850 0 112850 47 46 1 8 1 8 1 plimitpl 152 2590 0 2573 1 0 1 1 0 8 0 sigapl 424 14236 0 14189 8 0 8 8 0 8 0 futexpl 64 134882 0 134879 1 0 1 1 0 8 0 knotepl 120 128462 0 128381 33 26 7 11 0 8 4 kqueuepl 184 2392 0 2383 32 31 1 7 0 8 0 pipepl 288 2715 0 2687 87 84 3 7 0 8 0 fdescpl 432 14036 0 14008 4 0 4 4 0 8 0 filepl 120 95257 0 95011 165 156 9 18 0 8 0 lockfpl 104 13447 0 13439 9 8 1 3 0 8 0 lockfspl 48 1949 0 1946 2 1 1 2 0 8 0 sessionpl 144 48 0 32 1 0 1 1 0 8 0 pgrppl 48 3384 0 3367 1 0 1 1 0 8 0 ucredpl 104 20711 0 20698 1 0 1 1 0 8 0 zombiepl 144 19107 0 19106 4 3 1 1 0 8 0 processpl 1008 14236 0 14189 10 1 9 9 0 8 0 procpl 680 43237 0 43164 39 32 7 10 0 8 0 sosppl 168 121 0 120 23 22 1 1 0 8 0 sockpl 456 25237 0 25205 722 713 9 45 0 8 3 mcl64k 65536 510 0 510 45 45 0 1 0 8 0 mcl16k 16384 243 0 243 44 44 0 1 0 8 0 mcl12k 12288 673 0 673 54 54 0 1 0 8 0 mcl9k 9216 203 0 203 48 48 0 1 0 8 0 mcl8k 8192 1005 0 1005 54 53 1 6 0 8 1 mcl4k 4096 1834 0 1834 24 23 1 2 0 8 1 mcl2k2 2112 97 0 97 47 47 0 1 0 8 0 mcl2k 2048 94060 0 94003 104 96 8 48 0 8 0 mtagpl 96 574 0 565 14 11 3 13 0 8 0 mbufpl 256 281654 0 281564 685 668 17 142 0 8 0 bufpl 288 29534 0 23130 458 0 458 458 0 8 0 anonpl 24 1374999 0 1360539 209 111 98 112 0 188 0 amapchunkpl 152 452959 0 452036 116 78 38 44 0 158 1 amappl16 200 25993 0 25544 138 113 25 37 0 8 0 amappl15 192 8 0 8 2 2 0 1 0 8 0 amappl14 184 227 0 211 2 1 1 2 0 8 0 amappl13 176 16 0 15 1 0 1 1 0 8 0 amappl12 168 14992 0 14962 2 0 2 2 0 8 0 amappl11 160 59 0 47 1 0 1 1 0 8 0 amappl10 152 49 0 39 2 1 1 1 0 8 0 amappl9 144 466 0 465 1 0 1 1 0 8 0 amappl8 136 531 0 418 4 0 4 4 0 8 0 amappl7 128 103 0 87 2 0 2 2 0 8 0 amappl6 120 468 0 445 2 1 1 2 0 8 0 amappl5 112 470 0 462 1 0 1 1 0 8 0 amappl4 104 808 0 772 4 3 1 2 0 8 0 amappl3 96 88694 0 88598 3 0 3 3 0 8 0 amappl2 88 14909 0 14842 3 1 2 3 0 8 0 amappl1 80 59885 0 59376 22 11 11 22 0 8 0 amappl 88 143281 0 143005 8 1 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 133 0 3 3 0 3 3 0 8 0 uaddrrnd 24 14188 0 14035 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 14188 0 14035 1 0 1 1 0 8 0 vmmpekpl 168 112612 0 112532 4 0 4 4 0 8 0 vmmpepl 168 847194 0 844703 300 185 115 135 0 357 0 vmsppl 368 14188 0 14035 17 2 15 15 0 8 0 rwobjpl 24 217661 0 210036 50 2 48 48 0 8 0 pdppl 4096 28382 0 28195 1098 909 189 191 0 8 2 pvpl 32 3640599 0 3620741 481 306 175 358 0 265 0 pmappl 216 14188 0 14035 9 0 9 9 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 3191 0 2253 30 1 29 30 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(ffffffff82788312) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff82801754,ffffffff8277ea6c,bc,ffffffff8279f4e0) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff800021718fc0) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff8000216e5aa0,0,0,1) at exit1+0x3b8 sys/kern/kern_exit.c:222 sys_exit(ffff8000216e5aa0,ffff8000217621c0,ffff800021762210) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff800021762290) at syscall+0x4a8 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7647825cc7c0, 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(ffffffff82788312) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff82801754,ffffffff8277ea6c,bc,ffffffff8279f4e0) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff800021718fc0) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff8000216e5aa0,0,0,1) at exit1+0x3b8 sys/kern/kern_exit.c:222 sys_exit(ffff8000216e5aa0,ffff8000217621c0,ffff800021762210) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff800021762290) at syscall+0x4a8 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7647825cc7c0, count: -8