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+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 116810 61681 0 0x14000 0x200 1 reaper db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8279c7bf) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f037,ffffffff8282537a,bc,ffffffff827bb2af) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff8000ffff7690) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff800021232460,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:220 sys_exit(ffff800021232460,ffff8000212f95f0,ffff8000212f9640) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff8000212f96c0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff8000212f96c0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6f9e4d7ca7c0, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 188 ddb{0}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8279c7bf) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f037,ffffffff8282537a,bc,ffffffff827bb2af) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff8000ffff7690) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff800021232460,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:220 sys_exit(ffff800021232460,ffff8000212f95f0,ffff8000212f9640) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff8000212f96c0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff8000212f96c0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6f9e4d7ca7c0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff8000212f9400 rbx 0xffffffff82bd5b9f cpu_info_full_primary+0x2b9f rdx 0 rcx 0xffff800021232460 rax 0xffffffff82bd4ff0 cpu_info_full_primary+0x1ff0 r8 0 r9 0x8080808080808080 r10 0xbf43a77d46901363 r11 0x963a873c5079cb17 r12 0xffffffff82bd59a0 cpu_info_full_primary+0x29a0 r13 0 r14 0 r15 0x1 rip 0xffffffff8275560c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff8000212f93f0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.6) pid=86226 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800021233cd8,0xffff8000212329e0 process=0xffff8000ffff7690 user=0xffff8000212f4000, vmspace=0xfffffd806b4151e8 estcpu=36, cpticks=4, pctcpu=0.0 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 56469 160052 52809 0 2 0 syz-executor.7 81587 223132 13043 0 2 0x480 syz-executor.1 81587 387420 13043 0 3 0x4000080 fsleep syz-executor.1 30780 357189 47704 0 2 0x480 syz-executor.2 30780 71768 47704 0 3 0x4000080 fsleep syz-executor.2 75979 100959 33947 0 2 0x482 syz-executor.6 13043 83857 33947 0 2 0x482 syz-executor.1 54119 30282 33947 0 2 0x2 syz-executor.5 26154 523969 33947 0 2 0x482 syz-executor.0 14600 138843 0 0 3 0x14200 acct acct 35586 104795 1 0 3 0x100083 ttyin getty 12209 263409 33947 0 2 0x2 syz-executor.4 52809 215715 33947 0 2 0x482 syz-executor.7 47704 33740 33947 0 2 0x482 syz-executor.2 59630 317321 33947 0 2 0x2 syz-executor.3 1429 397798 0 0 3 0x14280 nfsidl nfsio 59043 494466 0 0 3 0x14280 nfsidl nfsio 44131 491594 0 0 3 0x14280 nfsidl nfsio 52162 418960 0 0 3 0x14280 nfsidl nfsio 24749 77322 0 0 3 0x14280 nfsidl nfsio 90102 82660 0 0 3 0x14280 nfsidl nfsio 96824 385296 0 0 3 0x14280 nfsidl nfsio 75184 466087 0 0 3 0x14280 nfsidl nfsio 95186 514455 0 0 3 0x14280 nfsidl nfsio 95962 321441 0 0 3 0x14280 nfsidl nfsio 94463 510905 0 0 3 0x14280 nfsidl nfsio 96433 259829 0 0 3 0x14280 nfsidl nfsio 85576 165393 0 0 3 0x14280 nfsidl nfsio 31192 10380 0 0 3 0x14280 nfsidl nfsio 68551 135005 0 0 3 0x14280 nfsidl nfsio 6651 14492 0 0 3 0x14280 nfsidl nfsio 14526 103780 0 0 3 0x14280 nfsidl nfsio 94741 134230 0 0 3 0x14280 nfsidl nfsio 81673 167332 0 0 3 0x14280 nfsidl nfsio 62103 490539 0 0 3 0x14280 nfsidl nfsio 123 114980 0 0 3 0x14200 bored sosplice 33947 291386 25821 0 3 0x2000082 thrsleep syz-fuzzer 33947 324112 25821 0 2 0x6000482 syz-fuzzer 33947 209565 25821 0 3 0x6000082 thrsleep syz-fuzzer 33947 91438 25821 0 3 0x6000082 wait syz-fuzzer 33947 110252 25821 0 3 0x6000082 wait syz-fuzzer 33947 505722 25821 0 3 0x6000082 wait syz-fuzzer 33947 110230 25821 0 3 0x6000082 thrsleep syz-fuzzer 33947 357042 25821 0 3 0x6000082 thrsleep syz-fuzzer 33947 336611 25821 0 3 0x6000082 wait syz-fuzzer 33947 242320 25821 0 3 0x6000082 thrsleep syz-fuzzer 33947 413339 25821 0 3 0x6000082 kqread syz-fuzzer 33947 395871 25821 0 3 0x6000082 thrsleep syz-fuzzer 33947 293114 25821 0 3 0x6000082 wait syz-fuzzer 33947 361554 25821 0 3 0x6000082 wait syz-fuzzer 33947 297509 25821 0 3 0x6000082 wait syz-fuzzer 33947 233755 25821 0 3 0x6000082 wait syz-fuzzer 25821 270818 96270 0 3 0x10008a sigsusp ksh 96270 75706 62035 0 3 0x9a kqread sshd 62035 201896 1 0 3 0x88 kqread sshd 94603 87655 69527 74 3 0x1100092 bpf pflogd 69527 78228 1 0 3 0x80 netio pflogd 29364 270273 77458 73 3 0x1100090 kqread syslogd 77458 400953 1 0 3 0x100082 netio syslogd 9554 281030 1 0 3 0x100080 kqread resolvd 27242 189026 72619 77 3 0x100092 kqread dhcpleased 96806 40395 72619 77 3 0x100092 kqread dhcpleased 72619 459783 1 0 3 0x80 kqread dhcpleased 31820 89550 0 0 3 0x14200 bored smr 38950 505641 0 0 2 0x14200 zerothread 76054 312322 0 0 3 0x14200 aiodoned aiodoned 32076 381919 0 0 3 0x14200 syncer update 97072 501193 0 0 3 0x14200 cleaner cleaner 61681 116810 0 0 7 0x14200 reaper 29628 85132 0 0 3 0x14200 pgdaemon pagedaemon 39975 97739 0 0 3 0x14200 bored viomb 68282 359609 0 0 3 0x40014200 acpi0 acpi0 93509 105004 0 0 3 0x40014200 idle1 59125 435841 0 0 3 0x14200 bored softnet3 28535 296078 0 0 3 0x14200 bored softnet2 37125 154474 0 0 3 0x14200 bored softnet1 51506 354697 0 0 3 0x14200 bored softnet0 61591 27450 0 0 3 0x14200 bored systqmp 9096 374157 0 0 3 0x14200 bored systq 7583 110745 0 0 2 0x40014200 softclock 76487 194450 0 0 3 0x40014200 idle0 1 481103 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 54119 (syz-executor.5) thread 0xffff8000247398a8 (30282) Process 12209 (syz-executor.4) thread 0xffff800021234db8 (263409) Process 59630 (syz-executor.3) thread 0xffff80002128f330 (317321) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10228 6505K 15000K 78643K 33577 0 pcb 13 16K 18K 78643K 1609 0 rtable 243 7K 7K 78643K 3096 0 pf 34 9K 10K 78643K 675 0 ifaddr 46 19K 21K 78643K 562 0 ifgroup 59 2K 2K 78643K 1069 0 sysctl 3 1K 3K 78643K 88 0 counters 62 36K 36K 78643K 632 0 ioctlops 0 0K 4K 78643K 2424 0 iov 0 0K 32K 78643K 2345 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1634 102K 102K 78643K 16208 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 399 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 2152 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 13 45K 89K 78643K 33347 0 sigio 1 0K 0K 78643K 684 0 proc 76 139K 140K 78643K 4551 0 subproc 104 6K 6K 78643K 1119 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1471 0 in_multi 99 7K 7K 78643K 1166 0 ether_multi 1 0K 0K 78643K 32 0 mrt 2 0K 0K 78643K 19 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 199 890K 890K 78643K 199 0 exec 0 0K 1K 78643K 5980 0 pfkey data 0 0K 0K 78643K 36 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 8 62K 64K 78643K 10 0 UVM amap 518 99K 113K 78643K 330040 0 UVM aobj 131 4K 4K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 1516 0 NDP 13 0K 2K 78643K 460 0 temp 75 5920K 6052K 78643K 230538 0 kqueue 12 18K 46K 78643K 11659 0 SYN cache 2 16K 24K 78643K 4 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 1000 0 997 9 8 1 4 0 8 0 rtentry 112 976 0 863 4 0 4 4 0 8 0 unpcb 144 20629 0 20610 210 209 1 10 0 8 0 syncache 296 155 0 155 41 41 0 1 0 8 0 tcpqe 32 406 252 406 29 29 0 2 0 8 0 tcpcb 808 7910 0 7898 235 233 2 14 0 8 0 arp 120 172 0 153 1 0 1 1 0 8 0 inpcb 368 17960 0 17945 275 267 8 14 0 8 5 nd6 136 266 0 240 2 1 1 2 0 8 0 pkpcb 40 67 0 67 14 14 0 1 0 8 0 kcovpl 48 81 0 73 1 0 1 1 0 8 0 ppxss 1256 95 0 95 29 28 1 1 0 8 1 pffrag 232 431 0 427 1 0 1 1 0 482 0 pffrnode 88 426 0 422 1 0 1 1 0 8 0 pffrent 40 1258 0 1254 2 1 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 pfstitem 24 1096 0 1075 1 0 1 1 0 8 0 pfstkey 128 1096 0 1075 6 4 2 6 0 8 0 pfstate 376 1096 0 1075 30 26 4 16 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 3772 0 3299 33 3 30 31 0 8 0 art_table 32 3773 0 3299 4 0 4 4 0 8 0 art_node 16 944 0 841 1 0 1 1 0 8 0 sysvmsgpl 40 48 0 41 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 2146 0 2136 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 52013 0 50310 107 0 107 107 0 8 0 ffsino 272 52013 0 50310 115 1 114 114 0 8 0 nchpl 144 101152 0 100639 64 41 23 64 0 8 0 uvmvnodes 80 10541 0 0 216 0 216 216 0 8 0 vnodes 216 10541 0 0 586 0 586 586 0 8 0 namei 1024 363030 0 363027 21 20 1 3 0 8 0 percpumem 16 329 0 285 1 0 1 1 0 8 0 kstatmem 264 596 0 570 6 4 2 3 0 8 0 scxspl 216 274240 0 274240 56 55 1 8 1 8 1 plimitpl 152 3658 0 3642 1 0 1 1 0 8 0 sigapl 424 33556 0 33489 10 2 8 8 0 8 0 futexpl 64 280901 0 280899 4 3 1 1 0 8 0 knotepl 120 1553 0 0 19 1 18 18 0 8 0 kqueuepl 216 41664 0 41656 271 268 3 11 0 8 2 pipepl 320 7410 0 7382 182 176 6 14 0 8 3 fdescpl 496 33509 0 33483 6 2 4 5 0 8 0 filepl 152 268595 0 268351 435 417 18 27 0 8 8 lockfpl 104 9187 0 9173 27 26 1 4 0 8 0 lockfspl 48 2654 0 2642 3 2 1 2 0 8 0 sessionpl 144 103 0 86 1 0 1 1 0 8 0 pgrppl 48 623 0 606 1 0 1 1 0 8 0 ucredpl 104 26803 0 26784 1 0 1 1 0 8 0 zombiepl 144 37911 0 37909 4 3 1 1 0 8 0 processpl 1072 33556 0 33489 5 0 5 5 0 8 0 procpl 696 93884 0 93798 58 48 10 11 0 8 1 sosppl 168 292 0 292 31 31 0 1 0 8 0 sockpl 488 39691 0 39654 777 764 13 34 0 8 7 mcl64k 65536 37 0 0 3 0 3 3 0 8 0 mcl16k 16384 57 0 0 5 2 3 3 0 8 0 mcl12k 12288 33 0 0 2 0 2 2 0 8 0 mcl9k 9216 30 0 0 2 0 2 2 0 8 0 mcl8k 8192 50 0 0 4 1 3 3 0 8 0 mcl4k 4096 97 0 0 4 1 3 4 0 8 0 mcl2k2 2112 29 0 0 2 1 1 2 0 8 0 mcl2k 2048 514 0 0 39 23 16 39 0 8 0 mtagpl 96 781 0 0 13 6 7 13 0 8 0 mbufpl 256 2022 0 0 102 0 102 102 0 8 0 bufpl 288 58467 0 47925 758 4 754 754 0 8 0 anonpl 24 3143067 0 3128996 236 121 115 127 0 186 0 amapchunkpl 152 1034963 0 1034109 103 63 40 48 0 158 1 amappl16 200 60570 0 60135 355 329 26 37 0 8 0 amappl15 192 55 0 55 1 1 0 1 0 8 0 amappl14 184 406 0 386 4 2 2 2 0 8 0 amappl13 176 18 0 17 4 3 1 1 0 8 0 amappl12 168 35338 0 35303 3 1 2 2 0 8 0 amappl11 160 60 0 46 1 0 1 1 0 8 0 amappl10 152 134 0 121 1 0 1 1 0 8 0 amappl9 144 360 0 360 23 23 0 1 0 8 0 amappl8 136 1955 0 1642 12 1 11 11 0 8 0 amappl7 128 252 0 238 1 0 1 1 0 8 0 amappl6 120 1127 0 1092 3 1 2 2 0 8 0 amappl5 112 1000 0 989 1 0 1 1 0 8 0 amappl4 104 1784 0 1725 3 1 2 3 0 8 0 amappl3 96 204116 0 204039 4 1 3 3 0 8 0 amappl2 88 35643 0 35552 12 9 3 3 0 8 0 amappl1 80 130131 0 129577 25 12 13 23 0 8 0 amappl 88 328062 0 327823 7 0 7 7 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 130 0 0 3 0 3 3 0 8 0 uaddrrnd 24 33509 0 33482 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 33509 0 33482 1 0 1 1 0 8 0 vmmpekpl 168 263485 0 263425 4 0 4 4 0 8 0 vmmpepl 168 1988894 0 1986297 466 319 147 155 0 357 0 vmsppl 464 33508 0 33482 5 1 4 5 0 8 0 rwobjpl 56 477560 0 465074 215 38 177 178 0 8 0 pdppl 4096 67026 0 66964 1030 960 70 82 0 8 8 pvpl 32 8641882 0 8621939 671 474 197 368 0 265 0 pmappl 248 33508 0 33482 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2767 0 1545 36 0 36 36 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8279c7bf) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f037,ffffffff8282537a,bc,ffffffff827bb2af) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff8000ffff7690) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff800021232460,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:220 sys_exit(ffff800021232460,ffff8000212f95f0,ffff8000212f9640) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff8000212f96c0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff8000212f96c0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6f9e4d7ca7c0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffff800020d58ff0) at x86_ipi_db+0x1e sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff82cf3cd0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82cf3cd0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 reaper(ffff8000211ac830) at reaper+0x160 sys/kern/kern_exit.c:437 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800020d58ff0) at x86_ipi_db+0x1e sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff82cf3cd0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82cf3cd0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 reaper(ffff8000211ac830) at reaper+0x160 sys/kern/kern_exit.c:437 end trace frame: 0x0, count: -5