Hello,
syzbot found the following issue on:
HEAD commit: bbad591d07d4 Prepare to provide X509_STORE_get1_objects()
git tree: openbsd
console output:
https://syzkaller.appspot.com/x/log.txt?x=13c76b72180000
kernel config:
https://syzkaller.appspot.com/x/.config?x=7058272de1526588
dashboard link:
https://syzkaller.appspot.com/bug?extid=7ff0cc778d7b5ae6834f
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/ff7cafea925d/disk-bbad591d.raw.xz
bsd.gdb:
https://storage.googleapis.com/syzbot-assets/a1bef00fede7/bsd-bbad591d.gdb.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/5183c4dd6fef/kernel-bbad591d.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+7ff0cc...@syzkaller.appspotmail.com
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
db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff828a533b) at panic+0x17b sys/kern/subr_prf.c:198
__assert(ffffffff8292f3e9,ffffffff82931a65,bc,ffffffff828bf4d7) at __assert+0x29 sys/kern/subr_prf.c:157
unveil_destroy(ffff800033f12c88) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188
exit1(ffff80002a235aa0,0,0,1) at exit1+0x3d8 sys/kern/kern_exit.c:218
sys_exit(ffff80002a235aa0,ffff800037243130,ffff800037243080) at sys_exit+0x1a sys/kern/kern_exit.c:89
syscall(ffff800037243130) at syscall+0x533 mi_syscall sys/sys/syscall_mi.h:183 [inline]
syscall(ffff800037243130) at syscall+0x533 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7e7e7e3d4ca0, 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(ffffffff828a533b) at panic+0x17b sys/kern/subr_prf.c:198
__assert(ffffffff8292f3e9,ffffffff82931a65,bc,ffffffff828bf4d7) at __assert+0x29 sys/kern/subr_prf.c:157
unveil_destroy(ffff800033f12c88) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188
exit1(ffff80002a235aa0,0,0,1) at exit1+0x3d8 sys/kern/kern_exit.c:218
sys_exit(ffff80002a235aa0,ffff800037243130,ffff800037243080) at sys_exit+0x1a sys/kern/kern_exit.c:89
syscall(ffff800037243130) at syscall+0x533 mi_syscall sys/sys/syscall_mi.h:183 [inline]
syscall(ffff800037243130) at syscall+0x533 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7e7e7e3d4ca0, count: -8
ddb{0}> show registers
rdi 0
rsi 0x1
rbp 0xffff800037242e60
rbx 0xffffffff82c99cb7 cpu_info_full_primary+0x2cb7
rdx 0
rcx 0xffff80002a235aa0
rax 0xffffffff82c98ff0 cpu_info_full_primary+0x1ff0
r8 0
r9 0x8080808080808080
r10 0x8a9e5f084e16fa71
r11 0x2a5042365d2a1e67
r12 0xffffffff82c99ab8 cpu_info_full_primary+0x2ab8
r13 0
r14 0
r15 0x1
rip 0xffffffff81aa702c db_enter+0x1c
cs 0x8
rflags 0x246
rsp 0xffff800037242e50
ss 0x10
db_enter+0x1c: addq $0x8,%rsp
ddb{0}> show proc
PROC (syz-executor.7) tid=63231 pid=75241 tcnt=1 stat=onproc
flags process=1008<EXITING,SINGLEEXIT> proc=2000<WEXIT>
runpri=32, usrpri=86, slppri=32, nice=20
wchan=0x0, wmesg=, ps_single=0xffff80002a235aa0
forw=0xffffffffffffffff, list=0xffff80002a18aaa0,0xffff80002a236d48
process=0xffff800033f12c88 user=0xffff80003723e000, vmspace=0xfffffd8066e748e0
estcpu=36, cpticks=14, pctcpu=0.0, user=0, sys=1, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
96007 448334 15497 0 2 0 syz-executor.6
39146 380605 84932 0 2 0 syz-executor.2
95032 498801 73873 0 2 0 syz-executor.1
95032 3177 73873 0 2 0x4000000 syz-executor.1
405 329565 73024 0 2 0 syz-executor.5
405 413878 73024 0 2 0x4000000 syz-executor.5
405 84715 73024 0 2 0x4000000 syz-executor.5
405 455485 73024 0 2 0x4000000 syz-executor.5
15497 127628 53006 0 2 0x482 syz-executor.6
73873 399212 53006 0 3 0x82 nanoslp syz-executor.1
73024 124142 53006 0 3 0x82 nanoslp syz-executor.5
75830 423757 1 0 3 0x100083 ttyin getty
84932 161725 53006 0 3 0x82 nanoslp syz-executor.2
23290 322855 53006 0 2 0x2 syz-executor.3
73066 24203 53006 0 2 0x2 syz-executor.4
51267 451031 53006 0 2 0x482 syz-executor.7
68150 475274 53006 0 2 0x2 syz-executor.0
63631 76326 0 0 3 0x14200 bored sosplice
53006 175695 26547 0 3 0x2000082 thrsleep syz-fuzzer
53006 14434 26547 0 3 0x6000082 thrsleep syz-fuzzer
53006 43292 26547 0 3 0x6000082 wait syz-fuzzer
53006 188014 26547 0 3 0x6000082 kqread syz-fuzzer
53006 255080 26547 0 3 0x6000082 wait syz-fuzzer
53006 487809 26547 0 3 0x6000082 thrsleep syz-fuzzer
53006 348815 26547 0 3 0x6000082 thrsleep syz-fuzzer
53006 288072 26547 0 3 0x6000082 thrsleep syz-fuzzer
53006 375592 26547 0 3 0x6000082 wait syz-fuzzer
53006 79821 26547 0 3 0x6000082 wait syz-fuzzer
53006 134529 26547 0 3 0x6000082 thrsleep syz-fuzzer
53006 311146 26547 0 3 0x6000082 wait syz-fuzzer
53006 515670 26547 0 3 0x6000082 thrsleep syz-fuzzer
53006 80691 26547 0 3 0x6000082 thrsleep syz-fuzzer
53006 134332 26547 0 3 0x6000082 wait syz-fuzzer
53006 488197 26547 0 3 0x6000082 wait syz-fuzzer
53006 297667 26547 0 3 0x6000082 wait syz-fuzzer
26547 5792 75865 0 3 0x10008a sigsusp ksh
75865 285755 66936 0 3 0x9a kqread sshd
66936 496368 1 0 3 0x88 kqread sshd
53590 294722 18123 74 3 0x1100092 bpf pflogd
18123 58502 1 0 3 0x80 netio pflogd
88546 313074 84344 73 3 0x1100090 kqread syslogd
84344 406147 1 0 3 0x100082 netio syslogd
70896 506785 1 0 3 0x100080 kqread resolvd
43155 494221 0 0 3 0x14200 bored smr
48070 333026 0 0 2 0x14200 zerothread
64738 132235 0 0 3 0x14200 aiodoned aiodoned
85558 497085 0 0 3 0x14200 syncer update
84135 155180 0 0 3 0x14200 cleaner cleaner
50868 108445 0 0 3 0x14200 reaper reaper
10405 167803 0 0 3 0x14200 pgdaemon pagedaemon
63535 445245 0 0 3 0x14200 bored viomb
21475 152938 0 0 3 0x40014200 acpi0 acpi0
34597 450632 0 0 7 0x40014200 idle1
43884 63312 0 0 3 0x14200 bored softnet3
94492 251075 0 0 3 0x14200 bored softnet2
9550 429928 0 0 3 0x14200 bored softnet1
65069 332774 0 0 3 0x14200 bored softnet0
22830 495477 0 0 3 0x14200 bored systqmp
63301 425732 0 0 3 0x14200 bored systq
2994 199768 0 0 3 0x14200 tmoslp softclockmp
38812 382824 0 0 2 0x40014200 softclock
99966 368901 0 0 3 0x40014200 idle0
1 285294 0 0 3 0x80082 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 96007 (syz-executor.6) thread 0xffff80002a23e010 (448334)
Process 23290 (syz-executor.3) thread 0xffff80002a23d570 (322855)
Process 73066 (syz-executor.4) thread 0xffff80002a23d2c8 (24203)
Process 68150 (syz-executor.0) thread 0xffff80002a23dd68 (475274)
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10229 6510K 8607K 166960K 23020 0
pcb 15 22K 24K 166960K 3701 0
rtable 225 15K 16K 166960K 7487 0
pf 37 10K 11K 166960K 782 0
ifaddr 112 35K 37K 166960K 904 0
ifgroup 64 2K 3K 166960K 1330 0
sysctl 4 1K 5K 166960K 17 0
counters 68 36K 37K 166960K 798 0
ioctlops 0 0K 4K 166960K 3883 0
iov 0 0K 28K 166960K 4592 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1719 107K 108K 166960K 14389 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 2 1K 9K 166960K 490 0
VM map 2 1K 1K 166960K 2 0
sem 12 0K 0K 166960K 4932 0
dirhash 12 2K 3K 166960K 315 0
ACPI 1697 195K 286K 166960K 12548 0
file desc 17 61K 89K 166960K 44117 0
sigio 0 0K 0K 166960K 1727 0
proc 96 93K 128K 166960K 6604 0
subproc 104 6K 8K 166960K 1933 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 0 0K 0K 166960K 3900 0
in_multi 88 6K 7K 166960K 2093 0
ether_multi 1 0K 0K 166960K 76 0
mrt 1 0K 0K 166960K 37 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 277 1235K 1235K 166960K 277 0
exec 0 0K 1K 166960K 8175 0
pfkey data 0 0K 0K 166960K 142 0
tdb 3 0K 0K 166960K 3 0
VM swap 8 62K 64K 166960K 10 0
UVM amap 714 1785K 1791K 166960K 408012 0
UVM aobj 131 4K 4K 166960K 135 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
ip6_options 0 0K 1K 166960K 2122 0
NDP 14 0K 1K 166960K 669 0
temp 74 6772K 137848K 166960K 516484 0
kqueue 6 10K 33K 166960K 3228 0
SYN cache 2 36K 44K 166960K 3 0
ddb{0}> 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 2852 0 2851 31 30 1 4 0 8 0
rtentry 112 2111 0 2011 6 2 4 4 0 8 0
unpcb 144 39637 0 39629 413 412 1 13 0 8 0
syncache 336 400 0 400 82 82 0 1 0 8 0
sackhl 24 3 33 3 1 1 0 1 0 8 0
tcpqe 32 648 0 648 59 59 0 1 0 8 0
tcpcb 808 14078 0 14060 417 413 4 16 0 8 0
arp 120 475 0 459 1 0 1 1 0 8 0
inpcb 392 36946 0 36928 670 666 4 17 0 8 0
nd6 136 456 0 434 1 0 1 1 0 8 0
pkpcb 40 253 0 253 29 29 0 1 0 8 0
kcovpl 48 144 0 136 1 0 1 1 0 8 0
ppxss 1168 105 0 105 32 32 0 1 0 8 0
pffrag 232 264 0 260 11 10 1 1 0 482 0
pffrnode 88 261 0 257 11 10 1 1 0 8 0
pffrent 40 729 0 725 12 11 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 1356 0 1328 1 0 1 1 0 8 0
pfstkey 128 1436 0 1408 5 3 2 2 0 8 0
pfstate 376 1436 0 1408 26 22 4 6 0 8 1
pfrule 1344 21 0 16 2 1 1 2 0 8 0
art_heap8 4096 5 0 4 3 2 1 3 0 8 0
art_heap4 256 7325 0 6904 80 52 28 33 0 8 0
art_table 32 7330 0 6908 7 3 4 5 0 8 0
art_node 16 2067 0 1976 1 0 1 1 0 8 0
semupl 112 6 0 6 1 1 0 1 0 8 0
semapl 112 4927 0 4917 1 0 1 1 0 8 0
shmpl 112 132 0 4 4 0 4 4 0 8 0
dirhash 1024 219 0 202 3 0 3 3 0 8 0
dino2pl 256 59363 0 57621 110 0 110 110 0 8 0
ffsino 272 59363 0 57621 117 0 117 117 0 8 0
nchpl 144 119026 0 117359 64 0 64 64 0 8 0
uvmvnodes 80 8622 0 0 176 0 176 176 0 8 0
vnodes 216 8622 0 0 479 0 479 479 0 8 0
namei 1024 401494 0 401493 26 25 1 2 0 8 0
percpumem 16 413 0 365 1 0 1 1 0 8 0
vcpupl 2048 514 0 2 64 0 64 64 0 8 0
vmpool 696 674 0 162 49 2 47 47 0 8 0
kstatmem 264 758 0 730 5 2 3 3 0 8 0
scxspl 216 365486 0 365486 30 29 1 8 1 8 1
plimitpl 152 5254 0 5239 1 0 1 1 0 8 0
sigapl 424 44267 0 44220 12 5 7 9 0 8 0
futexpl 64 387016 0 387016 6 5 1 1 0 8 1
knotepl 120 1572 0 0 22 8 14 17 0 8 0
kqueuepl 216 8105 0 8100 128 127 1 8 0 8 0
pipepl 320 6912 0 6884 185 182 3 8 0 8 0
fdescpl 496 44143 0 44116 7 3 4 5 0 8 0
filepl 152 265417 0 265196 473 461 12 22 0 8 0
lockfpl 104 11997 0 11996 16 15 1 2 0 8 0
lockfspl 48 3922 0 3921 1 0 1 1 0 8 0
sessionpl 144 169 0 153 1 0 1 1 0 8 0
pgrppl 48 1223 0 1207 1 0 1 1 0 8 0
ucredpl 104 37954 0 37932 1 0 1 1 0 8 0
zombiepl 144 44393 0 44392 9 8 1 1 0 8 0
processpl 1136 44267 0 44220 6 1 5 6 0 8 0
procpl 680 110191 0 110124 16 7 9 10 0 8 0
srpgc 96 184 0 184 60 60 0 1 0 8 0
sosppl 168 529 0 529 55 55 0 1 0 8 0
sockpl 584 79952 0 79925 827 823 4 26 0 8 0
mcl64k 65536 26 0 0 4 1 3 3 0 8 0
mcl16k 16384 17 0 0 3 0 3 3 0 8 0
mcl12k 12288 17 0 0 2 0 2 2 0 8 0
mcl9k 9216 20 0 0 2 0 2 2 0 8 0
mcl8k 8192 50 0 0 7 3 4 6 0 8 0
mcl4k 4096 23 0 0 3 0 3 3 0 8 0
mcl2k2 2112 9 0 0 1 0 1 1 0 8 0
mcl2k 2048 405 0 0 35 16 19 35 0 8 0
mtagpl 96 121 0 0 3 0 3 3 0 8 0
mbufpl 256 8858 0 0 427 0 427 427 0 8 0
bufpl 280 70358 0 61736 617 0 617 617 0 8 0
anonpl 24 4044230 0 4030596 336 207 129 168 0 186 0
amapchunkpl 152 1318539 0 1317687 290 249 41 67 0 158 0
amappl16 200 74875 0 74086 380 334 46 55 0 8 0
amappl15 192 20 0 18 1 0 1 1 0 8 0
amappl14 184 612 0 592 6 4 2 2 0 8 0
amappl13 176 87 0 85 1 0 1 1 0 8 0
amappl12 168 47088 0 47045 11 8 3 3 0 8 0
amappl11 160 61 0 52 1 0 1 1 0 8 0
amappl10 152 254 0 235 1 0 1 1 0 8 0
amappl9 144 452 0 452 82 82 0 1 0 8 0
amappl8 136 2221 0 1958 13 2 11 11 0 8 0
amappl7 128 643 0 618 2 0 2 2 0 8 0
amappl6 120 2732 0 2696 7 5 2 2 0 8 0
amappl5 112 1049 0 1041 1 0 1 1 0 8 0
amappl4 104 2107 0 2047 2 0 2 2 0 8 0
amappl3 96 253310 0 253236 4 1 3 3 0 8 0
amappl2 88 46627 0 46539 4 1 3 3 0 8 0
amappl1 80 174600 0 174134 24 12 12 23 0 8 0
amappl 88 405228 0 404889 12 3 9 9 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 134 0 4 3 0 3 3 0 8 0
uaddrrnd 24 44817 0 44277 4 0 4 4 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 44817 0 44277 4 0 4 4 0 8 0
vmmpekpl 168 275831 0 275702 7 0 7 7 0 8 0
vmmpepl 168 2611192 0 2607985 1431 1235 196 242 0 357 21
vmsppl 448 44816 0 44277 68 7 61 61 0 8 0
rwobjpl 56 581113 0 570227 195 39 156 158 0 8 0
pdppl 4096 89641 0 89066 2466 1891 575 579 0 8 0
pvpl 32 44647 0 0 362 1 361 361 0 265 0
pmappl 248 44816 0 44277 35 1 34 34 0 8 0
extentpl 40 56 0 38 1 0 1 1 0 8 0
phpool 112 4793 0 3356 42 0 42 42 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(ffffffff828a533b) at panic+0x17b sys/kern/subr_prf.c:198
__assert(ffffffff8292f3e9,ffffffff82931a65,bc,ffffffff828bf4d7) at __assert+0x29 sys/kern/subr_prf.c:157
unveil_destroy(ffff800033f12c88) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188
exit1(ffff80002a235aa0,0,0,1) at exit1+0x3d8 sys/kern/kern_exit.c:218
sys_exit(ffff80002a235aa0,ffff800037243130,ffff800037243080) at sys_exit+0x1a sys/kern/kern_exit.c:89
syscall(ffff800037243130) at syscall+0x533 mi_syscall sys/sys/syscall_mi.h:183 [inline]
syscall(ffff800037243130) at syscall+0x533 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7e7e7e3d4ca0, count: -8
ddb{0}> machine ddbcpu 1
Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp
x86_ipi_db(ffff800029cebff0) 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
acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206
sched_idle(ffff800029cebff0) at sched_idle+0x41e sys/kern/kern_sched.c:183
end trace frame: 0x0, count: 10
ddb{1}> trace
x86_ipi_db(ffff800029cebff0) 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
acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206
sched_idle(ffff800029cebff0) at sched_idle+0x41e sys/kern/kern_sched.c:183
end trace frame: 0x0, count: -5
---
This report is generated by a bot. It may contain errors.
See
https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at
syzk...@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup