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+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff825a9d3c) at panic+0x177 sys/kern/subr_prf.c:198
__assert(ffffffff82623463,ffffffff82627923,bc,ffffffff825c4496) at __assert+0x25 sys/kern/subr_prf.c:157
unveil_destroy(ffff8000ffff25c8) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188
exit1(ffff80002e6d6000,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:219
sys_exit(ffff80002e6d6000,ffff800027c006a0,ffff800027c006f0) at sys_exit+0x16 sys/kern/kern_exit.c:89
syscall(ffff800027c00770) at syscall+0x438 mi_syscall sys/sys/syscall_mi.h:101 [inline]
syscall(ffff800027c00770) at syscall+0x438 sys/arch/amd64/amd64/trap.c:599
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffffb7d0, 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+0x18 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff825a9d3c) at panic+0x177 sys/kern/subr_prf.c:198
__assert(ffffffff82623463,ffffffff82627923,bc,ffffffff825c4496) at __assert+0x25 sys/kern/subr_prf.c:157
unveil_destroy(ffff8000ffff25c8) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188
exit1(ffff80002e6d6000,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:219
sys_exit(ffff80002e6d6000,ffff800027c006a0,ffff800027c006f0) at sys_exit+0x16 sys/kern/kern_exit.c:89
syscall(ffff800027c00770) at syscall+0x438 mi_syscall sys/sys/syscall_mi.h:101 [inline]
syscall(ffff800027c00770) at syscall+0x438 sys/arch/amd64/amd64/trap.c:599
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffffb7d0, count: -8
ddb{0}> show registers
rdi 0
rsi 0x1
rbp 0xffff800027c004b0
rbx 0xffffffff82952b8f cpu_info_full_primary+0x2b8f
rdx 0
rcx 0
rax 0xffff80002e6d6000
r8 0x101010101010101
r9 0x8080808080808080
r10 0xea3ca00f939dece1
r11 0xc4fffde950d9a900
r12 0xffffffff82952990 cpu_info_full_primary+0x2990
r13 0
r14 0
r15 0x1
rip 0xffffffff8157f0e8 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff800027c004a0
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb{0}> show proc
PROC (syz-executor.4) pid=345886 stat=onproc
flags process=1008<EXITING,SINGLEEXIT> proc=2000<WEXIT>
pri=32, usrpri=86, nice=20
forw=0xffffffffffffffff, list=0xffff80002e6d67e0,0xffff800021324fd0
process=0xffff8000ffff25c8 user=0xffff800027bfb000, vmspace=0xfffffd807640c178
estcpu=36, cpticks=13, pctcpu=0.4
user=0, sys=2, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
34036 53842 68062 0 2 0x480 syz-executor.7
34036 325038 68062 0 3 0x4000080 netcon syz-executor.7
34036 352830 68062 0 3 0x4000080 fsleep syz-executor.7
74019 56082 10701 0 3 0x80 nanoslp syz-executor.3
74019 272791 10701 0 3 0x4000080 netcon syz-executor.3
74019 17643 10701 0 3 0x4000080 fsleep syz-executor.3
10620 439723 60483 0 3 0x80 nanoslp syz-executor.5
10620 454243 60483 0 3 0x4000080 netcon syz-executor.5
10620 269002 60483 0 3 0x4000080 fsleep syz-executor.5
10620 110854 60483 0 3 0x4000080 fsleep syz-executor.5
41576 138087 53070 0 3 0x82 nanoslp syz-executor.6
89378 424268 53070 0 3 0x82 nanoslp syz-executor.4
34945 388027 53070 0 3 0x82 piperd syz-executor.2
83177 493318 53070 0 2 0x2 syz-executor.1
10701 299417 53070 0 3 0x82 nanoslp syz-executor.3
60483 12447 53070 0 3 0x82 nanoslp syz-executor.5
68062 2293 53070 0 3 0x82 nanoslp syz-executor.7
66586 502922 1 0 3 0x100083 ttyopn getty
18183 18074 53070 0 3 0x82 piperd syz-executor.0
7908 318831 0 0 3 0x14200 acct acct
70317 190162 0 0 3 0x14280 nfsidl nfsio
78318 167174 0 0 3 0x14280 nfsidl nfsio
73117 94620 0 0 3 0x14280 nfsidl nfsio
10850 366966 0 0 3 0x14280 nfsidl nfsio
17515 230367 0 0 3 0x14280 nfsidl nfsio
3932 508572 0 0 3 0x14280 nfsidl nfsio
89679 169657 0 0 3 0x14280 nfsidl nfsio
81365 293729 0 0 3 0x14280 nfsidl nfsio
73342 435938 0 0 3 0x14280 nfsidl nfsio
7098 401995 0 0 3 0x14280 nfsidl nfsio
6394 264016 0 0 3 0x14280 nfsidl nfsio
39197 320840 0 0 3 0x14280 nfsidl nfsio
61778 454290 0 0 3 0x14280 nfsidl nfsio
82420 480015 0 0 3 0x14280 nfsidl nfsio
93333 502247 0 0 3 0x14280 nfsidl nfsio
76357 95772 0 0 3 0x14280 nfsidl nfsio
46777 98899 0 0 3 0x14280 nfsidl nfsio
49801 37045 0 0 3 0x14280 nfsidl nfsio
20615 490816 0 0 3 0x14280 nfsidl nfsio
22704 77567 0 0 3 0x14280 nfsidl nfsio
72225 108244 0 0 3 0x14200 bored sosplice
53070 480075 40818 0 3 0x82 thrsleep syz-fuzzer
53070 138438 40818 0 2 0x4000482 syz-fuzzer
53070 190888 40818 0 3 0x4000082 thrsleep syz-fuzzer
53070 284562 40818 0 3 0x4000082 thrsleep syz-fuzzer
53070 134511 40818 0 3 0x4000082 wait syz-fuzzer
53070 213122 40818 0 3 0x4000082 thrsleep syz-fuzzer
53070 290447 40818 0 3 0x4000082 kqread syz-fuzzer
53070 13768 40818 0 3 0x4000082 wait syz-fuzzer
53070 98340 40818 0 3 0x4000082 thrsleep syz-fuzzer
53070 288316 40818 0 3 0x4000082 wait syz-fuzzer
53070 238606 40818 0 3 0x4000082 wait syz-fuzzer
53070 321851 40818 0 3 0x4000082 wait syz-fuzzer
53070 78416 40818 0 3 0x4000082 wait syz-fuzzer
53070 55070 40818 0 3 0x4000082 wait syz-fuzzer
53070 67312 40818 0 3 0x4000082 thrsleep syz-fuzzer
53070 470664 40818 0 3 0x4000082 wait syz-fuzzer
40818 369521 91647 0 3 0x10008a sigsusp ksh
91647 491915 66034 0 3 0x9a kqread sshd
66034 396920 1 0 3 0x88 kqread sshd
1127 392353 56750 74 3 0x1100092 bpf pflogd
56750 413878 1 0 3 0x80 netio pflogd
57336 253882 49704 73 3 0x1100090 kqread syslogd
49704 271544 1 0 3 0x100082 netio syslogd
13726 112679 1 0 3 0x100080 kqread resolvd
15100 183778 0 0 3 0x14200 bored smr
96591 336744 0 0 2 0x14200 zerothread
77696 513630 0 0 3 0x14200 aiodoned aiodoned
51155 151043 0 0 3 0x14200 syncer update
83624 31886 0 0 3 0x14200 cleaner cleaner
53772 277337 0 0 2 0x14200 reaper
71837 229440 0 0 3 0x14200 pgdaemon pagedaemon
53266 17719 0 0 3 0x14200 bored viomb
91209 131505 0 0 3 0x40014200 acpi0 acpi0
24579 444857 0 0 7 0x40014200 idle1
48734 210787 0 0 3 0x14200 bored softnet
60228 244641 0 0 3 0x14200 bored softnet
8577 421068 0 0 3 0x14200 bored softnet
80053 7700 0 0 3 0x14200 bored softnet
6056 442715 0 0 3 0x14200 bored systqmp
48607 59177 0 0 3 0x14200 bored systq
87472 497376 0 0 3 0x40014200 bored softclock
42403 501392 0 0 3 0x40014200 idle0
1 137444 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10229 6570K 6669K 78643K 12629 0
pcb 13 16K 19K 78643K 1640 0
rtable 217 16K 16K 78643K 1586 0
ifaddr 87 19K 20K 78643K 579 0
sysctl 3 1K 1K 78643K 5 0
counters 58 35K 36K 78643K 478 0
ioctlops 0 0K 4K 78643K 2262 0
iov 0 0K 28K 78643K 1925 0
mount 1 1K 1K 78643K 1 0
log 0 0K 0K 78643K 4 0
vnodes 1337 84K 84K 78643K 3328 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 3 5K 13K 78643K 106 0
VM map 2 1K 1K 78643K 2 0
sem 9 3K 5K 78643K 20 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12548 0
file desc 13 45K 85K 78643K 5934 0
sigio 0 0K 0K 78643K 177 0
proc 68 91K 128K 78643K 1585 0
subproc 104 6K 6K 78643K 468 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 504 0
in_multi 88 5K 6K 78643K 564 0
ether_multi 1 0K 0K 78643K 22 0
mrt 1 0K 0K 78643K 18 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 1275 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 425 530K 531K 78643K 42392 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 196 0
NDP 15 0K 2K 78643K 195 0
temp 147 4698K 70230K 78643K 123371 0
kqueue 6 10K 26K 78643K 717 0
SYN cache 2 16K 16K 78643K 2 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 385 0 384 5 4 1 3 0 8 0
rtentry 112 538 0 446 4 1 3 4 0 8 0
unpcb 144 5460 0 5450 61 60 1 6 0 8 0
syncache 296 47 0 47 10 9 1 1 0 8 1
tcpqe 32 76 0 76 6 5 1 1 0 8 1
tcpcb 776 7829 0 7820 107 99 8 18 0 8 6
arp 120 76 0 60 1 0 1 1 0 8 0
inpcb 368 12052 0 12043 119 111 8 22 0 8 6
nd6 48 117 0 96 1 0 1 1 0 8 0
kcovpl 48 36 0 28 1 0 1 1 0 8 0
mppekey 1024 3 0 3 1 1 0 1 0 8 0
ppxss 1256 150 0 150 13 12 1 1 0 8 1
pppxif 1448 28 0 28 10 10 0 1 0 8 0
pfstscr 40 46 0 45 2 1 1 1 0 8 0
pffrag 232 70 0 70 1 1 0 1 0 482 0
pffrnode 88 70 0 70 1 1 0 1 0 8 0
pffrent 40 143 0 143 1 1 0 1 0 8 0
pfosfp 40 1431 0 1007 5 0 5 5 0 8 0
pfosfpen 112 1431 0 716 21 0 21 21 0 8 0
pfanchor 1280 904 18 392 47 4 43 43 0 8 0
pfstitem 24 106 0 102 1 0 1 1 0 8 0
pfstkey 120 196 0 192 2 1 1 2 0 8 0
pfstate 384 150 0 147 5 4 1 4 0 8 0
pfrule 1344 21 0 20 2 1 1 2 0 8 0
rttmr 136 7 0 7 2 2 0 1 0 8 0
art_heap8 4096 12 0 11 10 9 1 3 0 8 0
art_heap4 256 2585 0 2178 43 17 26 29 0 8 0
art_table 32 2597 0 2189 4 0 4 4 0 8 0
art_node 16 537 0 457 1 0 1 1 0 8 0
sysvmsgpl 40 17 0 15 4 3 1 1 0 8 0
semupl 112 5 0 5 1 1 0 1 0 8 0
semapl 112 7 0 0 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 9029 0 7558 93 0 93 93 0 8 0
ffsino 272 9029 0 7558 99 0 99 99 0 8 0
nchpl 144 17229 0 15583 63 0 63 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 66277 0 66277 3 1 2 2 0 8 2
percpumem 16 251 0 210 1 0 1 1 0 8 0
vcpupl 2048 126 0 0 16 0 16 16 0 8 0
vmpool 568 150 0 24 10 1 9 9 0 8 0
kstatmem 264 236 0 206 6 3 3 3 0 8 0
scsiplug 72 3 0 3 1 1 0 1 0 8 0
scxspl 216 48212 0 48212 13 12 1 8 0 8 1
plimitpl 152 1192 0 1177 1 0 1 1 0 8 0
sigapl 424 6217 0 6153 9 1 8 8 0 8 0
futexpl 64 65023 0 65019 2 1 1 1 0 8 0
knotepl 120 571 0 0 10 0 10 10 0 8 0
kqueuepl 216 1457 0 1452 22 21 1 6 0 8 0
pipepl 320 1845 0 1817 58 55 3 11 0 8 0
fdescpl 496 6178 0 6155 6 2 4 5 0 8 0
filepl 152 50589 0 50356 92 77 15 24 0 8 3
lockfpl 104 2961 0 2959 5 3 2 2 0 8 1
lockfspl 48 628 0 626 1 0 1 1 0 8 0
sessionpl 144 53 0 37 1 0 1 1 0 8 0
pgrppl 48 75 0 59 1 0 1 1 0 8 0
ucredpl 104 6669 0 6660 1 0 1 1 0 8 0
zombiepl 144 7038 0 7036 3 2 1 1 0 8 0
processpl 1072 6217 0 6153 5 0 5 5 0 8 0
procpl 672 16796 0 16709 19 10 9 10 0 8 0
srpgc 96 32 0 32 11 11 0 1 0 8 0
sosppl 168 67 0 67 10 9 1 1 0 8 1
sockpl 488 17897 0 17877 339 328 11 40 0 8 8
mcl64k 65536 6 0 0 1 0 1 1 0 8 0
mcl16k 16384 5 0 0 1 0 1 1 0 8 0
mcl12k 12288 7 0 0 1 0 1 1 0 8 0
mcl9k 9216 5 0 0 1 0 1 1 0 8 0
mcl8k 8192 17 0 0 3 0 3 3 0 8 0
mcl4k 4096 17 0 0 3 0 3 3 0 8 0
mcl2k2 2112 3 0 0 1 0 1 1 0 8 0
mcl2k 2048 515 0 0 64 3 61 64 0 8 0
mtagpl 96 18 0 0 1 0 1 1 0 8 0
mbufpl 256 1043 0 0 54 0 54 54 0 8 0
bufpl 288 12881 0 6549 453 0 453 453 0 8 0
anonpl 24 1271441 0 1254687 161 42 119 133 0 186 0
amapchunkpl 152 118670 0 117896 57 23 34 41 0 158 0
amappl16 200 12111 0 11557 100 68 32 45 0 8 0
amappl15 192 23 0 22 1 0 1 1 0 8 0
amappl14 184 230 0 220 2 0 2 2 0 8 0
amappl13 176 10 0 10 2 2 0 1 0 8 0
amappl12 168 760 0 757 1 0 1 1 0 8 0
amappl11 160 60 0 51 1 0 1 1 0 8 0
amappl10 152 88 0 76 1 0 1 1 0 8 0
amappl9 144 986 0 985 3 2 1 1 0 8 0
amappl8 136 402 0 302 4 0 4 4 0 8 0
amappl7 128 230 0 204 2 0 2 2 0 8 0
amappl6 120 333 0 317 3 2 1 3 0 8 0
amappl5 112 296 0 290 1 0 1 1 0 8 0
amappl4 104 796 0 764 2 1 1 2 0 8 0
amappl3 96 17890 0 17842 2 0 2 2 0 8 0
amappl2 88 6941 0 6878 3 1 2 3 0 8 0
amappl1 80 143491 0 142843 24 8 16 23 0 8 0
amappl 88 41372 0 41144 8 2 6 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 6328 0 6178 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 6328 0 6178 1 0 1 1 0 8 0
vmmpekpl 168 51916 0 51836 4 0 4 4 0 8 0
vmmpepl 168 578751 0 575994 296 154 142 162 0 357 3
vmsppl 368 6327 0 6178 15 1 14 14 0 8 0
rwobjpl 56 158621 0 150886 122 11 111 114 0 8 0
pdppl 4096 12663 0 12482 424 235 189 190 0 8 8
pvpl 32 2473295 0 2451294 353 154 199 275 0 265 0
pmappl 248 6327 0 6178 11 1 10 10 0 8 0
extentpl 40 56 0 38 1 0 1 1 0 8 0
phpool 112 1421 0 392 30 0 30 30 0 8 0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff825a9d3c) at panic+0x177 sys/kern/subr_prf.c:198
__assert(ffffffff82623463,ffffffff82627923,bc,ffffffff825c4496) at __assert+0x25 sys/kern/subr_prf.c:157
unveil_destroy(ffff8000ffff25c8) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188
exit1(ffff80002e6d6000,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:219
sys_exit(ffff80002e6d6000,ffff800027c006a0,ffff800027c006f0) at sys_exit+0x16 sys/kern/kern_exit.c:89
syscall(ffff800027c00770) at syscall+0x438 mi_syscall sys/sys/syscall_mi.h:101 [inline]
syscall(ffff800027c00770) at syscall+0x438 sys/arch/amd64/amd64/trap.c:599
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffffb7d0, count: -8
ddb{0}> machine ddbcpu 1
Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp
x86_ipi_db(ffff800020dd8ff0) at x86_ipi_db+0x1a 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+0x23
acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206
sched_idle(ffff800020dd8ff0) at sched_idle+0x417 sys/kern/kern_sched.c:175
end trace frame: 0x0, count: 10
ddb{1}> trace
x86_ipi_db(ffff800020dd8ff0) at x86_ipi_db+0x1a 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+0x23
acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206
sched_idle(ffff800020dd8ff0) at sched_idle+0x417 sys/kern/kern_sched.c:175
end trace frame: 0x0, count: -5