panic: receive 1: so ADDR, so_type 3, sb_cc 6586

0 views
Skip to first unread message

syzbot

unread,
Jan 24, 2020, 9:14:13 AM1/24/20
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 99ecd6d8 remove ssh-rsa (SHA1) from the list of allowed CA..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=14d28b35e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=bf87b6915a88cd0d
dashboard link: https://syzkaller.appspot.com/bug?extid=819d046641cd45d14ffb

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+819d04...@syzkaller.appspotmail.com

panic: receive 1: so 0xfffffd806f666320, so_type 3, sb_cc 6586
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
197032 55838 0 0 0 1 syz-executor.1
*187162 49141 0 0 0 0K dhclient
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821c435e) at panic+0x15c sys/kern/subr_prf.c:207
soreceive(fffffd806f666320,0,ffff800020abd178,0,0,ffff800020abd084) at soreceive+0x16ec sys/kern/uipc_socket.c:823
soo_read(fffffd8073ffc000,ffff800020abd178,0) at soo_read+0x53 sys/kern/sys_socket.c:70
dofilereadv(ffff800020a7c008,6,ffff800020abd178,0,ffff800020abd260) at dofilereadv+0x1a2 sys/kern/sys_generic.c:236
sys_read(ffff800020a7c008,ffff800020abd210,ffff800020abd260) at sys_read+0x83 sys/kern/sys_generic.c:156
syscall(ffff800020abd2e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800020abd2e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffca1c0, 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
receive 1: so 0xfffffd806f666320, so_type 3, sb_cc 6586
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821c435e) at panic+0x15c sys/kern/subr_prf.c:207
soreceive(fffffd806f666320,0,ffff800020abd178,0,0,ffff800020abd084) at soreceive+0x16ec sys/kern/uipc_socket.c:823
soo_read(fffffd8073ffc000,ffff800020abd178,0) at soo_read+0x53 sys/kern/sys_socket.c:70
dofilereadv(ffff800020a7c008,6,ffff800020abd178,0,ffff800020abd260) at dofilereadv+0x1a2 sys/kern/sys_generic.c:236
sys_read(ffff800020a7c008,ffff800020abd210,ffff800020abd260) at sys_read+0x83 sys/kern/sys_generic.c:156
syscall(ffff800020abd2e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800020abd2e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffca1c0, count: -8
ddb{0}> show registers
rdi 0
rsi 0x1
rbp 0xffff800020abcec0
rbx 0xffff800020abcf70
rdx 0xffff800020a7c008
rcx 0
rax 0
r8 0xffffffff81a968df kprintf+0x16f
r9 0x1
r10 0x25
r11 0x3c210e288256d46d
r12 0x3000000008
r13 0xffff800020abced0
r14 0x100
r15 0x1
rip 0xffffffff81783ac8 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff800020abceb0
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb{0}> show proc
PROC (dhclient) pid=187162 stat=onproc
flags process=0 proc=0
pri=50, usrpri=50, nice=20
forw=0xffffffffffffffff, list=0xffff800020a7d5f8,0xffff800020a7c288
process=0xffff800020a90f10 user=0xffff800020ab8000, vmspace=0xfffffd807efff2e0
estcpu=0, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
55838 197032 70603 0 7 0 syz-executor.1
4108 502334 7670 0 2 0 syz-executor.0
4108 114351 7670 0 3 0x4000080 fsleep syz-executor.0
70603 400842 62615 0 3 0x82 nanosleep syz-executor.1
7670 231917 62615 0 3 0x82 nanosleep syz-executor.0
62615 325452 91967 0 3 0x82 nanosleep syz-fuzzer
62615 199740 91967 0 3 0x4000082 nanosleep syz-fuzzer
62615 103733 91967 0 3 0x4000082 thrsleep syz-fuzzer
62615 298453 91967 0 3 0x4000082 kqread syz-fuzzer
62615 248235 91967 0 3 0x4000082 thrsleep syz-fuzzer
62615 304577 91967 0 3 0x4000082 thrsleep syz-fuzzer
62615 146143 91967 0 3 0x4000082 thrsleep syz-fuzzer
62615 208236 91967 0 3 0x4000082 thrsleep syz-fuzzer
62615 404111 91967 0 3 0x4000082 thrsleep syz-fuzzer
62615 512465 91967 0 3 0x4000082 thrsleep syz-fuzzer
91967 283071 83792 0 3 0x10008a pause ksh
83792 287670 54326 0 3 0x92 select sshd
51956 177031 1 0 3 0x100083 ttyin getty
54326 71593 1 0 3 0x80 select sshd
10482 24493 85847 74 3 0x100092 bpf pflogd
85847 368845 1 0 3 0x80 netio pflogd
12124 248068 48160 73 3 0x100090 kqread syslogd
48160 53012 1 0 3 0x100082 netio syslogd
83110 251365 1 77 3 0x100090 poll dhclient
*49141 187162 1 0 7 0 dhclient
71545 166403 0 0 2 0x14200 zerothread
67431 484342 0 0 3 0x14200 aiodoned aiodoned
71220 329275 0 0 3 0x14200 syncer update
71757 319492 0 0 3 0x14200 cleaner cleaner
5645 35405 0 0 3 0x14200 reaper reaper
72308 278377 0 0 3 0x14200 pgdaemon pagedaemon
13275 508322 0 0 3 0x14200 bored crynlk
42130 10484 0 0 3 0x14200 bored crypto
72799 91089 0 0 3 0x40014200 acpi0 acpi0
11199 334972 0 0 3 0x40014200 idle1
62659 270372 0 0 3 0x14200 bored softnet
41028 183024 0 0 3 0x14200 bored systqmp
15873 190309 0 0 3 0x14200 bored systq
56161 292111 0 0 3 0x40014200 bored softclock
68603 487375 0 0 3 0x40014200 idle0
82437 246195 0 0 3 0x14200 bored smr
1 161823 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 49141 (dhclient) thread 0xffff800020a7c008 (187162)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8265daf8)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1164
#1 solock+0x66 sys/kern/uipc_socket2.c:292
#2 soreceive+0x114 sys/kern/uipc_socket.c:731
#3 soo_read+0x53 sys/kern/sys_socket.c:70
#4 dofilereadv+0x1a2 sys/kern/sys_generic.c:236
#5 sys_read+0x83 sys/kern/sys_generic.c:156
#6 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#6 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#7 Xsyscall+0x128
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 9489 6404K 6668K 78643K 10663 0
pcb 13 8K 8K 78643K 39 0
rtable 97 3K 3K 78643K 225 0
ifaddr 55 12K 12K 78643K 64 0
counters 39 33K 33K 78643K 39 0
ioctlops 0 0K 4K 78643K 1476 0
iov 0 0K 32K 78643K 12 0
mount 1 1K 1K 78643K 1 0
vnodes 1217 76K 77K 78643K 1252 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 5K 78643K 3 0
VM map 2 1K 1K 78643K 2 0
sem 12 0K 0K 78643K 16 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1809 196K 290K 78643K 12766 0
file desc 6 17K 25K 78643K 103 0
proc 61 63K 83K 78643K 448 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 17 0
in_multi 39 2K 2K 78643K 67 0
ether_multi 1 0K 0K 78643K 4 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 49 228K 228K 78643K 49 0
exec 0 0K 1K 78643K 214 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 115 22K 22K 78643K 1280 0
UVM aobj 6 2K 2K 78643K 6 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 20 0
NDP 8 0K 0K 78643K 14 0
temp 86 3010K 3074K 78643K 4496 0
kqueue 3 4K 8K 78643K 11 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
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 27 0 25 1 0 1 1 0 8 0
rtentry 112 53 0 13 2 0 2 2 0 8 0
unpcb 120 57 0 47 1 0 1 1 0 8 0
syncache 264 6 0 6 3 2 1 1 0 8 1
tcpqe 32 29 0 29 2 1 1 1 0 8 1
tcpcb 544 58 0 54 1 0 1 1 0 8 0
inpcb 280 202 0 195 2 0 2 2 0 8 1
nd6 48 6 0 4 1 0 1 1 0 8 0
pffrag 232 4 0 4 1 0 1 1 0 482 1
pffrnode 88 4 0 4 1 0 1 1 0 8 1
pffrent 40 138 0 138 1 0 1 1 0 8 1
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 21 0 2 1 0 1 1 0 8 0
pfstkey 112 21 0 2 1 0 1 1 0 8 0
pfstate 328 21 0 2 2 0 2 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 260 0 78 14 1 13 14 0 8 1
art_table 32 261 0 78 2 0 2 2 0 8 0
art_node 16 52 0 14 1 0 1 1 0 8 0
sysvmsgpl 40 14 0 14 1 0 1 1 0 8 1
semupl 112 1 0 1 1 1 0 1 0 8 0
semapl 112 14 0 4 1 0 1 1 0 8 0
shmpl 112 4 0 0 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino1pl 128 1529 0 120 46 0 46 46 0 8 0
ffsino 272 1529 0 120 95 0 95 95 0 8 0
nchpl 144 1857 0 238 61 0 61 61 0 8 0
uvmvnodes 72 1590 0 0 29 0 29 29 0 8 0
vnodes 208 1590 0 0 84 0 84 84 0 8 0
namei 1024 4984 0 4984 1 0 1 1 0 8 1
percpumem 16 30 0 0 1 0 1 1 0 8 0
scxspl 192 5121 0 5121 8 1 7 7 0 8 7
plimitpl 152 18 0 10 1 0 1 1 0 8 0
sigapl 432 302 0 286 3 1 2 3 0 8 0
futexpl 56 1382 0 1381 1 0 1 1 0 8 0
knotepl 112 61 0 42 1 0 1 1 0 8 0
kqueuepl 104 22 0 20 1 0 1 1 0 8 0
pipelkpl 48 90 0 80 1 0 1 1 0 8 0
pipepl 120 180 0 161 1 0 1 1 0 8 0
fdescpl 496 303 0 286 3 0 3 3 0 8 0
filepl 152 1800 0 1699 5 0 5 5 0 8 1
lockfpl 104 22 0 21 1 0 1 1 0 8 0
lockfspl 48 10 0 9 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 144 0 135 1 0 1 1 0 8 0
zombiepl 144 286 0 286 1 0 1 1 0 8 1
processpl 960 318 0 286 5 0 5 5 0 8 0
procpl 624 498 0 456 4 0 4 4 0 8 0
sockpl 400 288 0 269 4 0 4 4 0 8 2
mcl64k 65536 4 0 0 1 0 1 1 0 8 0
mcl16k 16384 1 0 0 1 0 1 1 0 8 0
mcl12k 12288 1 0 0 1 0 1 1 0 8 0
mcl9k 9216 1 0 0 1 0 1 1 0 8 0
mcl8k 8192 1 0 0 1 0 1 1 0 8 0
mcl4k 4096 4 0 0 1 0 1 1 0 8 0
mcl2k 2048 162 0 0 20 0 20 20 0 8 0
mtagpl 80 2 0 0 1 0 1 1 0 8 0
mbufpl 256 407 0 0 25 0 25 25 0 8 0
bufpl 280 6358 0 1340 359 0 359 359 0 8 0
anonpl 16 47201 0 31116 79 1 78 78 0 125 13
amapchunkpl 152 1592 0 1445 8 0 8 8 0 158 0
amappl16 192 1437 0 564 53 2 51 53 0 8 7
amappl15 184 125 0 118 1 0 1 1 0 8 0
amappl14 176 66 0 62 1 0 1 1 0 8 0
amappl12 160 7 0 6 1 0 1 1 0 8 0
amappl11 152 58 0 43 1 0 1 1 0 8 0
amappl10 144 15 0 11 1 0 1 1 0 8 0
amappl9 136 605 0 601 1 0 1 1 0 8 0
amappl8 128 125 0 103 1 0 1 1 0 8 0
amappl7 120 102 0 92 1 0 1 1 0 8 0
amappl6 112 59 0 50 1 0 1 1 0 8 0
amappl5 104 129 0 115 1 0 1 1 0 8 0
amappl4 96 554 0 524 1 0 1 1 0 8 0
amappl3 88 156 0 147 1 0 1 1 0 8 0
amappl2 80 1482 0 1404 3 1 2 3 0 8 0
amappl1 72 16665 0 16211 26 16 10 21 0 8 0
amappl 80 755 0 708 2 0 2 2 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 5 0 0 1 0 1 1 0 8 0
uaddrrnd 24 303 0 286 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 303 0 286 1 0 1 1 0 8 0
vmmpekpl 168 6333 0 6302 2 0 2 2 0 8 0
vmmpepl 168 44534 0 42415 124 8 116 120 0 357 23
vmsppl 368 302 0 286 2 0 2 2 0 8 0
pdppl 4096 613 0 572 6 0 6 6 0 8 0
pvpl 32 154792 0 135480 185 0 185 185 0 265 29
pmappl 232 302 0 286 2 1 1 2 0 8 0
extentpl 40 46 0 29 1 0 1 1 0 8 0
phpool 112 184 0 4 6 0 6 6 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.

Anton Lindqvist

unread,
Feb 28, 2020, 5:33:22 AM2/28/20
to syzbot, syzkaller-o...@googlegroups.com
#syz dup: soreceive 1
Reply all
Reply to author
Forward
0 new messages