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+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(ffffffff830bf34a) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83075919,ffffffff83047ca5,bc,ffffffff82ffb411) at __assert+0x29 unveil_destroy(ffff8000ffff99c8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a504f60,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a504f60,ffff800037653c20,ffff800037653b70) at sys_exit+0x1a syscall(ffff800037653c20) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70f9fb14bd20, 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+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830bf34a) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83075919,ffffffff83047ca5,bc,ffffffff82ffb411) at __assert+0x29 unveil_destroy(ffff8000ffff99c8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a504f60,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a504f60,ffff800037653c20,ffff800037653b70) at sys_exit+0x1a syscall(ffff800037653c20) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70f9fb14bd20, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800037653970 rbx 0xffff8000ffff99c8 rdx 0 rcx 0 rax 0xffff80002a504f60 r8 0 r9 0x8080808080808080 r10 0x50c3ebe74ab57c0b r11 0x71cb36c5ea5cc0a0 r12 0 r13 0x2 r14 0 r15 0x1 rip 0xffffffff82f9e745 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800037653960 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=195517 pid=24273 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a504f60 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a4afbf0,0xffff800037676ce0 process=0xffff8000ffff99c8 user=0xffff80003764e000, vmspace=0xfffffd806c3409b0 estcpu=36, cpticks=19, pctcpu=0.58, user=0, sys=19, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 42713 46845 66051 0 2 0 syz-executor 42713 138041 66051 0 2 0x4000000 syz-executor 52782 145805 22943 0 2 0 syz-executor 52782 228030 22943 0 3 0x4000080 fsleep syz-executor 20146 354362 87688 0 2 0 syz-executor 20146 322753 87688 0 3 0x4000080 fsleep syz-executor 62621 258953 18192 0 2 0 syz-executor 62621 257551 18192 0 3 0x4000080 fsleep syz-executor 49848 1431 53311 0 2 0 syz-executor 49848 214306 53311 0 2 0x4000000 syz-executor 96380 272009 32556 0 2 0x2 sh 32556 302310 33174 0 3 0x82 wait syz-executor 88647 381942 33174 0 2 0x482 syz-executor 22943 391177 33174 0 2 0x482 syz-executor 66051 521935 33174 0 2 0x482 syz-executor 84051 212419 0 0 3 0x14200 bored sosplice 59130 2199 33174 0 2 0x2 syz-executor 87688 326468 33174 0 2 0x482 syz-executor 53311 177716 33174 0 2 0x482 syz-executor 18192 25200 33174 0 2 0x482 syz-executor 33174 350722 22378 0 2 0x3 syz-executor 22378 285121 42580 0 3 0x10008a sigsusp ksh 42580 511663 37599 0 3 0x98 kqread sshd-session 37599 414383 1 0 3 0x92 kqread sshd-session 88093 421470 1 0 3 0x100083 ttyin getty 66554 142513 31997 73 3 0x1100090 kqread syslogd 31997 292182 1 0 3 0x100082 sbwait syslogd 11682 457811 1 0 3 0x100080 kqread resolvd 75315 97384 82165 77 3 0x100092 kqread dhcpleased 96351 508097 82165 77 3 0x100092 kqread dhcpleased 82165 37038 1 0 3 0x80 kqread dhcpleased 31466 155249 0 0 3 0x14200 bored smr 88847 231874 0 0 2 0x14200 zerothread 79200 37352 0 0 3 0x14200 aiodoned aiodoned 51198 280443 0 0 3 0x14200 syncer update 35080 259543 0 0 3 0x14200 cleaner cleaner 41011 205506 0 0 2 0x14200 reaper 52310 111197 0 0 3 0x14200 pgdaemon pagedaemon 69461 365570 0 0 3 0x14200 bored viomb 40789 149260 0 0 3 0x40014200 acpi0 acpi0 29546 47997 0 0 3 0x14200 bored softnet3 88824 487870 0 0 3 0x14200 bored softnet2 82026 392216 0 0 3 0x14200 bored softnet1 66225 507596 0 0 3 0x14200 bored softnet0 41471 187727 0 0 3 0x14200 bored systqmp 72535 164626 0 0 3 0x14200 bored systq 85878 490669 0 0 2 0x40014200 softclock 84853 309495 0 0 3 0x40014200 idle0 1 65736 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 10222 11087K 11596K 166960K 15628 0 pcb 18 16K 18K 166960K 702 0 rtable 202 8K 9K 166960K 1122 0 pf 34 13K 270K 166960K 144 0 ifaddr 39 6K 8K 166960K 129 0 ifgroup 54 2K 2K 166960K 201 0 sysctl 3 0K 0K 166960K 15 0 counters 31 17K 18K 166960K 74 0 ioctlops 0 0K 4K 166960K 479 0 iov 0 0K 28K 166960K 292 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1517 95K 96K 166960K 4304 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 2K 9K 166960K 46 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 88 0 dirhash 12 2K 2K 166960K 60 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 97K 166960K 2535 0 sigio 0 0K 0K 166960K 66 0 proc 65 75K 124K 166960K 853 0 subproc 104 6K 6K 166960K 183 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 482 0 in_multi 74 5K 7K 166960K 273 0 ether_multi 1 0K 0K 166960K 11 0 mrt 2 0K 0K 166960K 8 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 259 1155K 1155K 166960K 259 0 exec 0 0K 1K 166960K 939 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 208 72K 88K 166960K 24239 0 UVM aobj 103 3K 4K 166960K 112 0 pinsyscall 37 74K 96K 166960K 3712 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 211 0 NDP 12 0K 2K 166960K 90 0 temp 75 6820K 6948K 166960K 63822 0 kqueue 12 18K 30K 166960K 419 0 SYN cache 2 8K 16K 166960K 3 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 336 0 333 3 2 1 3 0 8 0 rtentry 112 294 0 206 4 0 4 4 0 8 0 unpcb 144 3065 0 3050 12 11 1 9 0 8 0 syncache 336 8 0 8 3 3 0 1 0 8 0 tcpqe 32 4 0 4 3 3 0 1 0 8 0 tcpcb 808 899 0 896 21 19 2 8 0 8 1 arp 88 72 0 53 1 0 1 1 0 8 0 ipq 40 11 0 11 1 1 0 1 0 8 0 ipqe 40 152 0 152 1 1 0 1 0 8 0 inpcb 336 3181 0 3140 22 18 4 10 0 8 0 nd6 104 51 0 32 1 0 1 1 0 8 0 pkpcb 40 17 0 17 2 2 0 1 0 8 0 kcovpl 48 14 0 6 1 0 1 1 0 8 0 ppxss 1072 20 0 20 3 3 0 1 0 8 0 pfstscr 40 2 0 2 1 1 0 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 70 0 68 1 0 1 1 0 8 0 pfstate 344 35 0 34 1 0 1 1 0 8 0 pfrule 1344 2 0 2 1 1 0 1 0 8 0 art_heap8 4096 8 0 4 6 2 4 6 0 8 0 art_heap4 256 1112 0 745 32 7 25 29 0 8 0 art_table 32 1120 0 749 4 0 4 4 0 8 0 art_node 16 287 0 210 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 1 1 0 1 1 0 8 0 semapl 112 84 0 74 1 0 1 1 0 8 0 shmpl 112 109 0 9 3 0 3 3 0 8 0 dirhash 1024 50 0 33 3 0 3 3 0 8 0 dino2pl 256 6211 0 4710 95 0 95 95 0 8 0 ffsino 240 6211 0 4710 89 0 89 89 0 8 0 nchpl 144 10005 0 9493 63 40 23 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 38573 0 38571 4 3 1 2 0 8 0 kstatmem 264 110 0 86 3 1 2 3 0 8 0 scsiplug 72 17 0 17 3 3 0 1 0 8 0 scxspl 216 27534 0 27534 16 15 1 8 1 8 1 plimitpl 152 822 0 806 1 0 1 1 0 8 0 sigapl 424 2830 0 2784 9 2 7 8 0 8 0 futexpl 64 37672 0 37669 1 0 1 1 0 8 0 knotepl 120 118068 0 118022 55 45 10 16 0 8 4 kqueuepl 184 999 0 991 9 5 4 4 0 8 3 pipepl 288 646 0 619 14 11 3 7 0 8 0 fdescpl 432 2788 0 2760 5 1 4 5 0 8 0 filepl 120 24260 0 23962 26 12 14 15 0 8 2 lockfpl 104 746 0 744 2 1 1 2 0 8 0 lockfspl 48 228 0 226 1 0 1 1 0 8 0 sessionpl 144 31 0 24 1 0 1 1 0 8 0 pgrppl 48 71 0 56 1 0 1 1 0 8 0 ucredpl 104 4619 0 4607 1 0 1 1 0 8 0 zombiepl 144 2828 0 2827 2 1 1 1 0 8 0 processpl 1096 2830 0 2784 5 0 5 5 0 8 0 procpl 648 6320 0 6268 7 1 6 7 0 8 0 sosppl 168 19 0 19 3 3 0 1 0 8 0 sockpl 504 6643 0 6584 63 55 8 29 0 8 0 mcl64k 65536 43 0 43 4 3 1 1 0 8 1 mcl16k 16384 18 0 18 3 3 0 1 0 8 0 mcl12k 12288 3 0 3 2 2 0 1 0 8 0 mcl9k 9216 5 0 5 3 3 0 1 0 8 0 mcl8k 8192 51 0 51 3 3 0 1 0 8 0 mcl4k 4096 6073 0 6021 17 9 8 14 0 8 1 mcl2k2 2112 3 0 3 2 2 0 1 0 8 0 mcl2k 2048 2974 0 2963 10 7 3 5 0 8 1 mtagpl 96 185 0 127 4 1 3 4 0 8 0 mbufpl 256 34393 0 34214 97 70 27 81 0 8 0 bufpl 280 7284 0 1037 447 0 447 447 0 8 0 anonpl 24 416445 0 413302 83 49 34 47 0 187 2 amapchunkpl 152 83490 0 83035 63 41 22 35 0 158 2 amappl16 200 10028 0 10002 65 59 6 15 0 8 1 amappl15 192 12 0 12 1 1 0 1 0 8 0 amappl14 184 124 0 115 1 0 1 1 0 8 0 amappl13 176 10 0 10 1 1 0 1 0 8 0 amappl12 168 3501 0 3472 3 0 3 3 0 8 1 amappl11 160 49 0 39 1 0 1 1 0 8 0 amappl10 152 30 0 30 2 2 0 1 0 8 0 amappl9 144 125 0 124 2 1 1 1 0 8 0 amappl8 136 32 0 30 1 0 1 1 0 8 0 amappl7 128 109 0 99 1 0 1 1 0 8 0 amappl6 120 231 0 228 1 0 1 1 0 8 0 amappl5 112 161 0 152 1 0 1 1 0 8 0 amappl4 104 310 0 299 1 0 1 1 0 8 0 amappl3 96 14936 0 14851 3 0 3 3 0 8 0 amappl2 88 3106 0 3032 2 0 2 2 0 8 0 amappl1 80 15411 0 14964 13 0 13 13 0 8 0 amappl 88 23663 0 23504 5 0 5 5 0 92 0 dma16384 16384 1 0 1 1 1 0 1 0 8 0 dma8192 8192 2 0 2 2 2 0 1 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 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 267 0 267 3 3 0 1 0 8 0 dma64 64 7 0 7 2 2 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 111 0 9 2 0 2 2 0 8 0 uaddrrnd 24 2788 0 2759 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2788 0 2759 1 0 1 1 0 8 0 vmmpekpl 168 22083 0 22041 3 0 3 3 0 8 0 vmmpepl 168 172567 0 170962 108 27 81 92 0 357 1 vmsppl 352 2787 0 2759 4 1 3 4 0 8 0 rwobjpl 24 50480 0 43693 43 0 43 43 0 8 0 pdppl 4096 5583 0 5518 139 74 65 83 0 8 0 pvpl 32 1152625 0 1144882 169 76 93 120 0 265 3 pmappl 216 2787 0 2759 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 632 0 293 13 1 12 13 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(ffffffff830bf34a) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83075919,ffffffff83047ca5,bc,ffffffff82ffb411) at __assert+0x29 unveil_destroy(ffff8000ffff99c8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a504f60,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a504f60,ffff800037653c20,ffff800037653b70) at sys_exit+0x1a syscall(ffff800037653c20) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70f9fb14bd20, 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(ffffffff830bf34a) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83075919,ffffffff83047ca5,bc,ffffffff82ffb411) at __assert+0x29 unveil_destroy(ffff8000ffff99c8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a504f60,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a504f60,ffff800037653c20,ffff800037653b70) at sys_exit+0x1a syscall(ffff800037653c20) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70f9fb14bd20, count: -8