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

0 views
Skip to first unread message

syzbot

unread,
Jan 29, 2020, 1:39:13 PM1/29/20
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: c9ac349a Remove extra Pp (from jmc) and add a missing word.
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=128fb8d9e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=fe55924c11e64b0a
dashboard link: https://syzkaller.appspot.com/bug?extid=0159ce8e2216e4a2d2c2

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+0159ce...@syzkaller.appspotmail.com

panic: receive 1: so 0xfffffd805e551640, so_type 3, sb_cc 232
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*165771 37979 0 0 0 0 dhclient
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821a1d1b) at panic+0x15c sys/kern/subr_prf.c:207
soreceive(fffffd805e551640,0,ffff80001d382518,0,0,ffff80001d382424) at soreceive+0x16ac sys/kern/uipc_socket.c:823
soo_read(fffffd80675fd708,ffff80001d382518,0) at soo_read+0x53 sys/kern/sys_socket.c:70
dofilereadv(ffff80001d349c38,6,ffff80001d382518,0,ffff80001d382600) at dofilereadv+0x1a2 sys/kern/sys_generic.c:236
sys_read(ffff80001d349c38,ffff80001d3825b0,ffff80001d382600) at sys_read+0x83 sys/kern/sys_generic.c:156
syscall(ffff80001d382680) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffc9180, 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>
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
receive 1: so 0xfffffd805e551640, so_type 3, sb_cc 232
ddb> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821a1d1b) at panic+0x15c sys/kern/subr_prf.c:207
soreceive(fffffd805e551640,0,ffff80001d382518,0,0,ffff80001d382424) at soreceive+0x16ac sys/kern/uipc_socket.c:823
soo_read(fffffd80675fd708,ffff80001d382518,0) at soo_read+0x53 sys/kern/sys_socket.c:70
dofilereadv(ffff80001d349c38,6,ffff80001d382518,0,ffff80001d382600) at dofilereadv+0x1a2 sys/kern/sys_generic.c:236
sys_read(ffff80001d349c38,ffff80001d3825b0,ffff80001d382600) at sys_read+0x83 sys/kern/sys_generic.c:156
syscall(ffff80001d382680) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffc9180, count: -8
ddb> show registers
rdi 0
rsi 0x1
rbp 0xffff80001d382260
rbx 0xffff80001d382310
rdx 0x2
rcx 0
rax 0
r8 0xffff80001d382220
r9 0x1
r10 0
r11 0x9e5ab129570f7b72
r12 0x3000000008
r13 0xffff80001d382270
r14 0x100
r15 0x1
rip 0xffffffff82090968 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff80001d382250
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb> show proc
PROC (dhclient) pid=165771 stat=onproc
flags process=0 proc=0
pri=50, usrpri=50, nice=20
forw=0xffffffffffffffff, list=0xffff80001d3499c8,0xffff80001d349eb8
process=0xffff8000ffffaa90 user=0xffff80001d37d000, vmspace=0xfffffd806bc09220
estcpu=0, cpticks=0, pctcpu=0.0
user=0, sys=0, intr=0
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
67509 425892 84852 0 2 0 syz-executor.0
67509 8570 84852 0 2 0x4000000 syz-executor.0
84852 120652 80799 0 3 0x82 nanosleep syz-executor.0
39048 369078 80799 0 2 0x2 syz-executor.1
80799 378258 70817 0 3 0x82 thrsleep syz-fuzzer
80799 189269 70817 0 3 0x4000082 thrsleep syz-fuzzer
80799 331980 70817 0 3 0x4000082 thrsleep syz-fuzzer
80799 140956 70817 0 3 0x4000082 thrsleep syz-fuzzer
80799 451970 70817 0 3 0x4000082 thrsleep syz-fuzzer
80799 139883 70817 0 3 0x4000082 kqread syz-fuzzer
80799 265734 70817 0 3 0x4000082 thrsleep syz-fuzzer
70817 76735 19966 0 3 0x10008a pause ksh
19966 412796 75591 0 3 0x92 select sshd
95822 406313 1 0 3 0x100083 ttyin getty
75591 509563 1 0 3 0x80 select sshd
7623 183783 18831 73 3 0x100090 kqread syslogd
18831 424903 1 0 3 0x100082 netio syslogd
64017 138793 1 77 3 0x100090 poll dhclient
*37979 165771 1 0 7 0 dhclient
47483 425708 0 0 2 0x14200 zerothread
45177 235947 0 0 3 0x14200 aiodoned aiodoned
823 145423 0 0 3 0x14200 syncer update
86831 333612 0 0 3 0x14200 cleaner cleaner
56437 78837 0 0 3 0x14200 reaper reaper
74609 425 0 0 3 0x14200 pgdaemon pagedaemon
97137 469685 0 0 3 0x14200 bored crynlk
5925 481514 0 0 3 0x14200 bored crypto
72378 298683 0 0 3 0x40014200 acpi0 acpi0
14271 174698 0 0 3 0x14200 bored softnet
13182 125971 0 0 3 0x14200 bored systqmp
25167 455718 0 0 3 0x14200 bored systq
53307 145718 0 0 3 0x40014200 bored softclock
21237 186524 0 0 3 0x40014200 idle0
9881 83703 0 0 3 0x14200 bored smr
1 130574 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb> show all locks
No such command
ddb> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 9457 6327K 6582K 78643K 10600 0
pcb 13 8K 8K 78643K 58 0
rtable 101 2K 3K 78643K 208 0
ifaddr 43 10K 10K 78643K 47 0
counters 21 16K 16K 78643K 21 0
ioctlops 0 0K 2K 78643K 15 0
iov 0 0K 12K 78643K 6 0
mount 1 1K 1K 78643K 1 0
vnodes 1217 76K 77K 78643K 1238 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 0K 0K 78643K 2 0
sem 9 0K 0K 78643K 12 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1794 195K 288K 78643K 12646 0
file desc 5 13K 25K 78643K 62 0
proc 49 38K 54K 78643K 363 0
subproc 32 2K 2K 78643K 34 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
in_multi 29 1K 2K 78643K 39 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 37 175K 175K 78643K 37 0
exec 0 0K 1K 78643K 185 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 99 21K 21K 78643K 995 0
UVM aobj 3 2K 2K 78643K 3 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
NDP 6 0K 0K 78643K 11 0
temp 90 3013K 3077K 78643K 8155 0
kqueue 3 4K 4K 78643K 3 0
SYN cache 2 16K 16K 78643K 2 0
ddb> 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
rtpcb 80 22 0 20 1 0 1 1 0 8 0
rtentry 112 49 0 7 2 0 2 2 0 8 0
unpcb 120 45 0 37 1 0 1 1 0 8 0
syncache 264 4 0 4 1 1 0 1 0 8 0
tcpqe 32 193 0 193 2 2 0 1 0 8 0
tcpcb 544 10 0 6 1 0 1 1 0 8 0
inpcb 280 117 0 110 2 0 2 2 0 8 1
nd6 48 5 0 2 1 0 1 1 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 237 0 39 14 0 14 14 0 8 0
art_table 32 238 0 39 2 0 2 2 0 8 0
art_node 16 48 0 9 1 0 1 1 0 8 0
sysvmsgpl 40 19 0 17 1 0 1 1 0 8 0
semupl 112 2 0 2 1 0 1 1 0 8 1
semapl 112 9 0 2 1 0 1 1 0 8 0
shmpl 112 1 0 0 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino1pl 128 1465 0 65 46 0 46 46 0 8 0
ffsino 240 1465 0 65 83 0 83 83 0 8 0
nchpl 144 1733 0 122 60 0 60 60 0 8 0
uvmvnodes 72 1517 0 0 28 0 28 28 0 8 0
vnodes 208 1517 0 0 80 0 80 80 0 8 0
namei 1024 4234 0 4234 1 0 1 1 0 8 1
scxspl 192 5225 0 5225 1 0 1 1 0 8 1
plimitpl 152 21 0 14 1 0 1 1 0 8 0
sigapl 432 233 0 220 2 0 2 2 0 8 0
futexpl 56 921 0 921 1 0 1 1 0 8 1
knotepl 112 53 0 34 1 0 1 1 0 8 0
kqueuepl 104 4 0 2 1 0 1 1 0 8 0
pipelkpl 16 73 0 63 1 0 1 1 0 8 0
pipepl 120 146 0 127 1 0 1 1 0 8 0
fdescpl 432 234 0 220 2 0 2 2 0 8 0
filepl 120 1297 0 1201 4 0 4 4 0 8 1
lockfpl 104 43 0 42 1 0 1 1 0 8 0
lockfspl 48 7 0 6 1 0 1 1 0 8 0
sessionpl 112 17 0 7 1 0 1 1 0 8 0
pgrppl 48 17 0 7 1 0 1 1 0 8 0
ucredpl 96 81 0 74 1 0 1 1 0 8 0
zombiepl 144 220 0 220 1 0 1 1 0 8 1
processpl 896 248 0 220 4 0 4 4 0 8 0
procpl 624 313 0 278 4 0 4 4 0 8 1
sockpl 400 184 0 167 3 0 3 3 0 8 1
mcl64k 65536 2 0 2 1 0 1 1 0 8 1
mcl12k 12288 1 0 1 1 0 1 1 0 8 1
mcl8k 8192 3 0 3 1 0 1 1 0 8 1
mcl4k 4096 11 0 11 2 1 1 1 0 8 1
mcl2k2 2112 1 0 1 1 0 1 1 0 8 1
mcl2k 2048 63271 0 63221 16 3 13 14 0 8 6
mtagpl 80 2 0 2 1 1 0 1 0 8 0
mbufpl 256 100529 0 100439 15 2 13 13 0 8 0
bufpl 280 4188 0 178 287 0 287 287 0 8 0
anonpl 16 38191 0 22710 66 2 64 64 0 107 1
amapchunkpl 152 1109 0 981 8 0 8 8 0 158 2
amappl16 192 1034 0 183 44 0 44 44 0 8 1
amappl15 184 50 0 46 1 0 1 1 0 8 0
amappl14 176 40 0 38 1 0 1 1 0 8 0
amappl12 160 9 0 9 1 1 0 1 0 8 0
amappl11 152 70 0 56 1 0 1 1 0 8 0
amappl10 144 15 0 12 1 0 1 1 0 8 0
amappl9 136 555 0 551 1 0 1 1 0 8 0
amappl8 128 113 0 93 1 0 1 1 0 8 0
amappl7 120 89 0 79 1 0 1 1 0 8 0
amappl6 112 65 0 59 1 0 1 1 0 8 0
amappl5 104 154 0 144 1 0 1 1 0 8 0
amappl4 96 444 0 416 1 0 1 1 0 8 0
amappl3 88 131 0 123 1 0 1 1 0 8 0
amappl2 80 1062 0 993 3 1 2 3 0 8 0
amappl1 72 13918 0 13506 27 17 10 20 0 8 1
amappl 80 531 0 492 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 2 0 0 1 0 1 1 0 8 0
uaddrrnd 24 234 0 220 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 234 0 220 1 0 1 1 0 8 0
vmmpekpl 168 5778 0 5752 2 0 2 2 0 8 0
vmmpepl 168 36095 0 34171 118 7 111 111 0 357 23
vmsppl 272 233 0 220 2 0 2 2 0 8 1
pdppl 4096 474 0 440 6 0 6 6 0 8 1
pvpl 32 128595 0 110147 155 0 155 155 0 265 5
pmappl 200 233 0 220 1 0 1 1 0 8 0
extentpl 40 46 0 29 1 0 1 1 0 8 0
phpool 112 155 0 8 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.

Anton Lindqvist

unread,
Jan 29, 2020, 2:00:28 PM1/29/20
to syzbot, syzkaller-o...@googlegroups.com
#syz dup: panic: receive 1: so ADDR, so_type 3, sb_cc 6586
Reply all
Reply to author
Forward
0 new messages