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(ffffffff82927b8e) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828e10c6,ffffffff828b33eb,bc,ffffffff82866e64) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff80002a704878) at unveil_destroy+0x174 sys/kern/kern_unveil.c:188 exit1(ffff80002a699a90,0,0,1) at exit1+0x3d6 sys/kern/kern_exit.c:218 sys_exit(ffff80002a699a90,ffff80002a827b50,ffff80002a827aa0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002a827b50) at syscall+0x538 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x73d5ec4561a0, 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(ffffffff82927b8e) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828e10c6,ffffffff828b33eb,bc,ffffffff82866e64) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff80002a704878) at unveil_destroy+0x174 sys/kern/kern_unveil.c:188 exit1(ffff80002a699a90,0,0,1) at exit1+0x3d6 sys/kern/kern_exit.c:218 sys_exit(ffff80002a699a90,ffff80002a827b50,ffff80002a827aa0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002a827b50) at syscall+0x538 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x73d5ec4561a0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a8278a0 rbx 0xffff80002a704878 rdx 0x3fd rcx 0 rax 0x8a r8 0x101010101010101 r9 0x8080808080808080 r10 0x78738389a21ddf2e r11 0xe2e2337be5386985 r12 0 r13 0x2 r14 0 r15 0x1 rip 0xffffffff811a086c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002a827890 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) tid=361379 pid=25774 tcnt=1 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=84, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a699a90 forw=0xffffffffffffffff, list=0xffff80002a6c2ac0,0xffff80002a602d70 process=0xffff80002a704878 user=0xffff80002a822000, vmspace=0xfffffd8069866590 estcpu=34, cpticks=2, pctcpu=0.3, user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 97533 26008 85536 0 2 0 syz-executor.7 97533 252991 85536 0 3 0x4000080 fsleep syz-executor.7 64849 403912 96061 0 2 0 syz-executor.4 64849 195292 96061 0 3 0x4000080 fsleep syz-executor.4 9365 405220 71327 0 3 0 futex syz-executor.0 9365 287999 71327 0 2 0x4000000 syz-executor.0 40541 180870 23194 0 2 0 syz-executor.3 40541 466864 23194 0 2 0x4000000 syz-executor.3 40541 366712 23194 0 2 0x4000000 syz-executor.3 55189 174333 59120 0 2 0x2 syz-executor.5 306 403778 59120 0 2 0x2 syz-executor.6 78067 309974 59120 0 2 0x2 syz-executor.2 85536 155713 59120 0 3 0x82 nanoslp syz-executor.7 96061 109693 59120 0 3 0x82 nanoslp syz-executor.4 23194 133418 59120 0 3 0x82 nanoslp syz-executor.3 22279 487034 59120 0 3 0x82 nanoslp syz-executor.1 71327 59506 59120 0 3 0x82 nanoslp syz-executor.0 59120 385509 47431 0 3 0x1a000082 wait syz-execprog 59120 505790 47431 0 3 0x1e000082 thrsleep syz-execprog 59120 115063 47431 0 3 0x1e000082 wait syz-execprog 59120 180587 47431 0 3 0x1e000082 thrsleep syz-execprog 59120 386335 47431 0 3 0x1e000082 wait syz-execprog 59120 7528 47431 0 3 0x1e000082 wait syz-execprog 59120 567 47431 0 3 0x1e000082 wait syz-execprog 59120 485675 47431 0 3 0x1e000082 thrsleep syz-execprog 59120 114530 47431 0 3 0x1e000082 wait syz-execprog 59120 351718 47431 0 3 0x1e000082 thrsleep syz-execprog 59120 262762 47431 0 3 0x1e000082 wait syz-execprog 59120 69887 47431 0 3 0x1e000082 wait syz-execprog 59120 196161 47431 0 3 0x1e000082 kqread syz-execprog 59120 268087 47431 0 3 0x1e000082 thrsleep syz-execprog 47431 142931 77170 0 3 0x810008a sigsusp ksh 77170 189078 87282 0 3 0x1800009a kqread sshd 92175 333495 1 0 3 0x18100083 ttyin getty 87282 85331 1 0 3 0x18000088 kqread sshd 3674 387516 38108 73 3 0x19100090 kqread syslogd 38108 244495 1 0 3 0x18100082 netio syslogd 42820 138245 1 0 3 0x18100080 kqread resolvd 41088 119693 44951 77 3 0x18100092 kqread dhcpleased 41986 521929 44951 77 3 0x18100092 kqread dhcpleased 44951 75340 1 0 3 0x18000080 kqread dhcpleased 1829 522267 0 0 3 0x14200 bored smr 90143 44094 0 0 2 0x14200 zerothread 86579 8124 0 0 3 0x14200 aiodoned aiodoned 70888 270316 0 0 3 0x14200 syncer update 10574 311373 0 0 3 0x14200 cleaner cleaner 35931 408789 0 0 2 0x14200 reaper 62797 450578 0 0 3 0x14200 pgdaemon pagedaemon 9328 194078 0 0 3 0x14200 bored viomb 14855 192296 0 0 3 0x40014200 acpi0 acpi0 4555 181146 0 0 3 0x14200 bored softnet3 80249 103781 0 0 3 0x14200 bored softnet2 33864 35597 0 0 3 0x14200 bored softnet1 64473 233988 0 0 3 0x14200 bored softnet0 23211 279042 0 0 3 0x14200 bored systqmp 14005 134956 0 0 3 0x14200 bored systq 32797 160016 0 0 3 0x40014200 tmoslp softclock 37154 109874 0 0 3 0x40014200 idle0 1 205025 0 0 3 0x8000082 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 10161 6400K 6413K 166960K 11239 0 pcb 15 10K 10K 166960K 15 0 rtable 234 6K 6K 166960K 350 0 pf 29 8K 8K 166960K 29 0 ifaddr 43 11K 11K 166960K 45 0 ifgroup 50 2K 2K 166960K 50 0 counters 30 17K 17K 166960K 30 0 ioctlops 0 0K 2K 166960K 29 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1259 79K 79K 166960K 1275 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 1697 195K 286K 166960K 12548 0 file desc 15 53K 77K 166960K 1557 0 proc 59 74K 123K 166960K 4742 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 99 7K 7K 166960K 99 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 364 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 256 75K 76K 166960K 17469 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 22 44K 100K 166960K 1194 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 11 0K 2K 166960K 27 0 temp 1 6788K 6916K 166960K 6735 0 kqueue 12 18K 18K 166960K 25 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 36 0 33 1 0 1 1 0 8 0 rtentry 112 111 0 1 4 0 4 4 0 8 0 unpcb 144 33 0 20 1 0 1 1 0 8 0 syncache 336 5 0 5 1 1 0 1 0 8 0 tcpqe 32 87 0 87 1 1 0 1 0 8 0 tcpcb 808 8 0 5 1 0 1 1 0 8 0 arp 88 18 0 0 1 0 1 1 0 8 0 inpcb 360 58 0 52 1 0 1 1 0 8 0 nd6 104 24 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 453 0 0 29 0 29 29 0 8 0 art_table 32 454 0 0 4 0 4 4 0 8 0 art_node 16 110 0 10 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2993 0 1477 95 0 95 95 0 8 0 ffsino 240 2993 0 1477 90 0 90 90 0 8 0 nchpl 144 6098 0 4337 66 0 66 66 0 8 0 uvmvnodes 80 3002 0 0 62 0 62 62 0 8 0 vnodes 216 3002 0 0 167 0 167 167 0 8 0 namei 1024 17560 0 17560 5 3 2 3 0 8 2 kstatmem 264 22 0 0 2 0 2 2 0 8 0 scxspl 216 15719 0 15719 9 7 2 8 1 8 2 plimitpl 152 34 0 19 1 0 1 1 0 8 0 sigapl 424 1858 0 1815 6 0 6 6 0 8 0 futexpl 64 15300 0 15297 1 0 1 1 0 8 0 knotepl 120 3880 0 3802 4 0 4 4 0 8 0 kqueuepl 184 21 0 13 1 0 1 1 0 8 0 pipepl 288 139 0 111 3 0 3 3 0 8 0 fdescpl 432 1842 0 1816 4 0 4 4 0 8 0 filepl 120 4437 0 4309 5 0 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 25 0 9 1 0 1 1 0 8 0 pgrppl 48 25 0 9 1 0 1 1 0 8 0 ucredpl 104 66 0 56 1 0 1 1 0 8 0 zombiepl 144 2889 0 2888 2 1 1 1 0 8 0 processpl 1072 1858 0 1815 4 0 4 4 0 8 0 procpl 680 4410 0 4348 7 0 7 7 0 8 1 sockpl 488 127 0 105 5 1 4 4 0 8 1 mcl8k 8192 4 0 4 1 1 0 1 0 8 0 mcl4k 4096 10 0 10 1 1 0 1 0 8 0 mcl2k 2048 11841 0 11796 30 24 6 30 0 8 0 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 19455 0 19270 21 9 12 16 0 8 0 bufpl 280 5678 0 169 394 0 394 394 0 8 0 anonpl 24 310705 0 305808 56 24 32 50 0 188 1 amapchunkpl 152 56130 0 55515 34 4 30 30 0 158 4 amappl16 200 7319 0 7220 7 1 6 6 0 8 0 amappl15 192 14 0 14 1 1 0 1 0 8 0 amappl14 184 158 0 147 2 1 1 2 0 8 0 amappl13 176 15 0 15 1 1 0 1 0 8 0 amappl12 168 2474 0 2447 2 0 2 2 0 8 0 amappl11 160 57 0 45 1 0 1 1 0 8 0 amappl10 152 44 0 33 1 0 1 1 0 8 0 amappl9 144 168 0 168 1 1 0 1 0 8 0 amappl8 136 111 0 84 1 0 1 1 0 8 0 amappl7 128 40 0 35 1 0 1 1 0 8 0 amappl6 120 334 0 321 2 1 1 2 0 8 0 amappl5 112 169 0 157 1 0 1 1 0 8 0 amappl4 104 517 0 485 2 0 2 2 0 8 0 amappl3 96 11311 0 11234 3 0 3 3 0 8 0 amappl2 88 2260 0 2190 4 2 2 4 0 8 0 amappl1 80 14791 0 14301 23 11 12 22 0 8 0 amappl 88 16940 0 16766 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 1842 0 1815 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1842 0 1815 1 0 1 1 0 8 0 vmmpekpl 168 17844 0 17807 2 0 2 2 0 8 0 vmmpepl 168 112316 0 110671 117 39 78 111 0 357 2 vmsppl 352 1841 0 1815 3 0 3 3 0 8 0 rwobjpl 24 40954 0 36967 28 3 25 25 0 8 0 pdppl 4096 3690 0 3630 108 44 64 70 0 8 4 pvpl 32 697815 0 688028 369 285 84 359 0 265 1 pmappl 216 1841 0 1815 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 399 0 85 10 0 10 10 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(ffffffff82927b8e) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828e10c6,ffffffff828b33eb,bc,ffffffff82866e64) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff80002a704878) at unveil_destroy+0x174 sys/kern/kern_unveil.c:188 exit1(ffff80002a699a90,0,0,1) at exit1+0x3d6 sys/kern/kern_exit.c:218 sys_exit(ffff80002a699a90,ffff80002a827b50,ffff80002a827aa0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002a827b50) at syscall+0x538 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x73d5ec4561a0, 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(ffffffff82927b8e) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828e10c6,ffffffff828b33eb,bc,ffffffff82866e64) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff80002a704878) at unveil_destroy+0x174 sys/kern/kern_unveil.c:188 exit1(ffff80002a699a90,0,0,1) at exit1+0x3d6 sys/kern/kern_exit.c:218 sys_exit(ffff80002a699a90,ffff80002a827b50,ffff80002a827aa0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002a827b50) at syscall+0x538 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x73d5ec4561a0, count: -8