Hello,
syzbot found the following crash on:
HEAD commit: 001c308c Revert previous, a race is present and can be tri..
git tree: openbsd
console output:
https://syzkaller.appspot.com/x/log.txt?x=14c7cecce00000
kernel config:
https://syzkaller.appspot.com/x/.config?x=26ca0a9c07f16a3a
dashboard link:
https://syzkaller.appspot.com/bug?extid=6c80b815a0ff8f09be69
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+6c80b8...@syzkaller.appspotmail.com
uvm_fault(0xffffffff82622db0, 0xfffffd0000000008, 0, 2) -> e
kernel: page fault trap, code=0
Stopped at soreceive+0x1100: movq %rbx,0x8(%r13)
ddb{1}>
ddb{1}> set $lines = 0
ddb{1}> set $maxwidth = 0
ddb{1}> show panic
kernel page fault
uvm_fault(0xffffffff82622db0, 0xfffffd0000000008, 0, 2) -> e
soreceive(fffffd806f6cc180,0,ffff800020aa5d38,0,0,ffff800020aa5c44) at
soreceive+0x1100 sbsync sys/kern/uipc_socket.c:630 [inline]
soreceive(fffffd806f6cc180,0,ffff800020aa5d38,0,0,ffff800020aa5c44) at
soreceive+0x1100 sys/kern/uipc_socket.c:824
end trace frame: 0xffff800020aa5c80, count: 0
ddb{1}> trace
soreceive(fffffd806f6cc180,0,ffff800020aa5d38,0,0,ffff800020aa5c44) at
soreceive+0x1100 sbsync sys/kern/uipc_socket.c:630 [inline]
soreceive(fffffd806f6cc180,0,ffff800020aa5d38,0,0,ffff800020aa5c44) at
soreceive+0x1100 sys/kern/uipc_socket.c:824
soo_read(fffffd806fc0c428,ffff800020aa5d38,0) at soo_read+0x53
sys/kern/sys_socket.c:70
dofilereadv(ffff800020a5eed8,6,ffff800020aa5d38,0,ffff800020aa5e20) at
dofilereadv+0x1a2 sys/kern/sys_generic.c:236
sys_read(ffff800020a5eed8,ffff800020aa5dd0,ffff800020aa5e20) at
sys_read+0x83 sys/kern/sys_generic.c:156
syscall(ffff800020aa5ea0) at syscall+0x4a4 mi_syscall
sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800020aa5ea0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,3,7f7ffffbfe28,3,c4e63b78,1f3998e84000) at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffbfb60, count: -6
ddb{1}> show registers
rdi 0
rsi 0
rbp 0xffff800020aa5c20
rbx 0xfffffd806f212300
rdx 0x2d1ce acpi_pdirpa+0x19036
rcx 0
rax 0
r8 0xffffffff819f2631 soreceive+0x5c1
r9 0x3
r10 0x9242326d6b87005b
r11 0xbb1111e0358738d8
r12 0x2fd
r13 0xfffffd0000000000
r14 0
r15 0xfffffd806f6cc180
rip 0xffffffff819f3170 soreceive+0x1100
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff800020aa5b30
ss 0x10
soreceive+0x1100: movq %rbx,0x8(%r13)
ddb{1}> show proc
PROC (dhclient) pid=498990 stat=onproc
flags process=0 proc=0
pri=51, usrpri=51, nice=20
forw=0xffffffffffffffff, list=0xffff800020a5e4f8,0xffff800020a5f650
process=0xffff800020a8a710 user=0xffff800020aa0000,
vmspace=0xfffffd807f00a000
estcpu=1, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
86176 500500 27279 0 2 0 syz-executor.0
24668 416092 9478 0 2 0 syz-executor.1
24668 45615 9478 0 7 0x4000080 syz-executor.1
4752 426729 0 0 3 0x14200 bored sosplice
9478 46330 20147 0 3 0x82 nanosleep syz-executor.1
27279 261422 20147 0 3 0x82 nanosleep syz-executor.0
20147 146626 20725 0 3 0x82 thrsleep syz-fuzzer
20147 98361 20725 0 3 0x4000082 nanosleep syz-fuzzer
20147 230798 20725 0 3 0x4000082 thrsleep syz-fuzzer
20147 319107 20725 0 3 0x4000082 thrsleep syz-fuzzer
20147 524048 20725 0 3 0x4000082 thrsleep syz-fuzzer
20147 24309 20725 0 3 0x4000082 nanosleep syz-fuzzer
20147 133326 20725 0 3 0x4000082 thrsleep syz-fuzzer
20147 26136 20725 0 3 0x4000082 thrsleep syz-fuzzer
20147 387638 20725 0 3 0x4000082 kqread syz-fuzzer
20147 345853 20725 0 3 0x4000082 thrsleep syz-fuzzer
20725 485319 70228 0 3 0x10008a pause ksh
70228 95652 77467 0 3 0x92 select sshd
78037 45141 1 0 3 0x100083 ttyin getty
77467 256270 1 0 3 0x80 select sshd
48138 41837 32981 74 3 0x100092 bpf pflogd
32981 388944 1 0 3 0x80 netio pflogd
21044 347495 84489 73 3 0x100090 kqread syslogd
84489 215549 1 0 3 0x100082 netio syslogd
40536 407530 1 77 3 0x100090 poll dhclient
*47875 498990 1 0 7 0 dhclient
68160 83169 0 0 2 0x14200 zerothread
10783 340182 0 0 3 0x14200 aiodoned aiodoned
24662 143133 0 0 3 0x14200 syncer update
96856 298992 0 0 3 0x14200 cleaner cleaner
96649 359594 0 0 3 0x14200 reaper reaper
7066 461210 0 0 3 0x14200 pgdaemon pagedaemon
31200 85413 0 0 3 0x14200 bored crynlk
22581 453953 0 0 3 0x14200 bored crypto
81925 238912 0 0 3 0x40014200 acpi0 acpi0
66056 288498 0 0 3 0x40014200 idle1
1625 518967 0 0 3 0x14200 bored softnet
56965 83814 0 0 3 0x14200 bored systqmp
65103 220293 0 0 3 0x14200 bored systq
79163 192063 0 0 3 0x40014200 bored softclock
34768 329545 0 0 3 0x40014200 idle0
82617 440947 0 0 3 0x14200 bored smr
1 356432 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{1}> show all locks
Process 47875 (dhclient) thread 0xffff800020a5eed8 (498990)
exclusive kernel_lock &kernel_lock r = 1 (0xffffffff82669b48)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 solock+0x66 sys/kern/uipc_socket2.c:292
#2 soreceive+0x114 sys/kern/uipc_socket.c:706
#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:92 [inline]
#6 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#7 Xsyscall+0x128
ddb{1}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim
devbuf 9526 6536K 6855K 78643K 11033 0 0
pcb 13 8K 8K 78643K 57 0 0
rtable 93 4K 4K 78643K 306 0 0
ifaddr 59 12K 12K 78643K 86 0 0
counters 39 33K 33K 78643K 39 0 0
ioctlops 0 0K 4K 78643K 1473 0 0
iov 0 0K 12K 78643K 34 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1229 77K 77K 78643K 1344 0 0
UFS quota 1 32K 32K 78643K 1 0 0
UFS mount 5 36K 36K 78643K 5 0 0
shm 2 1K 5K 78643K 4 0 0
VM map 2 1K 1K 78643K 2 0 0
sem 12 0K 0K 78643K 75 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1808 196K 290K 78643K 12765 0 0
file desc 6 17K 25K 78643K 164 0 0
sigio 0 0K 0K 78643K 9 0 0
proc 61 63K 95K 78643K 447 0 0
subproc 32 2K 2K 78643K 34 0 0
NFS srvsock 1 0K 0K 78643K 1 0 0
NFS daemon 1 16K 16K 78643K 1 0 0
ip_moptions 0 0K 0K 78643K 25 0 0
in_multi 22 1K 2K 78643K 47 0 0
ether_multi 1 0K 0K 78643K 4 0 0
mrt 0 0K 0K 78643K 2 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 42 185K 185K 78643K 42 0 0
exec 0 0K 1K 78643K 216 0 0
pagedep 1 8K 8K 78643K 1 0 0
inodedep 1 32K 32K 78643K 1 0 0
newblk 1 0K 0K 78643K 1 0 0
VM swap 7 26K 26K 78643K 7 0 0
UVM amap 114 22K 31K 78643K 1509 0 0
UVM aobj 23 4K 4K 78643K 23 0 0
memdesc 1 4K 4K 78643K 1 0 0
crypto data 1 1K 1K 78643K 1 0 0
ip6_options 0 0K 0K 78643K 33 0 0
NDP 13 0K 0K 78643K 22 0 0
temp 179 3559K 3626K 78643K 4985 0 0
SYN cache 2 16K 16K 78643K 2 0 0
ddb{1}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg
Idle
arp 64 11 0 6 1 0 1 1 0
8 0
plcache 128 20 0 0 1 0 1 1 0
8 0
rtpcb 80 43 0 41 1 0 1 1 0
8 0
rtentry 112 55 0 20 2 0 2 2 0
8 0
unpcb 120 135 0 125 1 0 1 1 0
8 0
syncache 264 5 0 5 2 1 1 1 0
8 1
tcpqe 32 72 0 72 1 1 0 1 0
8 0
tcpcb 544 76 0 72 2 0 2 2 0
8 1
inpcb 280 429 0 422 4 0 4 4 0
8 3
rttmr 72 1 0 1 1 1 0 1 0
8 0
nd6 48 4 0 2 1 0 1 1 0
8 0
ppxss 1128 5 0 4 1 0 1 1 0
8 0
pffrag 232 4 0 4 1 1 0 1 0
482 0
pffrnode 88 4 0 4 1 1 0 1 0
8 0
pffrent 40 152 0 152 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 33 0 2 1 0 1 1 0
8 0
pfstkey 112 33 0 2 1 0 1 1 0
8 0
pfstate 328 33 0 2 3 0 3 3 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 230 0 54 14 0 14 14 0
8 0
art_table 32 231 0 54 2 0 2 2 0
8 0
art_node 16 54 0 22 1 0 1 1 0
8 0
sysvmsgpl 40 20 0 11 1 0 1 1 0
8 0
semapl 112 69 0 59 1 0 1 1 0
8 0
shmpl 112 21 0 0 1 0 1 1 0
8 0
dirhash 1024 17 0 0 3 0 3 3 0
8 0
dino1pl 128 1659 0 248 46 0 46 46 0
8 0
ffsino 272 1659 0 248 95 0 95 95 0
8 0
nchpl 144 2113 0 505 61 0 61 61 0
8 0
uvmvnodes 72 1797 0 0 33 0 33 33 0
8 0
vnodes 208 1797 0 0 95 0 95 95 0
8 0
namei 1024 5803 0 5803 1 0 1 1 0
8 1
percpumem 16 30 0 0 1 0 1 1 0
8 0
scxspl 192 6159 0 6159 8 5 3 7 0
8 3
plimitpl 152 27 0 19 1 0 1 1 0
8 0
sigapl 432 362 0 346 3 1 2 3 0
8 0
futexpl 56 4194 0 4194 1 0 1 1 0
8 1
knotepl 112 60 0 41 1 0 1 1 0
8 0
kqueuepl 104 36 0 34 1 0 1 1 0
8 0
pipepl 112 248 0 229 2 0 2 2 0
8 1
fdescpl 488 363 0 346 3 0 3 3 0
8 0
filepl 152 2606 0 2505 7 0 7 7 0
8 3
lockfpl 104 45 0 44 1 0 1 1 0
8 0
lockfspl 48 17 0 16 1 0 1 1 0
8 0
sessionpl 112 18 0 7 1 0 1 1 0
8 0
pgrppl 48 26 0 15 1 0 1 1 0
8 0
ucredpl 96 216 0 206 1 0 1 1 0
8 0
zombiepl 144 346 0 346 1 0 1 1 0
8 1
processpl 896 379 0 346 4 0 4 4 0
8 0
procpl 632 723 0 680 5 0 5 5 0
8 1
srpgc 64 2 0 2 1 1 0 1 0
8 0
sosppl 128 22 0 22 1 0 1 1 0
8 1
sockpl 384 610 0 591 8 0 8 8 0
8 6
mcl64k 65536 11 0 0 2 0 2 2 0
8 0
mcl16k 16384 7 0 0 1 0 1 1 0
8 0
mcl12k 12288 5 0 0 1 0 1 1 0
8 0
mcl9k 9216 2 0 0 1 0 1 1 0
8 0
mcl8k 8192 5 0 0 1 0 1 1 0
8 0
mcl4k 4096 8 0 0 1 0 1 1 0
8 0
mcl2k 2048 202 0 0 25 0 25 25 0
8 0
mtagpl 80 25 0 0 1 0 1 1 0
8 0
mbufpl 256 241 0 0 15 0 15 15 0
8 0
bufpl 256 6782 0 1312 342 0 342 342 0
8 0
anonpl 16 53949 0 34438 84 2 82 83 0
124 3
amapchunkpl 152 2438 0 2276 16 2 14 14 0
158 6
amappl16 192 1792 0 720 54 0 54 54 0
8 0
amappl15 184 1 0 1 1 1 0 1 0
8 0
amappl14 176 115 0 107 1 0 1 1 0
8 0
amappl13 168 4 0 3 1 0 1 1 0
8 0
amappl12 160 71 0 67 1 0 1 1 0
8 0
amappl11 152 56 0 40 1 0 1 1 0
8 0
amappl10 144 22 0 16 1 0 1 1 0
8 0
amappl9 136 601 0 598 1 0 1 1 0
8 0
amappl8 128 174 0 148 1 0 1 1 0
8 0
amappl7 120 37 0 33 1 0 1 1 0
8 0
amappl6 112 59 0 51 1 0 1 1 0
8 0
amappl5 104 202 0 187 1 0 1 1 0
8 0
amappl4 96 630 0 598 1 0 1 1 0
8 0
amappl3 88 191 0 184 1 0 1 1 0
8 0
amappl2 80 2019 0 1945 3 1 2 3 0
8 0
amappl1 72 17789 0 17349 25 15 10 20 0
8 0
amappl 80 994 0 945 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 17 0 17 1 1 0 1 0
8 0
aobjpl 64 22 0 0 1 0 1 1 0
8 0
uaddrrnd 24 363 0 346 1 0 1 1 0
8 0
uaddrbest 32 2 0 0 1 0 1 1 0
8 0
uaddr 24 363 0 346 1 0 1 1 0
8 0
vmmpekpl 168 7139 0 7106 2 0 2 2 0
8 0
vmmpepl 168 52217 0 49932 136 11 125 130 0 357
25
vmsppl 368 362 0 346 2 0 2 2 0
8 0
pdppl 4096 733 0 692 6 0 6 6 0
8 0
pvpl 32 174457 0 151666 197 1 196 197 0
265 9
pmappl 232 362 0 346 2 1 1 2 0
8 0
extentpl 40 41 0 26 1 0 1 1 0
8 0
phpool 112 515 0 3 15 0 15 15 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.