Hello,
syzbot found the following crash on:
HEAD commit: e52e7f29 Provide TLSEXT_TYPE_* aliases for TLS 1.3.
git tree: openbsd
console output:
https://syzkaller.appspot.com/x/log.txt?x=11878885e00000
kernel config:
https://syzkaller.appspot.com/x/.config?x=bf87b6915a88cd0d
dashboard link:
https://syzkaller.appspot.com/bug?extid=c524b36bfb5d5bae1fdd
Unfortunately, I don't have any reproducer for this crash yet.
IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by:
syzbot+c524b3...@syzkaller.appspotmail.com
panic: unhandled af 187
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*205718 11857 0 0 0x4000000 1K syz-executor.0
327855 46189 0 0 0 0 syz-executor.1
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821d81f2) at panic+0x15c sys/kern/subr_prf.c:207
unhandled_af(bb) at unhandled_af+0x16
pf_addrcpy(ffff800021bbf908,ffff800021bbfc00,bb) at pf_addrcpy+0x99
sys/net/pf.c:409
pfioctl(4900,c0504417,ffff800021bbfc00,1,ffff800020ad73d8) at
pfioctl+0x43cf sys/net/pf_ioctl.c:1827
VOP_IOCTL(fffffd806f6c85d0,c0504417,ffff800021bbfc00,1,fffffd807f7be720,ffff800020ad73d8)
at
VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291
vn_ioctl(fffffd806c9c8e50,c0504417,ffff800021bbfc00,ffff800020ad73d8) at
vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533
sys_ioctl(ffff800020ad73d8,ffff800021bbfd18,ffff800021bbfd60) at
sys_ioctl+0x5b9
syscall(ffff800021bbfde0) at syscall+0x4a4 mi_syscall
sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800021bbfde0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x196106a0710, count: 5
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
unhandled af 187
ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821d81f2) at panic+0x15c sys/kern/subr_prf.c:207
unhandled_af(bb) at unhandled_af+0x16
pf_addrcpy(ffff800021bbf908,ffff800021bbfc00,bb) at pf_addrcpy+0x99
sys/net/pf.c:409
pfioctl(4900,c0504417,ffff800021bbfc00,1,ffff800020ad73d8) at
pfioctl+0x43cf sys/net/pf_ioctl.c:1827
VOP_IOCTL(fffffd806f6c85d0,c0504417,ffff800021bbfc00,1,fffffd807f7be720,ffff800020ad73d8)
at
VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291
vn_ioctl(fffffd806c9c8e50,c0504417,ffff800021bbfc00,ffff800020ad73d8) at
vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533
sys_ioctl(ffff800020ad73d8,ffff800021bbfd18,ffff800021bbfd60) at
sys_ioctl+0x5b9
syscall(ffff800021bbfde0) at syscall+0x4a4 mi_syscall
sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800021bbfde0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x196106a0710, count: -10
ddb{1}> show registers
rdi 0xffffffff8144bd17 db_enter+0x17
rsi 0x933
rbp 0xffff800021bbf7c0
rbx 0xffff800021bbf870
rdx 0x934
rcx 0xffff800020b7c000
rax 0xffff800020b7c000
r8 0xffffffff81babddf kprintf+0x16f
r9 0x1
r10 0x25
r11 0xa291349947e3b93e
r12 0x3000000008
r13 0xffff800021bbf7d0
r14 0x100
r15 0x1
rip 0xffffffff8144bd18 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff800021bbf7b0
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb{1}> show proc
PROC (syz-executor.0) pid=205718 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=86, usrpri=86, nice=20
forw=0xffffffffffffffff, list=0xffff800020ad6ee8,0xffffffff82657d48
process=0xffff800020af5548 user=0xffff800021bba000,
vmspace=0xfffffd807f0005c0
estcpu=36, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
11857 375294 74588 0 2 0 syz-executor.0
*11857 205718 74588 0 7 0x4000000 syz-executor.0
46189 327855 73948 0 7 0 syz-executor.1
46189 227118 73948 0 2 0x4000000 syz-executor.1
73948 396199 72681 0 3 0x82 nanosleep syz-executor.1
74588 63589 72681 0 3 0x82 nanosleep syz-executor.0
72681 424608 14464 0 3 0x82 thrsleep syz-fuzzer
72681 510091 14464 0 3 0x4000082 thrsleep syz-fuzzer
72681 346138 14464 0 3 0x4000082 thrsleep syz-fuzzer
72681 393962 14464 0 3 0x4000082 thrsleep syz-fuzzer
72681 52059 14464 0 3 0x4000082 thrsleep syz-fuzzer
72681 158360 14464 0 3 0x4000082 thrsleep syz-fuzzer
72681 449837 14464 0 3 0x4000082 thrsleep syz-fuzzer
72681 250959 14464 0 3 0x4000082 kqread syz-fuzzer
72681 271355 14464 0 3 0x4000082 thrsleep syz-fuzzer
72681 457212 14464 0 3 0x4000082 thrsleep syz-fuzzer
14464 374863 86048 0 3 0x10008a pause ksh
86048 33544 57781 0 3 0x92 select sshd
13442 395800 1 0 3 0x100083 ttyin getty
57781 224397 1 0 3 0x80 select sshd
23985 259340 52756 74 3 0x100092 bpf pflogd
52756 282032 1 0 3 0x80 netio pflogd
44791 353554 56995 73 3 0x100090 kqread syslogd
56995 414868 1 0 3 0x100082 netio syslogd
48212 194126 1 77 3 0x100090 poll dhclient
80614 244201 1 0 3 0x80 poll dhclient
35772 126709 0 0 2 0x14200 zerothread
10811 393467 0 0 3 0x14200 aiodoned aiodoned
80338 297705 0 0 3 0x14200 syncer update
13184 208089 0 0 3 0x14200 cleaner cleaner
94774 418980 0 0 3 0x14200 reaper reaper
37623 295424 0 0 3 0x14200 pgdaemon pagedaemon
91166 520858 0 0 3 0x14200 bored crynlk
2914 28663 0 0 3 0x14200 bored crypto
21947 248943 0 0 3 0x40014200 acpi0 acpi0
14735 501334 0 0 3 0x40014200 idle1
47584 365234 0 0 3 0x14200 bored softnet
63038 424601 0 0 3 0x14200 bored systqmp
20647 178661 0 0 3 0x14200 bored systq
7325 381812 0 0 3 0x40014200 bored softclock
45066 448514 0 0 3 0x40014200 idle0
4042 325813 0 0 3 0x14200 bored smr
1 60294 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{1}> show all locks
Process 11857 (syz-executor.0) thread 0xffff800020ad73d8 (205718)
exclusive rwlock netlock r = 0 (0xffffffff8249bdb8)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 pfioctl+0x15f sys/net/pf_ioctl.c:1028
#2 VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291
#3 vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533
#4 sys_ioctl+0x5b9
#5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#6 Xsyscall+0x128
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82624950)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline]
#1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555
#2 Xsyscall+0x128
ddb{1}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 9491 6538K 11903K 78643K 94798 0
pcb 13 8K 8K 78643K 1706 0
rtable 108 4K 4K 78643K 223 0
ifaddr 49 11K 11K 78643K 61 0
counters 39 33K 33K 78643K 39 0
ioctlops 0 0K 4K 78643K 3934 0
iov 0 0K 16K 78643K 265 0
mount 1 1K 1K 78643K 1 0
vnodes 1259 79K 79K 78643K 28611 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 9K 78643K 419 0
VM map 2 1K 1K 78643K 2 0
sem 12 0K 1K 78643K 292 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1809 196K 290K 78643K 12766 0
file desc 6 17K 25K 78643K 30429 0
sigio 0 0K 0K 78643K 206 0
proc 104 65K 95K 78643K 1043 0
subproc 32 2K 2K 78643K 34 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 287 0
in_multi 33 2K 2K 78643K 114 0
ether_multi 1 0K 0K 78643K 1 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 43 201K 201K 78643K 43 0
exec 0 0K 1K 78643K 336 0
pagedep 1 8K 8K 78643K 1 0
inodedep 1 32K 32K 78643K 1 0
newblk 1 0K 0K 78643K 1 0
VM swap 7 26K 26K 78643K 7 0
UVM amap 134 39K 55K 78643K 69109 0
UVM aobj 130 5K 5K 78643K 130 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 5 0
NDP 7 0K 0K 78643K 13 0
temp 116 3026K 3102K 78643K 96374 0
kqueue 0 0K 0K 78643K 7 0
SYN cache 2 16K 16K 78643K 2 0
ddb{1}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg
Idle
arp 64 6 0 0 1 0 1 1 0
8 0
plcache 128 20 0 0 1 0 1 1 0
8 0
rtpcb 80 57 0 55 1 0 1 1 0
8 0
rtentry 112 45 0 1 2 0 2 2 0
8 0
unpcb 120 45099 0 45089 21 20 1 2 0
8 0
syncache 264 4 0 4 1 1 0 1 0
8 0
sackhl 24 17 0 17 9 9 0 1 0
8 0
tcpcb 544 5029 0 5025 1 0 1 1 0
8 0
inpcb 280 18287 0 18278 6 5 1 2 0
8 0
nd6 48 4 0 0 1 0 1 1 0
8 0
ppxss 1128 2 0 2 1 1 0 1 0
8 0
pfosfp 40 846 0 423 5 0 5 5 0
8 0
pfosfpen 112 1428 0 714 21 0 21 21 0
8 0
pfstitem 24 34 0 32 1 0 1 1 0
8 0
pfstkey 112 34 0 32 1 0 1 1 0
8 0
pfstate 328 34 0 32 3 2 1 2 0
8 0
pfrule 1360 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 212 0 0 14 0 14 14 0
8 0
art_table 32 213 0 0 2 0 2 2 0
8 0
art_node 16 44 0 4 1 0 1 1 0
8 0
semapl 112 290 0 280 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
dino1pl 128 33241 0 31824 46 0 46 46 0
8 0
ffsino 272 33241 0 31824 96 1 95 95 0
8 0
nchpl 144 73606 0 71888 66 2 64 64 0
8 0
uvmvnodes 72 5926 0 0 108 0 108 108 0
8 0
vnodes 208 5926 0 0 312 0 312 312 0
8 0
namei 1024 199726 0 199726 1 0 1 1 0
8 1
percpumem 16 30 0 0 1 0 1 1 0
8 0
vcpupl 1984 5 0 3 1 0 1 1 0
8 0
vmpool 560 5 0 3 1 0 1 1 0
8 0
scsiplug 64 1 0 1 1 1 0 1 0
8 0
scxspl 192 193787 0 193787 14 13 1 7 0
8 1
plimitpl 152 106 0 98 1 0 1 1 0
8 0
sigapl 432 30628 0 30612 3 1 2 3 0
8 0
futexpl 56 215988 0 215988 1 0 1 1 0
8 1
knotepl 112 548 0 529 1 0 1 1 0
8 0
kqueuepl 104 1814 0 1812 1 0 1 1 0
8 0
pipepl 112 4722 0 4703 1 0 1 1 0
8 0
fdescpl 488 30629 0 30612 3 0 3 3 0
8 0
filepl 152 162895 0 162791 47 42 5 8 0
8 1
lockfpl 104 2232 0 2231 1 0 1 1 0
8 0
lockfspl 48 964 0 963 1 0 1 1 0
8 0
sessionpl 112 18 0 7 1 0 1 1 0
8 0
pgrppl 48 18 0 7 1 0 1 1 0
8 0
ucredpl 96 15186 0 15177 1 0 1 1 0
8 0
zombiepl 144 30612 0 30612 1 0 1 1 0
8 1
processpl 904 30644 0 30612 4 0 4 4 0
8 0
procpl 632 68253 0 68210 10 6 4 5 0
8 0
sockpl 384 63644 0 63623 75 71 4 8 0
8 1
mcl64k 65536 18 0 0 3 0 3 3 0
8 0
mcl16k 16384 25 0 0 3 0 3 3 0
8 0
mcl12k 12288 33 0 0 3 1 2 2 0
8 0
mcl9k 9216 33 0 0 2 0 2 2 0
8 0
mcl8k 8192 25 0 0 3 0 3 3 0
8 0
mcl4k 4096 17 0 0 3 0 3 3 0
8 0
mcl2k2 2112 13 0 0 1 0 1 1 0
8 0
mcl2k 2048 247 0 0 19 10 9 19 0
8 0
mtagpl 80 1 0 0 1 0 1 1 0
8 0
mbufpl 256 753 0 0 12 4 8 12 0
8 0
bufpl 280 37800 0 30730 506 0 506 506 0
8 0
anonpl 16 1735048 0 1728327 32 3 29 29 0
125 0
amapchunkpl 152 106654 0 106549 6 1 5 6 0
158 0
amappl16 192 106888 0 106558 18 1 17 17 0
8 0
amappl15 184 30334 0 30325 1 0 1 1 0
8 0
amappl14 176 29 0 27 1 0 1 1 0
8 0
amappl13 168 15137 0 15135 1 0 1 1 0
8 0
amappl12 160 4 0 3 2 1 1 1 0
8 0
amappl11 152 58 0 43 1 0 1 1 0
8 0
amappl10 144 14 0 10 1 0 1 1 0
8 0
amappl9 136 607 0 604 1 0 1 1 0
8 0
amappl8 128 333 0 288 2 0 2 2 0
8 0
amappl7 120 106 0 94 1 0 1 1 0
8 0
amappl6 112 60 0 52 1 0 1 1 0
8 0
amappl5 104 697 0 684 1 0 1 1 0
8 0
amappl4 96 30759 0 30726 1 0 1 1 0
8 0
amappl3 88 699 0 692 1 0 1 1 0
8 0
amappl2 80 271383 0 271294 3 1 2 3 0
8 0
amappl1 72 516919 0 516452 27 17 10 21 0
8 0
amappl 80 68500 0 68461 1 0 1 1 0
84 0
dma4096 4096 1 0 1 1 1 0 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 64 129 0 0 3 0 3 3 0
8 0
uaddrrnd 24 30634 0 30615 1 0 1 1 0
8 0
uaddrbest 32 2 0 0 1 0 1 1 0
8 0
uaddr 24 30634 0 30615 1 0 1 1 0
8 0
vmmpekpl 168 140925 0 140891 2 0 2 2 0
8 0
vmmpepl 168 3406145 0 3404510 131 59 72 82 0
357 0
vmsppl 368 30633 0 30615 2 0 2 2 0
8 0
pdppl 4096 61275 0 61232 6 0 6 6 0
8 0
pvpl 32 5361388 0 5351526 249 167 82 118 0
265 0
pmappl 232 30633 0 30615 3 1 2 2 0
8 0
extentpl 40 46 0 29 1 0 1 1 0
8 0
phpool 112 175 0 18 5 0 5 5 0
8 0
---
This bug 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 bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.