panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 188 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 398723 79130 0 0 0 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8343a087) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833e67a4,ffffffff8339a596,bc,ffffffff83354418) at __assert+0x29 unveil_destroy(ffff8000334b7db0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80003c4fb4a8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80003c4fb4a8,ffff80003c5d2c20,ffff80003c5d2b70) at sys_exit+0x1a syscall(ffff80003c5d2c20) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c5d2c20) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x789fc5579ae0, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 188 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8343a087) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833e67a4,ffffffff8339a596,bc,ffffffff83354418) at __assert+0x29 unveil_destroy(ffff8000334b7db0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80003c4fb4a8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80003c4fb4a8,ffff80003c5d2c20,ffff80003c5d2b70) at sys_exit+0x1a syscall(ffff80003c5d2c20) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c5d2c20) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x789fc5579ae0, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c5d2960 rbx 0xffff800029aacdc7 rdx 0 rcx 0xffff80003c4fb4a8 rax 0xffff800029aabff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xe61769cf5c1cdd43 r11 0xa909b55e3083dc2a r12 0xffff800029aacbc8 r13 0 r14 0 r15 0x1 rip 0xffffffff82606ac5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c5d2950 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=21758 pid=13292 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=85, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80003c4fb4a8 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff8000ffff6f98,0xffff8000ffff7c78 process=0xffff8000334b7db0 user=0xffff80003c5cd000, vmspace=0xfffffd805e23c910 estcpu=35, cpticks=8, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 649 12493 6228 0 2 0x2 arp 29898 408070 46521 0 2 0 syz-executor 29898 48789 46521 0 3 0x4000080 fsleep syz-executor 29898 326291 46521 0 2 0x4000000 syz-executor 79130 398723 71098 0 7 0 syz-executor 79130 18048 71098 0 2 0x4000000 syz-executor 5610 146975 52256 0 2 0 syz-executor 5610 10961 52256 0 3 0x4000080 semwait syz-executor 6228 260274 88345 0 3 0x10008a sigsusp sh 13040 323303 8753 0 2 0x10 syz-executor 13040 203910 8753 0 3 0x4000090 fsleep syz-executor 13040 62830 8753 0 3 0x4000090 fsleep syz-executor 83224 42164 49968 0 2 0 syz-executor 83224 219065 49968 0 3 0x4000000 lockflk syz-executor 83224 399756 49968 0 3 0x4000000 inode syz-executor 83224 522012 49968 0 3 0x4000000 inode syz-executor 88345 181460 40850 0 3 0x82 wait syz-executor 46521 368476 40850 0 3 0x82 nanoslp syz-executor 76714 64079 40850 0 3 0x82 nanoslp syz-executor 49968 118674 40850 0 3 0x82 nanoslp syz-executor 53528 38454 1 0 3 0x100083 ttyopn getty 6377 511143 40850 0 3 0x82 nanoslp syz-executor 93883 286534 0 0 3 0x14200 bored sosplice 15570 324120 0 0 3 0x14280 nfsidl nfsio 78005 91871 0 0 3 0x14280 nfsidl nfsio 11954 406633 0 0 3 0x14280 nfsidl nfsio 43238 434012 0 0 3 0x14280 nfsidl nfsio 99663 83172 0 0 3 0x14280 nfsidl nfsio 97617 462075 0 0 3 0x14280 nfsidl nfsio 34098 77356 0 0 3 0x14280 nfsidl nfsio 33784 205632 0 0 3 0x14280 nfsidl nfsio 59575 112978 0 0 3 0x14280 nfsidl nfsio 40813 171316 0 0 3 0x14280 nfsidl nfsio 8944 11858 0 0 3 0x14280 nfsidl nfsio 78240 196768 0 0 3 0x14280 nfsidl nfsio 3322 410762 0 0 3 0x14280 nfsidl nfsio 3890 261488 0 0 3 0x14280 nfsidl nfsio 78889 95607 0 0 3 0x14280 nfsidl nfsio 33177 515451 0 0 3 0x14280 nfsidl nfsio 23464 395344 0 0 3 0x14280 nfsidl nfsio 9990 225003 0 0 3 0x14280 nfsidl nfsio 2593 352050 0 0 3 0x14280 nfsidl nfsio 39751 133330 0 0 3 0x14280 nfsidl nfsio 52256 254331 40850 0 3 0x82 nanoslp syz-executor 8753 74548 40850 0 3 0x82 nanoslp syz-executor 71098 416963 40850 0 3 0x82 nanoslp syz-executor 40850 52046 29606 0 3 0x82 kqread syz-executor 29606 243500 76102 0 3 0x10008a sigsusp ksh 76102 287956 60063 0 3 0x98 kqread sshd-session 60063 327136 84348 0 3 0x92 kqread sshd-session 84348 185291 1 0 3 0x88 kqread sshd 58061 510442 31164 74 3 0x1100092 bpf pflogd 31164 435625 1 0 3 0x80 sbwait pflogd 63414 311031 8362 73 3 0x1100090 kqread syslogd 8362 438710 1 0 3 0x100082 sbwait syslogd 52974 8563 1 0 3 0x100080 kqread resolvd 34517 117868 30786 77 3 0x100092 kqread dhcpleased 72050 164065 30786 77 3 0x100092 kqread dhcpleased 30786 284160 1 0 3 0x80 kqread dhcpleased 14536 467420 0 0 3 0x14200 bored smr 78266 494505 0 0 2 0x14200 zerothread 33946 136 0 0 3 0x14200 aiodoned aiodoned 1161 385834 0 0 3 0x14200 syncer update 4879 367895 0 0 3 0x14200 cleaner cleaner 22418 308204 0 0 2 0x14200 reaper 45 142615 0 0 3 0x14200 pgdaemon pagedaemon 27789 355208 0 0 3 0x14200 bored viomb 92622 34694 0 0 3 0x40014200 acpi0 acpi0 31944 167340 0 0 3 0x40014200 idle1 17450 121064 0 0 3 0x14200 bored softnet3 63559 128467 0 0 3 0x14200 bored softnet2 61020 223344 0 0 3 0x14200 bored softnet1 7937 302408 0 0 2 0x14200 softnet0 67559 366989 0 0 3 0x14200 bored systqmp 77328 434989 0 0 3 0x14200 bored systq 96597 269629 0 0 3 0x14200 tmoslp softclockmp 72625 172651 0 0 3 0x40014200 tmoslp softclock 14053 253399 0 0 3 0x40014200 idle0 1 181382 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 29898 (syz-executor) thread 0xffff80003c4fa028 (326291) Process 79130 (syz-executor) thread 0xffff80003c4fa7d8 (18048) Process 83224 (syz-executor) thread 0xffff8000ffff6f98 (219065) Process 83224 (syz-executor) thread 0xffff8000ffff8550 (399756) Process 22418 (reaper) thread 0xffff8000ffffd1f8 (308204) ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10237 11064K 12369K 166960K 15481 0 pcb 19 16K 17K 166960K 466 0 rtable 146 7K 9K 166960K 875 0 pf 37 18K 19K 166960K 215 0 ifaddr 32 5K 8K 166960K 175 0 ifgroup 59 2K 2K 166960K 296 0 sysctl 4 1K 1K 166960K 10 0 counters 66 36K 37K 166960K 306 0 ioctlops 0 0K 4K 166960K 2004 0 iov 0 0K 40K 166960K 203 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1460 92K 92K 166960K 3820 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 44 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 83 0 dirhash 15 2K 2K 166960K 81 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 228K 166960K 2533 0 sigio 0 0K 0K 166960K 134 0 proc 77 115K 128K 166960K 1049 0 subproc 72 4K 4K 166960K 163 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 354 0 in_multi 57 4K 7K 166960K 300 0 ether_multi 1 0K 0K 166960K 20 0 mrt 1 0K 0K 166960K 6 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 253 1129K 1129K 166960K 253 0 exec 0 0K 1K 166960K 865 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 4 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 249 79K 88K 166960K 24986 0 UVM aobj 131 6K 6K 166960K 134 0 pinsyscall 44 88K 108K 166960K 3907 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 121 0 NDP 13 0K 2K 166960K 125 0 temp 79 8644K 8723K 166960K 80979 0 kqueue 16 26K 32K 166960K 452 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 344 0 341 4 3 1 3 0 8 0 rtentry 112 282 0 224 4 0 4 4 0 8 0 unpcb 144 2225 0 2207 17 16 1 6 0 8 0 syncache 336 6 0 6 3 3 0 1 0 8 0 tcpcb 808 575 0 571 8 7 1 5 0 8 0 arp 120 47 0 37 1 0 1 1 0 8 0 inpcb 376 2681 0 2670 31 29 2 15 0 8 0 nd6 136 60 0 45 1 0 1 1 0 8 0 pkpcb 40 19 0 19 6 6 0 1 0 8 0 kcovpl 48 18 0 10 1 0 1 1 0 8 0 ppxss 1168 82 0 82 2 2 0 1 0 8 0 pppxif 1472 44 0 44 3 3 0 1 0 8 0 pfstscr 40 1 0 0 1 0 1 1 0 8 0 pffrag 232 14 0 7 1 0 1 1 0 482 0 pffrnode 88 14 0 7 1 0 1 1 0 8 0 pffrent 40 92 0 85 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 169 0 70 1 0 1 1 0 8 0 pfstkey 128 169 0 70 4 0 4 4 0 8 0 pfstate 376 168 0 70 10 0 10 10 0 8 0 pfrule 1344 22 0 16 2 0 2 2 0 8 0 art_heap8 4096 4 0 1 4 1 3 3 0 8 0 art_heap4 256 1217 0 894 39 16 23 29 0 8 1 art_table 32 1221 0 895 4 0 4 4 0 8 0 art_node 16 272 0 222 1 0 1 1 0 8 0 sysvmsgpl 40 26 0 19 1 0 1 1 0 8 0 semapl 112 78 0 68 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 64 0 45 3 0 3 3 0 8 0 dino2pl 256 6190 0 4657 96 0 96 96 0 8 0 ffsino 280 6190 0 4657 110 0 110 110 0 8 0 nchpl 144 9719 0 9153 64 40 24 63 0 8 0 rtmask 32 3 0 3 2 2 0 1 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 34867 0 34865 4 2 2 2 0 8 1 percpumem 16 167 0 120 1 0 1 1 0 8 0 kstatmem 264 164 0 138 5 3 2 3 0 8 0 scsiplug 72 8 0 8 4 4 0 1 0 8 0 scxspl 216 30705 0 30705 14 13 1 8 1 8 1 plimitpl 152 613 0 595 1 0 1 1 0 8 0 sigapl 424 2837 0 2765 9 0 9 9 0 8 0 futexpl 64 35101 0 35098 1 0 1 1 0 8 0 knotepl 120 589 0 0 18 0 18 18 0 8 0 kqueuepl 216 855 0 843 8 7 1 5 0 8 0 pipepl 328 523 0 496 8 5 3 8 0 8 0 fdescpl 504 2796 0 2764 6 1 5 6 0 8 0 filepl 152 20405 0 20149 37 25 12 21 0 8 0 lockfpl 104 867 0 829 2 0 2 2 0 8 0 lockfspl 48 323 0 320 1 0 1 1 0 8 0 sessionpl 144 36 0 27 1 0 1 1 0 8 0 pgrppl 48 150 0 133 1 0 1 1 0 8 0 ucredpl 104 3891 0 3877 1 0 1 1 0 8 0 zombiepl 144 2782 0 2780 2 1 1 1 0 8 0 processpl 1168 2837 0 2765 6 0 6 6 0 8 0 procpl 656 6664 0 6582 8 0 8 8 0 8 0 srpgc 96 20 0 20 3 3 0 1 0 8 0 sosppl 168 19 0 19 5 5 0 1 0 8 0 sockpl 688 5310 0 5278 47 43 4 21 0 8 1 mcl64k 65536 7 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 125 0 0 16 0 16 16 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 40 0 0 4 0 4 4 0 8 0 mtagpl 96 47 0 0 2 0 2 2 0 8 0 mbufpl 256 1209 0 0 74 0 74 74 0 8 0 bufpl 280 11155 0 5000 440 0 440 440 0 8 0 anonpl 24 339121 0 333717 101 59 42 71 0 184 0 amapchunkpl 152 81074 0 80272 51 20 31 33 0 158 0 amappl16 200 6847 0 6780 58 51 7 27 0 8 0 amappl15 192 40 0 40 2 2 0 1 0 8 0 amappl14 184 141 0 129 1 0 1 1 0 8 0 amappl13 176 6 0 6 2 2 0 1 0 8 0 amappl12 168 3612 0 3579 3 1 2 2 0 8 0 amappl11 160 53 0 39 1 0 1 1 0 8 0 amappl10 152 8 0 8 1 1 0 1 0 8 0 amappl9 144 267 0 266 2 1 1 1 0 8 0 amappl8 136 20 0 17 1 0 1 1 0 8 0 amappl7 128 144 0 131 1 0 1 1 0 8 0 amappl6 120 285 0 279 1 0 1 1 0 8 0 amappl5 112 166 0 156 1 0 1 1 0 8 0 amappl4 104 369 0 348 1 0 1 1 0 8 0 amappl3 96 16925 0 16803 4 0 4 4 0 8 0 amappl2 88 854 0 787 2 0 2 2 0 8 0 amappl1 80 16486 0 15894 16 2 14 15 0 8 0 amappl 88 24339 0 24148 5 0 5 5 0 92 0 dma65536 65536 2 0 2 2 2 0 1 0 8 0 dma32768 32768 1 0 1 1 1 0 1 0 8 0 dma16384 16384 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 8 0 8 3 3 0 1 0 8 0 dma128 128 257 0 257 4 4 0 1 0 8 0 dma64 64 8 0 8 3 2 1 1 0 8 1 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 20 0 19 1 0 1 1 0 8 0 aobjpl 72 133 0 3 3 0 3 3 0 8 0 uaddrrnd 24 2796 0 2763 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2796 0 2763 1 0 1 1 0 8 0 vmmpekpl 168 21192 0 21134 4 0 4 4 0 8 0 vmmpepl 168 173889 0 171897 112 20 92 104 0 357 0 vmsppl 456 2795 0 2763 6 1 5 5 0 8 1 rwobjpl 64 49616 0 42529 120 2 118 118 0 8 0 pdppl 4096 5600 0 5526 128 54 74 88 0 8 0 pvpl 32 19429 0 0 157 1 156 156 0 265 0 pmappl 248 2795 0 2763 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 405 0 94 10 0 10 10 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff837a6ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83925158) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83925158) at __mp_lock+0x192 sys/kern/kern_lock.c:144 softintr_dispatch(0) at softintr_dispatch+0x5b sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 end of kernel end trace frame: 0x7a947fb13370, count: 9 ddb{0}> trace x86_ipi_db(ffffffff837a6ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83925158) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83925158) at __mp_lock+0x192 sys/kern/kern_lock.c:144 softintr_dispatch(0) at softintr_dispatch+0x5b sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 end of kernel end trace frame: 0x7a947fb13370, count: -6 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x25: addq $0x8,%rsp db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8343a087) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833e67a4,ffffffff8339a596,bc,ffffffff83354418) at __assert+0x29 unveil_destroy(ffff8000334b7db0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80003c4fb4a8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80003c4fb4a8,ffff80003c5d2c20,ffff80003c5d2b70) at sys_exit+0x1a syscall(ffff80003c5d2c20) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c5d2c20) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x789fc5579ae0, count: 7 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8343a087) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833e67a4,ffffffff8339a596,bc,ffffffff83354418) at __assert+0x29 unveil_destroy(ffff8000334b7db0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80003c4fb4a8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80003c4fb4a8,ffff80003c5d2c20,ffff80003c5d2b70) at sys_exit+0x1a syscall(ffff80003c5d2c20) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c5d2c20) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x789fc5579ae0, count: -8