Hello,
syzbot found the following crash on:
HEAD commit: cae8c152 Correct minor style nit in sys_getdents() for con..
git tree: openbsd
console output:
https://syzkaller.appspot.com/x/log.txt?x=14925c10600000
kernel config:
https://syzkaller.appspot.com/x/.config?x=7f659e47e42d9641
dashboard link:
https://syzkaller.appspot.com/bug?extid=8c1ab00701ceeccddc13
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+8c1ab0...@syzkaller.appspotmail.com
uvm_fault(0xfffffd807f00cb80, 0x9b, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at bpfioctl+0xc7: movzbl 0x9b(%r14),%ebx
ddb{1}>
ddb{1}> set $lines = 0
ddb{1}> set $maxwidth = 0
ddb{1}> show panic
kernel page fault
uvm_fault(0xfffffd807f00cb80, 0x9b, 0, 1) -> e
bpfioctl(41700,80104267,ffff800024a52e50,1,ffff800020b5ec70) at
bpfioctl+0xc7 sys/net/bpf.c:674
end trace frame: 0xffff800024a52d30, count: 0
ddb{1}> trace
bpfioctl(41700,80104267,ffff800024a52e50,1,ffff800020b5ec70) at
bpfioctl+0xc7 sys/net/bpf.c:674
VOP_IOCTL(fffffd806e375a10,80104267,ffff800024a52e50,1,fffffd807f7c6900,ffff800020b5ec70)
at
VOP_IOCTL+0x88 sys/kern/vfs_vops.c:290
vn_ioctl(fffffd806657a7d0,80104267,ffff800024a52e50,ffff800020b5ec70) at
vn_ioctl+0xb6 sys/kern/vfs_vnops.c:524
sys_ioctl(ffff800020b5ec70,ffff800024a52f68,ffff800024a52fd0) at
sys_ioctl+0x5b8
syscall(ffff800024a53040) at syscall+0x552 mi_syscall
sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800024a53040) at syscall+0x552 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,0,ffffffffffffff17,0,3,c0042f9f0e0) at Xsyscall+0x128
end of kernel
end trace frame: 0xc02b0977060, count: -6
ddb{1}> show registers
rdi 0xffffffff81639a7c bpfioctl+0xac
rsi 0x139
rbp 0xffff800024a52c80
rbx 0x400
rdx 0x13a
rcx 0xffff800021e04000
rax 0xffff800021e04000
r8 0xffff800020b5ec70
r9 0x5
r10 0x4
r11 0x5efa29bd99540f8d
r12 0x80104267 __kernel_virt_to_phys+0x104267
r13 0xffff800020b5ec70
r14 0
r15 0xffff800024a52e50
rip 0xffffffff81639a97 bpfioctl+0xc7
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff800024a52c10
ss 0x10
bpfioctl+0xc7: movzbl 0x9b(%r14),%ebx
ddb{1}> show proc
PROC (syz-executor.0) pid=161735 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=77, usrpri=77, nice=20
forw=0xffffffffffffffff, list=0xffff800020b5e508,0xffff800020b5f660
process=0xffff800020b7c700 user=0xffff800024a4e000,
vmspace=0xfffffd807f00cb80
estcpu=27, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
55702 45246 29014 0 2 0 syz-executor.0
55702 143689 29014 0 2 0x4000000 syz-executor.0
*55702 161735 29014 0 7 0x4000000 syz-executor.0
55702 124257 29014 0 3 0x4000080 fsleep syz-executor.0
48594 216392 22079 0 3 0x82 piperd syz-executor.1
66015 112142 1 0 3 0x100083 ttyin getty
29014 345360 22079 0 3 0x82 nanosleep syz-executor.0
63488 313226 0 0 3 0x14200 bored sosplice
22079 299852 7246 0 3 0x82 thrsleep syz-fuzzer
22079 305358 7246 0 3 0x4000082 thrsleep syz-fuzzer
22079 19993 7246 0 3 0x4000082 thrsleep syz-fuzzer
22079 479587 7246 0 3 0x4000082 thrsleep syz-fuzzer
22079 426674 7246 0 3 0x4000082 thrsleep syz-fuzzer
22079 519544 7246 0 3 0x4000082 thrsleep syz-fuzzer
22079 174224 7246 0 3 0x4000082 thrsleep syz-fuzzer
22079 430448 7246 0 3 0x4000082 thrsleep syz-fuzzer
22079 473072 7246 0 3 0x4000082 kqread syz-fuzzer
22079 77721 7246 0 3 0x4000082 thrsleep syz-fuzzer
7246 376510 5921 0 3 0x10008a pause ksh
5921 141968 41305 0 3 0x92 select sshd
41305 494213 1 0 3 0x80 select sshd
25321 33034 93724 74 3 0x100092 bpf pflogd
93724 5588 1 0 3 0x80 netio pflogd
42471 250444 92480 73 3 0x100090 kqread syslogd
92480 517022 1 0 3 0x100082 netio syslogd
21771 173291 1 77 7 0x100010 dhclient
63867 129982 1 0 3 0x80 poll dhclient
86165 401902 0 0 3 0x14200 pgzero zerothread
6783 390188 0 0 3 0x14200 aiodoned aiodoned
70141 447393 0 0 3 0x14200 syncer update
26973 247878 0 0 3 0x14200 cleaner cleaner
77777 102743 0 0 3 0x14200 reaper reaper
92560 372047 0 0 3 0x14200 pgdaemon pagedaemon
78651 136424 0 0 3 0x14200 bored crynlk
12218 438085 0 0 3 0x14200 bored crypto
75341 498594 0 0 3 0x40014200 acpi0 acpi0
24288 276717 0 0 3 0x40014200 idle1
87592 315000 0 0 3 0x14200 bored softnet
50370 82043 0 0 3 0x14200 bored systqmp
70315 349880 0 0 3 0x14200 bored systq
62618 374372 0 0 3 0x40014200 bored softclock
71447 336445 0 0 3 0x40014200 idle0
35680 107094 0 0 3 0x14200 bored smr
1 363193 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{1}> show all locks
Process 55702 (syz-executor.0) thread 0xffff800020b5ec70 (161735)
exclusive kernel_lock &kernel_lock r = 1 (0xffffffff823765d0)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 syscall+0x412 mi_syscall sys/sys/syscall_mi.h:83 [inline]
#1 syscall+0x412 sys/arch/amd64/amd64/trap.c:555
#2 Xsyscall+0x128
ddb{1}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim
devbuf 9638 6610K 14993K 78643K 44021 0 0
pcb 13 8K 8K 78643K 829 0 0
rtable 113 4K 5K 78643K 2536 0 0
ifaddr 94 24K 28K 78643K 1308 0 0
counters 39 33K 33K 78643K 39 0 0
ioctlops 0 0K 4K 78643K 2072 0 0
iov 0 0K 32K 78643K 1510 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1201 75K 77K 78643K 12681 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 172 0 0
VM map 2 1K 1K 78643K 2 0 0
sem 12 1K 1K 78643K 732 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1808 196K 290K 78643K 12765 0 0
file desc 5 13K 25K 78643K 13333 0 0
sigio 1 0K 0K 78643K 165 0 0
proc 55 51K 83K 78643K 1641 0 0
subproc 32 2K 2K 78643K 78 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 1167 0 0
in_multi 33 2K 2K 78643K 390 0 0
ether_multi 1 0K 0K 78643K 49 0 0
mrt 0 0K 0K 78643K 41 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 126 556K 556K 78643K 126 0 0
exec 0 0K 1K 78643K 1241 0 0
pfkey data 0 0K 4K 78643K 14 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 115 22K 32K 78643K 44170 0 0
UVM aobj 130 4K 4K 78643K 130 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 602 0 0
NDP 23 0K 0K 78643K 358 0 0
temp 249 2749K 3388K 78643K 44200 0 0
kqueue 0 0K 0K 78643K 122 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 10 0 4 1 0 1 1 0
8 0
plcache 128 20 0 0 1 0 1 1 0
8 0
rtpcb 80 528 0 526 1 0 1 1 0
8 0
rtentry 112 84 0 40 2 0 2 2 0
8 0
unpcb 120 4131 0 4119 1 0 1 1 0
8 0
syncache 264 4 0 4 1 1 0 1 0
8 0
tcpqe 32 7109 0 7109 2 2 0 2 0
8 0
tcpcb 544 2080 0 2076 1 0 1 1 0
8 0
inpcb 280 5506 0 5497 6 5 1 2 0
8 0
rttmr 72 7 0 7 3 3 0 1 0
8 0
ip6q 72 2 0 2 2 2 0 1 0
8 0
ip6af 48 4 0 4 2 2 0 1 0
8 0
nd6 48 12 0 6 1 0 1 1 0
8 0
pkpcb 40 77 0 77 29 29 0 1 0
8 0
swfcl 56 3 0 0 1 0 1 1 0
8 0
ppxss 1128 250 0 250 37 36 1 1 0
8 1
pffrag 232 9 0 9 6 6 0 1 0
482 0
pffrnode 88 9 0 9 6 6 0 1 0
8 0
pffrent 40 23 0 23 6 6 0 1 0
8 0
pfosfp 40 846 0 846 5 5 0 5 0
8 0
pfosfpen 112 1428 0 1428 21 21 0 21 0
8 0
pfstitem 24 206 0 189 1 0 1 1 0
8 0
pfstkey 112 206 0 189 1 0 1 1 0
8 0
pfstate 328 206 0 189 6 4 2 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 296 0 102 14 1 13 13 0
8 0
art_table 32 297 0 102 2 0 2 2 0
8 0
art_node 16 73 0 33 1 0 1 1 0
8 0
sysvmsgpl 40 31 0 4 1 0 1 1 0
8 0
semapl 112 730 0 720 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 22223 0 20790 47 0 47 47 0
8 0
ffsino 272 22223 0 20790 96 0 96 96 0
8 0
nchpl 144 41905 0 40270 62 0 62 62 0
8 0
uvmvnodes 72 5926 0 0 108 0 108 108 0
8 0
vnodes 200 5926 0 0 312 0 312 312 0
8 0
namei 1024 128606 0 128606 5 4 1 1 0
8 1
percpumem 16 30 0 0 1 0 1 1 0
8 0
scsiplug 64 19 0 19 12 11 1 1 0
8 1
scxspl 192 126907 0 126907 47 44 3 6 0
8 3
plimitpl 152 1022 0 1014 1 0 1 1 0
8 0
sigapl 432 13530 0 13515 3 1 2 3 0
8 0
futexpl 56 166589 0 166588 2 1 1 1 0
8 0
knotepl 112 2288 0 2269 1 0 1 1 0
8 0
kqueuepl 104 4261 0 4259 1 0 1 1 0
8 0
pipepl 112 8194 0 8175 14 13 1 2 0
8 0
fdescpl 488 13531 0 13515 3 0 3 3 0
8 0
filepl 152 79597 0 79493 19 14 5 7 0
8 0
lockfpl 104 4312 0 4312 6 5 1 1 0
8 1
lockfspl 48 1479 0 1479 6 5 1 1 0
8 1
sessionpl 112 23 0 12 1 0 1 1 0
8 0
pgrppl 48 167 0 156 1 0 1 1 0
8 0
ucredpl 96 17030 0 17021 1 0 1 1 0
8 0
zombiepl 144 13515 0 13515 6 5 1 1 0
8 1
processpl 896 13547 0 13515 4 0 4 4 0
8 0
procpl 632 42806 0 42762 29 24 5 5 0
8 1
srpgc 64 13 0 11 5 4 1 1 0
8 0
sosppl 128 178 0 178 37 36 1 1 0
8 1
sockpl 384 10330 0 10309 14 11 3 4 0
8 0
mcl64k 65536 903 0 0 110 69 41 64 0
8 0
mcl16k 16384 20 0 0 3 1 2 3 0
8 0
mcl12k 12288 57 0 0 3 1 2 2 0
8 0
mcl9k 9216 25 0 0 2 0 2 2 0
8 0
mcl8k 8192 17 0 0 3 0 3 3 0
8 0
mcl4k 4096 33 0 0 3 0 3 3 0
8 0
mcl2k2 2112 17 0 0 2 0 2 2 0
8 0
mcl2k 2048 274 0 0 29 13 16 29 0
8 0
mtagpl 80 27 0 0 1 0 1 1 0
8 0
mbufpl 256 1037 0 0 36 0 36 36 0
8 0
bufpl 256 36858 0 29829 440 0 440 440 0
8 0
anonpl 16 1235406 0 1223876 347 284 63 65 0
125 8
amapchunkpl 152 80983 0 80863 138 129 9 19 0
158 3
amappl16 192 65931 0 65306 384 344 40 45 0
8 8
amappl15 184 4960 0 4959 1 0 1 1 0
8 0
amappl14 176 5024 0 5016 1 0 1 1 0
8 0
amappl13 168 7044 0 7041 2 1 1 1 0
8 0
amappl12 160 9 0 9 2 2 0 1 0
8 0
amappl11 152 1337 0 1322 1 0 1 1 0
8 0
amappl10 144 78 0 75 1 0 1 1 0
8 0
amappl9 136 632 0 629 1 0 1 1 0
8 0
amappl8 128 202 0 171 2 0 2 2 0
8 0
amappl7 120 44 0 40 1 0 1 1 0
8 0
amappl6 112 1339 0 1330 1 0 1 1 0
8 0
amappl5 104 237 0 221 1 0 1 1 0
8 0
amappl4 96 13866 0 13836 2 1 1 2 0
8 0
amappl3 88 800 0 789 1 0 1 1 0
8 0
amappl2 80 113856 0 113782 4 2 2 3 0
8 0
amappl1 72 298890 0 298450 25 15 10 20 0
8 0
amappl 80 43232 0 43190 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
dma64 64 259 0 259 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 129 0 0 3 0 3 3 0
8 0
uaddrrnd 24 13531 0 13515 1 0 1 1 0
8 0
uaddrbest 32 2 0 0 1 0 1 1 0
8 0
uaddr 24 13531 0 13515 1 0 1 1 0
8 0
vmmpekpl 168 102089 0 102052 2 0 2 2 0
8 0
vmmpepl 168 1630455 0 1628686 365 276 89 99 0
357 6
vmsppl 368 13530 0 13515 2 0 2 2 0
8 0
pdppl 4096 27070 0 27030 6 0 6 6 0
8 0
pvpl 32 3222341 0 3207547 611 454 157 164 0 265
28
pmappl 232 13530 0 13515 2 1 1 2 0
8 0
extentpl 40 41 0 26 1 0 1 1 0
8 0
phpool 112 756 0 91 20 0 20 20 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.