panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/jobs/openbsd/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(ffffffff8311567b) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff830ce156,ffffffff83041ed4,bc,ffffffff830537d8) at __assert+0x29 unveil_destroy(ffff80002a525e10) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4f3bf8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4f3bf8,ffff80002a65f050,ffff80002a65efa0) at sys_exit+0x1a syscall(ffff80002a65f050) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bb4c27afdb0, 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/jobs/openbsd/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(ffffffff8311567b) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff830ce156,ffffffff83041ed4,bc,ffffffff830537d8) at __assert+0x29 unveil_destroy(ffff80002a525e10) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4f3bf8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4f3bf8,ffff80002a65f050,ffff80002a65efa0) at sys_exit+0x1a syscall(ffff80002a65f050) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bb4c27afdb0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a65eda0 rbx 0xffff80002a525e10 rdx 0x3fd rcx 0 rax 0x89 r8 0x101010101010101 r9 0x8080808080808080 r10 0xda163d12d6bcdcd r11 0x920af94d10aad246 r12 0 r13 0x2 r14 0 r15 0x1 rip 0xffffffff811470b5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a65ed90 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) tid=430619 pid=42231 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=84, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a4f3bf8 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a4a1be8,0xffff80002a56b480 process=0xffff80002a525e10 user=0xffff80002a65a000, vmspace=0xfffffd806927f9b0 estcpu=34, cpticks=1, pctcpu=0.22, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 63572 139881 50128 0 2 0 syz-executor.4 85232 516829 92062 0 3 0 futex syz-executor.3 85232 408325 92062 0 3 0x4000080 fsleep syz-executor.3 85232 20174 92062 0 2 0x4000000 syz-executor.3 76243 460485 97466 0 3 0 futex syz-executor.6 76243 330527 97466 0 3 0x4000080 fsleep syz-executor.6 76243 93664 97466 0 2 0x4000000 syz-executor.6 34264 420073 2029 0 2 0 syz-executor.2 34264 120711 2029 0 3 0x4000080 fsleep syz-executor.2 34264 92674 2029 0 3 0x4000080 fsleep syz-executor.2 34264 175745 2029 0 3 0x4000000 futex syz-executor.2 47111 349516 46637 0 2 0 syz-executor.5 47111 378368 46637 0 3 0x4000080 fsleep syz-executor.5 47111 140796 46637 0 3 0x4000080 fsleep syz-executor.5 93117 222733 66542 0 3 0x3000 suspend syz-executor.1 93117 168159 66542 0 3 0x4081000 futex syz-executor.1 93117 467195 66542 0 3 0x4081000 futex syz-executor.1 92898 234128 85815 0 2 0x2 syz-executor.7 97466 170849 85815 0 3 0x82 nanoslp syz-executor.6 46637 402580 85815 0 3 0x82 nanoslp syz-executor.5 50128 327871 85815 0 2 0x482 syz-executor.4 92062 59365 85815 0 3 0x82 nanoslp syz-executor.3 2029 119231 85815 0 3 0x82 nanoslp syz-executor.2 66542 119418 85815 0 3 0x82 nanoslp syz-executor.1 33564 292068 85815 0 3 0x82 nanoslp syz-executor.0 85815 409705 98196 0 3 0x82 wait syz-execprog 85815 131111 98196 0 3 0x4000082 thrsleep syz-execprog 85815 270359 98196 0 3 0x4000082 thrsleep syz-execprog 85815 285660 98196 0 3 0x4000082 wait syz-execprog 85815 27902 98196 0 3 0x4000082 wait syz-execprog 85815 436384 98196 0 3 0x4000082 wait syz-execprog 85815 432930 98196 0 3 0x4000082 wait syz-execprog 85815 246450 98196 0 3 0x4000082 thrsleep syz-execprog 85815 401323 98196 0 3 0x4000082 thrsleep syz-execprog 85815 70797 98196 0 3 0x4000082 wait syz-execprog 85815 87549 98196 0 3 0x4000082 wait syz-execprog 85815 289060 98196 0 3 0x4000082 wait syz-execprog 85815 496774 98196 0 3 0x4000082 kqread syz-execprog 85815 56625 98196 0 3 0x4000082 thrsleep syz-execprog 98196 202244 87569 0 3 0x10008a sigsusp ksh 87569 408946 40778 0 3 0x98 kqread sshd-session 40778 23152 24295 0 3 0x92 kqread sshd-session 35292 481961 1 0 3 0x100083 ttyin getty 24295 509694 1 0 3 0x88 kqread sshd 47614 84867 20257 73 3 0x1100090 kqread syslogd 20257 79659 1 0 3 0x100082 sbwait syslogd 43271 8871 1 0 3 0x100080 kqread resolvd 83444 205669 62492 77 3 0x100092 kqread dhcpleased 26910 412363 62492 77 3 0x100092 kqread dhcpleased 62492 54320 1 0 3 0x80 kqread dhcpleased 61630 35557 0 0 3 0x14200 bored smr 7273 284127 0 0 2 0x14200 zerothread 62267 70113 0 0 3 0x14200 aiodoned aiodoned 23709 7335 0 0 3 0x14200 syncer update 15077 183339 0 0 3 0x14200 cleaner cleaner 67934 51619 0 0 2 0x14200 reaper 12022 455331 0 0 3 0x14200 pgdaemon pagedaemon 93473 338249 0 0 3 0x14200 bored viomb 44570 127155 0 0 3 0x40014200 acpi0 acpi0 26860 289682 0 0 3 0x14200 bored softnet3 80466 134992 0 0 3 0x14200 bored softnet2 89084 42713 0 0 3 0x14200 bored softnet1 55281 435884 0 0 3 0x14200 bored softnet0 69281 233039 0 0 3 0x14200 bored systqmp 96034 369513 0 0 3 0x14200 bored systq 53302 89268 0 0 3 0x40014200 tmoslp softclock 54771 465181 0 0 3 0x40014200 idle0 1 407098 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 10165 11039K 11052K 166960K 11246 0 pcb 17 12K 12K 166960K 17 0 rtable 234 6K 6K 166960K 380 0 pf 30 12K 12K 166960K 33 0 ifaddr 42 7K 7K 166960K 48 0 ifgroup 50 2K 2K 166960K 55 0 counters 30 17K 17K 166960K 31 0 ioctlops 0 0K 2K 166960K 30 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1260 79K 79K 166960K 1276 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 2 0K 0K 166960K 2 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 16 57K 65K 166960K 2003 0 proc 67 91K 115K 166960K 6041 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 99 7K 7K 166960K 110 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 25 122K 122K 166960K 25 0 exec 0 0K 1K 166960K 406 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 283 76K 77K 166960K 22644 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 39 78K 104K 166960K 3322 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 11 0K 2K 166960K 30 0 temp 1 6860K 7116K 166960K 8308 0 kqueue 13 20K 20K 166960K 46 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 38 0 35 1 0 1 1 0 8 0 rtentry 112 122 0 12 4 0 4 4 0 8 0 unpcb 144 67 0 52 1 0 1 1 0 8 0 syncache 336 9 0 9 1 1 0 1 0 8 0 tcpcb 808 12 0 9 1 0 1 1 0 8 0 arp 88 20 0 2 1 0 1 1 0 8 0 inpcb 336 66 0 60 1 0 1 1 0 8 0 nd6 104 27 0 3 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 501 0 48 29 0 29 29 0 8 0 art_table 32 502 0 48 4 0 4 4 0 8 0 art_node 16 121 0 21 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 3455 0 1937 95 0 95 95 0 8 0 ffsino 240 3455 0 1937 90 0 90 90 0 8 0 nchpl 144 7435 0 5661 67 0 67 67 0 8 0 uvmvnodes 80 3465 0 0 71 0 71 71 0 8 0 vnodes 216 3465 0 0 193 0 193 193 0 8 0 namei 1024 22253 0 22251 5 3 2 3 0 8 1 kstatmem 264 24 0 2 2 0 2 2 0 8 0 scxspl 216 19706 0 19706 8 7 1 8 1 8 1 plimitpl 152 58 0 42 1 0 1 1 0 8 0 sigapl 424 2342 0 2297 6 0 6 6 0 8 0 futexpl 64 19861 0 19852 1 0 1 1 0 8 0 knotepl 120 7467 0 7388 4 0 4 4 0 8 1 kqueuepl 184 42 0 33 1 0 1 1 0 8 0 pipepl 288 183 0 155 3 1 2 3 0 8 0 fdescpl 432 2326 0 2298 4 0 4 4 0 8 0 filepl 120 5727 0 5596 6 1 5 5 0 8 1 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 34 0 18 1 0 1 1 0 8 0 pgrppl 48 34 0 18 1 0 1 1 0 8 0 ucredpl 104 111 0 100 1 0 1 1 0 8 0 zombiepl 144 3795 0 3794 2 1 1 1 0 8 0 processpl 1096 2342 0 2297 4 0 4 4 0 8 0 procpl 648 5796 0 5726 7 0 7 7 0 8 1 sockpl 504 171 0 147 4 1 3 4 0 8 0 mcl8k 8192 13 0 13 1 1 0 1 0 8 0 mcl4k 4096 11250 0 11195 22 14 8 22 0 8 0 mcl2k 2048 170 0 170 2 1 1 1 0 8 1 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 15868 0 15673 16 3 13 13 0 8 0 bufpl 280 6263 0 157 437 0 437 437 0 8 0 anonpl 24 407230 0 402212 50 18 32 50 0 187 0 amapchunkpl 152 72814 0 72140 36 7 29 29 0 158 3 amappl16 200 9555 0 9449 7 1 6 6 0 8 0 amappl15 192 15 0 15 1 1 0 1 0 8 0 amappl14 184 225 0 213 2 0 2 2 0 8 0 amappl13 176 13 0 12 1 0 1 1 0 8 0 amappl12 168 3011 0 2981 2 0 2 2 0 8 0 amappl11 160 60 0 50 1 0 1 1 0 8 0 amappl10 152 70 0 61 1 0 1 1 0 8 0 amappl9 144 366 0 365 1 0 1 1 0 8 0 amappl8 136 162 0 129 2 0 2 2 0 8 0 amappl7 128 214 0 197 2 0 2 2 0 8 0 amappl6 120 288 0 286 1 0 1 1 0 8 0 amappl5 112 192 0 184 1 0 1 1 0 8 0 amappl4 104 541 0 521 2 1 1 2 0 8 0 amappl3 96 15755 0 15657 3 0 3 3 0 8 0 amappl2 88 3094 0 3017 4 1 3 4 0 8 0 amappl1 80 20137 0 19604 26 15 11 22 0 8 0 amappl 88 21912 0 21717 5 0 5 5 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 2326 0 2297 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2326 0 2297 1 0 1 1 0 8 0 vmmpekpl 168 21517 0 21474 3 0 3 3 0 8 0 vmmpepl 168 149600 0 147772 125 42 83 115 0 357 3 vmsppl 352 2325 0 2297 3 0 3 3 0 8 0 rwobjpl 24 54400 0 49931 29 2 27 27 0 8 0 pdppl 4096 4658 0 4594 151 85 66 66 0 8 2 pvpl 32 949275 0 938553 379 290 89 368 0 265 0 pmappl 216 2325 0 2297 2 0 2 2 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 428 0 112 10 0 10 10 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(ffffffff8311567b) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff830ce156,ffffffff83041ed4,bc,ffffffff830537d8) at __assert+0x29 unveil_destroy(ffff80002a525e10) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4f3bf8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4f3bf8,ffff80002a65f050,ffff80002a65efa0) at sys_exit+0x1a syscall(ffff80002a65f050) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bb4c27afdb0, 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(ffffffff8311567b) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff830ce156,ffffffff83041ed4,bc,ffffffff830537d8) at __assert+0x29 unveil_destroy(ffff80002a525e10) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4f3bf8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4f3bf8,ffff80002a65f050,ffff80002a65efa0) at sys_exit+0x1a syscall(ffff80002a65f050) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bb4c27afdb0, count: -8