panic: kernel diagnostic assertion "ps->ps_uvncount == 0" faile d: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c ", line 188 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b2cf8) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83067aec,ffffffff83033caf,bc,ffffffff82fe6f08) at __assert+0x29 unveil_destroy(ffff800037646268) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a47b6f8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a47b6f8,ffff8000375ffc60,ffff8000375ffbb0) at sys_exit+0x1a syscall(ffff8000375ffc60) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c720417f200, count: 7 https://www.openbsd.org/ddb.html describes the minimum info req uired in bug reports. Insufficient info makes it difficult to find and fix b ugs. 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+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b2cf8) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83067aec,ffffffff83033caf,bc,ffffffff82fe6f08) at __assert+0x29 unveil_destroy(ffff800037646268) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a47b6f8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a47b6f8,ffff8000375ffc60,ffff8000375ffbb0) at sys_exit+0x1a syscall(ffff8000375ffc60) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c720417f200, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000375ff9b0 rbx 0xffff800037646268 rdx 0 rcx 0 rax 0xffff80002a47b6f8 r8 0 r9 0x8080808080808080 r10 0xa3eac1b6c83d6bd1 r11 0xf02a55fd3d91aa7c r12 0 r13 0x2 r14 0 r15 0x1 rip 0xffffffff8143fa95 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000375ff9a0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=135200 pid=54384 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a47b6f8 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a4e31d8,0xffff800037630038 process=0xffff800037646268 user=0xffff8000375fa000, vmspace=0xfffffd806c11e168 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 62910 350192 58194 0 2 0 syz-executor 62910 511851 58194 0 3 0x4000080 fsleep syz-executor 62910 150145 58194 0 2 0x4000000 syz-executor 92965 309899 92258 0 2 0 syz-executor 92965 112567 92258 0 2 0x4000000 syz-executor 92965 78394 92258 0 3 0x4000080 fsleep syz-executor 70873 177481 92717 0 3 0 vmmaplk syz-executor 70873 391539 92717 0 2 0x4000000 syz-executor 70873 426009 92717 0 2 0x4000000 syz-executor 70607 146929 55113 0 2 0 syz-executor 70607 383130 55113 0 3 0x4000080 sbwait syz-executor 70607 374681 55113 0 2 0x4000000 syz-executor 97258 4694 85772 0 3 0x82 wait syz-executor 55113 211908 85772 0 2 0x3 syz-executor 58873 183791 85772 0 2 0x2 syz-executor 16388 282136 85772 0 2 0x482 syz-executor 92717 21143 85772 0 2 0x3 syz-executor 58194 55586 85772 0 2 0x3 syz-executor 92258 407491 85772 0 2 0x3 syz-executor 24018 58471 85772 0 2 0x2 syz-executor 49299 424258 1 0 3 0x100083 ttyin getty 76016 94366 0 0 3 0x14280 nfsidl nfsio 69806 515477 0 0 3 0x14280 nfsidl nfsio 85294 291836 0 0 3 0x14280 nfsidl nfsio 85534 238544 0 0 3 0x14280 nfsidl nfsio 30459 109628 0 0 3 0x14280 nfsidl nfsio 37108 372576 0 0 3 0x14280 nfsidl nfsio 53841 270900 0 0 3 0x14280 nfsidl nfsio 39451 99257 0 0 3 0x14280 nfsidl nfsio 47693 450149 0 0 3 0x14280 nfsidl nfsio 82625 458471 0 0 3 0x14280 nfsidl nfsio 23115 419150 0 0 3 0x14280 nfsidl nfsio 38322 462232 0 0 3 0x14280 nfsidl nfsio 45311 347293 0 0 3 0x14280 nfsidl nfsio 22200 165971 0 0 3 0x14280 nfsidl nfsio 71408 520655 0 0 3 0x14280 nfsidl nfsio 43130 30198 0 0 3 0x14280 nfsidl nfsio 90758 40103 0 0 3 0x14280 nfsidl nfsio 24015 255253 0 0 3 0x14280 nfsidl nfsio 13942 448368 0 0 3 0x14280 nfsidl nfsio 40355 421843 0 0 3 0x14280 nfsidl nfsio 74478 221083 0 0 3 0x14200 bored sosplice 85772 38989 28560 0 3 0x82 kqread syz-executor 28560 64710 82112 0 3 0x10008a sigsusp ksh 82112 418004 46679 0 3 0x98 kqread sshd-session 46679 18293 75271 0 3 0x92 kqread sshd-session 75271 43217 1 0 3 0x88 kqread sshd 25206 353879 76916 73 2 0x1100010 syslogd 76916 157202 1 0 3 0x100082 sbwait syslogd 79875 234720 1 0 3 0x100080 kqread resolvd 67786 151311 31546 77 3 0x100092 kqread dhcpleased 7537 314732 31546 77 3 0x100092 kqread dhcpleased 31546 231310 1 0 3 0x80 kqread dhcpleased 27439 133604 0 0 3 0x14200 bored smr 46067 323725 0 0 2 0x14200 zerothread 39807 466479 0 0 3 0x14200 aiodoned aiodoned 27857 122874 0 0 3 0x14200 syncer update 99630 316126 0 0 3 0x14200 cleaner cleaner 57418 227623 0 0 2 0x14200 reaper 28505 494894 0 0 3 0x14200 pgdaemon pagedaemon 8547 153349 0 0 3 0x14200 bored viomb 36184 144782 0 0 3 0x40014200 acpi0 acpi0 67970 477366 0 0 3 0x14200 bored softnet3 48633 359093 0 0 3 0x14200 bored softnet2 9146 176855 0 0 3 0x14200 bored softnet1 61879 428236 0 0 3 0x14200 bored softnet0 5645 452471 0 0 3 0x14200 bored systqmp 2136 493556 0 0 3 0x14200 bored systq 25695 49722 0 0 3 0x40014200 tmoslp softclock 24874 410517 0 0 3 0x40014200 idle0 1 407731 0 0 3 0x80082 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 10190 11180K 11471K 166960K 12945 0 pcb 17 16K 18K 166960K 422 0 rtable 227 7K 8K 166960K 3309 0 pf 36 14K 17K 166960K 248 0 ifaddr 43 8K 8K 166960K 418 0 ifgroup 54 2K 2K 166960K 423 0 sysctl 3 0K 0K 166960K 4 0 counters 31 17K 17K 166960K 128 0 ioctlops 0 0K 4K 166960K 354 0 iov 0 0K 24K 166960K 171 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1466 92K 93K 166960K 3456 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 29 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 84 0 dirhash 15 2K 3K 166960K 39 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 16 57K 97K 166960K 2601 0 sigio 0 0K 0K 166960K 175 0 proc 65 75K 124K 166960K 3026 0 subproc 104 6K 7K 166960K 1222 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 207 0 in_multi 99 7K 7K 166960K 1142 0 ether_multi 1 0K 0K 166960K 15 0 mrt 0 0K 0K 166960K 4 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 1730 0 pfkey data 0 0K 4K 166960K 3 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 213 72K 90K 166960K 20535 0 UVM aobj 38 6K 6K 166960K 42 0 pinsyscall 38 76K 96K 166960K 5864 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 47 0 NDP 12 0K 2K 166960K 305 0 temp 78 6815K 6900K 166960K 62848 0 kqueue 13 20K 31K 166960K 261 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 366 0 363 3 1 2 2 0 8 1 rtentry 112 1216 0 1113 5 1 4 4 0 8 0 unpcb 144 1415 0 1398 16 10 6 6 0 8 5 syncache 336 10 0 10 3 2 1 1 0 8 1 tcpqe 32 9 0 9 3 2 1 1 0 8 1 tcpcb 808 490 0 486 12 8 4 7 0 8 3 arp 88 231 0 213 1 0 1 1 0 8 0 ipq 40 8 0 7 1 0 1 1 0 8 0 ipqe 40 127 0 126 1 0 1 1 0 8 0 inpcb 336 2593 0 2586 24 15 9 10 0 8 8 nd6 104 298 0 274 1 0 1 1 0 8 0 pkpcb 40 72 0 72 2 1 1 1 0 8 1 kcovpl 48 94 0 86 1 0 1 1 0 8 0 ppxss 1072 10 0 10 3 2 1 1 0 8 1 pfstscr 40 6 0 5 2 1 1 1 0 8 0 pfrktable 1344 2 0 2 2 2 0 1 0 8 0 pftag 88 2 0 2 1 1 0 1 0 8 0 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 11 0 8 2 1 1 1 0 8 0 pfstate 344 6 0 4 2 1 1 1 0 8 0 pfrule 1344 6 0 5 2 1 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 4701 0 4250 34 5 29 29 0 8 0 art_table 32 4703 0 4250 4 0 4 4 0 8 0 art_node 16 1212 0 1119 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 8 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 81 0 71 1 0 1 1 0 8 0 shmpl 112 39 0 4 1 0 1 1 0 8 0 dirhash 1024 35 0 16 3 0 3 3 0 8 0 dino2pl 256 3870 0 2216 104 0 104 104 0 8 0 ffsino 240 3870 0 2216 98 0 98 98 0 8 0 nchpl 144 5840 0 4049 67 0 67 67 0 8 0 uvmvnodes 80 5734 0 0 118 0 118 118 0 8 0 vnodes 216 5734 0 0 319 0 319 319 0 8 0 namei 1024 30436 0 30434 5 3 2 2 0 8 1 kstatmem 264 218 0 194 2 0 2 2 0 8 0 scsiplug 72 7 0 7 3 2 1 1 0 8 1 scxspl 216 56005 0 56005 9 8 1 8 1 8 1 plimitpl 152 537 0 521 1 0 1 1 0 8 0 sigapl 424 2735 0 2669 9 1 8 8 0 8 0 futexpl 64 19312 0 19309 1 0 1 1 0 8 0 knotepl 120 52261 0 52214 45 35 10 17 0 8 8 kqueuepl 184 587 0 578 7 4 3 4 0 8 2 pipepl 288 622 0 595 10 7 3 7 0 8 0 fdescpl 432 2694 0 2666 5 1 4 5 0 8 0 filepl 120 15732 0 15489 20 5 15 15 0 8 7 lockfpl 104 634 0 632 3 2 1 2 0 8 0 lockfspl 48 228 0 226 1 0 1 1 0 8 0 sessionpl 144 108 0 100 1 0 1 1 0 8 0 pgrppl 48 230 0 214 1 0 1 1 0 8 0 ucredpl 104 2360 0 2349 1 0 1 1 0 8 0 zombiepl 144 2985 0 2983 3 2 1 1 0 8 0 processpl 1096 2735 0 2669 6 0 6 6 0 8 0 procpl 648 4726 0 4649 9 1 8 8 0 8 1 sosppl 168 10 0 10 2 1 1 1 0 8 1 sockpl 504 4469 0 4441 93 81 12 35 0 8 8 mcl64k 65536 35 0 35 3 2 1 1 0 8 1 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl12k 12288 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 51 0 51 3 2 1 1 0 8 1 mcl4k 4096 4475 0 4421 16 7 9 14 0 8 1 mcl2k2 2112 1 0 1 1 1 0 1 0 8 0 mcl2k 2048 3369 0 3366 7 4 3 4 0 8 1 mtagpl 96 140 0 137 3 2 1 2 0 8 0 mbufpl 256 25783 0 25606 29 11 18 22 0 8 6 bufpl 280 9729 0 2749 499 0 499 499 0 8 0 anonpl 24 409809 0 406605 147 51 96 96 0 187 64 amapchunkpl 152 73857 0 73414 87 39 48 48 0 158 29 amappl16 200 7040 0 7020 38 27 11 14 0 8 8 amappl15 192 8 0 8 2 2 0 1 0 8 0 amappl14 184 282 0 272 1 0 1 1 0 8 0 amappl13 176 15 0 15 1 1 0 1 0 8 0 amappl12 168 4673 0 4644 3 1 2 3 0 8 0 amappl11 160 45 0 35 1 0 1 1 0 8 0 amappl10 152 13 0 13 1 1 0 1 0 8 0 amappl9 144 145 0 145 1 1 0 1 0 8 0 amappl8 136 27 0 26 1 0 1 1 0 8 0 amappl7 128 287 0 277 1 0 1 1 0 8 0 amappl6 120 1023 0 1022 1 0 1 1 0 8 0 amappl5 112 469 0 461 1 0 1 1 0 8 0 amappl4 104 538 0 524 1 0 1 1 0 8 0 amappl3 96 12502 0 12402 5 1 4 4 0 8 1 amappl2 88 1860 0 1796 2 0 2 2 0 8 0 amappl1 80 19898 0 19382 13 1 12 13 0 8 0 amappl 88 19429 0 19271 6 1 5 5 0 92 0 dma65536 65536 1 0 1 1 1 0 1 0 8 0 dma8192 8192 1 0 1 1 1 0 1 0 8 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 254 0 254 2 2 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 41 0 4 1 0 1 1 0 8 0 uaddrrnd 24 2694 0 2665 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2694 0 2665 1 0 1 1 0 8 0 vmmpekpl 168 21582 0 21528 3 0 3 3 0 8 0 vmmpepl 168 168588 0 166908 101 13 88 88 0 357 11 vmsppl 344 2693 0 2665 4 1 3 4 0 8 0 rwobjpl 24 53408 0 46807 41 0 41 41 0 8 0 pdppl 4096 5394 0 5330 220 154 66 82 0 8 2 pvpl 32 1260646 0 1251421 546 264 282 282 0 265 194 pmappl 216 2693 0 2665 3 1 2 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 672 0 306 12 0 12 12 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b2cf8) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83067aec,ffffffff83033caf,bc,ffffffff82fe6f08) at __assert+0x29 unveil_destroy(ffff800037646268) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a47b6f8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a47b6f8,ffff8000375ffc60,ffff8000375ffbb0) at sys_exit+0x1a syscall(ffff8000375ffc60) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c720417f200, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b2cf8) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83067aec,ffffffff83033caf,bc,ffffffff82fe6f08) at __assert+0x29 unveil_destroy(ffff800037646268) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a47b6f8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a47b6f8,ffff8000375ffc60,ffff8000375ffbb0) at sys_exit+0x1a syscall(ffff8000375ffc60) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c720417f200, count: -8