uvm_fault: tun_dev_read (2)

0 views
Skip to first unread message

syzbot

unread,
Nov 21, 2019, 1:22:10 PM11/21/19
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 135e95f2 Remove duplicate #define OFP_ALIGNMENT
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=110c958ce00000
kernel config: https://syzkaller.appspot.com/x/.config?x=d0fe83f82fe104d4
dashboard link: https://syzkaller.appspot.com/bug?extid=d6a1459fefd4233f0302

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

uvm_fault(0xffffffff8253c8b0, 0xfffffd0000000018, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at tun_dev_read+0x2ab: movl 0x18(%r14),%r15d
ddb>
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
kernel page fault
uvm_fault(0xffffffff8253c8b0, 0xfffffd0000000018, 0, 1) -> e
tun_dev_read(ffff800000abc000,ffff800015920b58,10) at tun_dev_read+0x2ab
sys/net/if_tun.c:825
end trace frame: 0xffff800015920990, count: 0
ddb> trace
tun_dev_read(ffff800000abc000,ffff800015920b58,10) at tun_dev_read+0x2ab
sys/net/if_tun.c:825
spec_read(ffff8000159209a0) at spec_read+0xe9 sys/kern/spec_vnops.c:222
VOP_READ(fffffd803e7a8750,ffff800015920b58,10,fffffd803f7c6a80) at
VOP_READ+0xbf sys/kern/vfs_vops.c:248
vn_read(fffffd803620c3c8,ffff800015920b58,0) at vn_read+0x11f
sys/kern/vfs_vnops.c:375
dofilereadv(ffff8000ffff8008,f0,ffff800015920b58,0,ffff800015920c40) at
dofilereadv+0x1a2 sys/kern/sys_generic.c:236
sys_read(ffff8000ffff8008,ffff800015920bf0,ffff800015920c40) at
sys_read+0x83 sys/kern/sys_generic.c:156
syscall(ffff800015920cc0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x46101f5ad30, count: -8
ddb> show registers
rdi 0
rsi 0
rbp 0xffff8000159208e0
rbx 0x3b2
rdx 0x1ba
rcx 0xffff800017b4c000
rax 0xffff800000a5fe40
r8 0x7f7fffffc000
r9 0x5
r10 0xd1867dec5a159e50
r11 0xb6b0d247073a421e
r12 0xffff800015920b58
r13 0x10
r14 0xfffffd0000000000
r15 0
rip 0xffffffff812f84fb tun_dev_read+0x2ab
cs 0x8
rflags 0x10206 __ALIGN_SIZE+0xf206
rsp 0xffff800015920870
ss 0x10
tun_dev_read+0x2ab: movl 0x18(%r14),%r15d
ddb> show proc
PROC (syz-executor.1) pid=195751 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=73, usrpri=73, nice=20
forw=0xffffffffffffffff, list=0xffff8000ffff8280,0xffffffff8257ec70
process=0xffff8000ffffb448 user=0xffff80001591b000,
vmspace=0xfffffd803f012bb0
estcpu=36, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
12714 29621 42589 0 2 0 syz-executor.1
*12714 195751 42589 0 7 0x4000000 syz-executor.1
46020 79798 1 0 3 0x100083 ttyin getty
74272 454677 39960 0 2 0x2 syz-executor.0
42589 206283 39960 0 2 0x482 syz-executor.1
22845 457311 0 0 3 0x14200 bored sosplice
39960 27340 57524 0 3 0x82 thrsleep syz-fuzzer
39960 264109 57524 0 2 0x4000482 syz-fuzzer
39960 274008 57524 0 3 0x4000082 kqread syz-fuzzer
39960 521343 57524 0 3 0x4000082 thrsleep syz-fuzzer
39960 165171 57524 0 3 0x4000082 thrsleep syz-fuzzer
39960 513379 57524 0 3 0x4000082 thrsleep syz-fuzzer
39960 434714 57524 0 3 0x4000082 thrsleep syz-fuzzer
39960 414259 57524 0 3 0x4000082 thrsleep syz-fuzzer
57524 510665 43573 0 3 0x10008a pause ksh
43573 183397 12551 0 3 0x92 select sshd
12551 248372 1 0 3 0x80 select sshd
54317 201000 95007 73 3 0x100090 kqread syslogd
95007 213803 1 0 3 0x100082 netio syslogd
6478 319201 1 77 3 0x100090 poll dhclient
45008 147746 1 0 3 0x80 poll dhclient
50850 384643 0 0 2 0x14200 zerothread
2997 408941 0 0 3 0x14200 aiodoned aiodoned
78690 40837 0 0 3 0x14200 syncer update
56337 436372 0 0 3 0x14200 cleaner cleaner
94815 228309 0 0 3 0x14200 reaper reaper
51974 92901 0 0 3 0x14200 pgdaemon pagedaemon
14708 231519 0 0 3 0x14200 bored crynlk
75185 481869 0 0 3 0x14200 bored crypto
60980 97608 0 0 3 0x40014200 acpi0 acpi0
51903 252903 0 0 3 0x14200 bored softnet
48173 416647 0 0 3 0x14200 bored systqmp
61139 296500 0 0 3 0x14200 bored systq
23012 258962 0 0 3 0x40014200 bored softclock
40007 54194 0 0 3 0x40014200 idle0
11155 349685 0 0 3 0x14200 bored smr
1 500534 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 Kern Lim
devbuf 9580 7826K 8018K 78643K 15756 0 0
pcb 14 8K 9K 78643K 755 0 0
rtable 104 12K 12K 78643K 707 0 0
ifaddr 84 16K 17K 78643K 287 0 0
counters 19 16K 16K 78643K 19 0 0
ioctlops 0 0K 2K 78643K 78 0 0
iov 0 0K 24K 78643K 244 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1224 77K 77K 78643K 2729 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 21 0 0
VM map 20 5K 5K 78643K 21 0 0
sem 12 0K 0K 78643K 593 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1794 195K 288K 78643K 12646 0 0
file desc 5 13K 25K 78643K 1142 0 0
sigio 0 0K 0K 78643K 25 0 0
proc 48 38K 54K 78643K 603 0 0
subproc 32 2K 2K 78643K 85 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 83 0 0
in_multi 83 3K 3K 78643K 153 0 0
ether_multi 1 0K 0K 78643K 7 0 0
mrt 1 0K 0K 78643K 4 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 72 318K 318K 78643K 72 0 0
exec 0 0K 1K 78643K 291 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 137 185K 185K 78643K 4126 0 0
UVM aobj 130 6K 6K 78643K 134 0 0
memdesc 1 4K 4K 78643K 1 0 0
crypto data 1 1K 1K 78643K 1 0 0
ip6_options 1 0K 0K 78643K 937 0 0
NDP 14 0K 0K 78643K 63 0 0
temp 142 3539K 4179K 78643K 45303 0 0
kqueue 0 0K 0K 78643K 20 0 0
SYN cache 2 16K 16K 78643K 2 0 0
ddb> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg
Idle
arp 64 27 0 19 1 0 1 1 0
8 0
rtpcb 80 109 0 107 1 0 1 1 0
8 0
rtentry 112 110 0 71 2 0 2 2 0
8 0
unpcb 120 505 0 497 1 0 1 1 0
8 0
syncache 264 6 0 6 2 2 0 1 0
8 0
tcpqe 32 133 0 133 2 2 0 1 0
8 0
tcpcb 544 1063 0 1059 6 5 1 2 0
8 0
ipq 40 15 0 15 6 5 1 1 0
8 1
ipqe 40 418 0 418 6 5 1 1 0
8 1
inpcb 280 2767 0 2757 12 10 2 3 0
8 1
rttmr 72 1 0 1 1 1 0 1 0
8 0
nd6 48 13 0 11 1 0 1 1 0
8 0
pkpcb 40 2 0 2 1 1 0 1 0
8 0
ppxss 1128 26 0 26 8 7 1 1 0
8 1
art_heap8 4096 2 0 0 2 0 2 2 0
8 0
art_heap4 256 486 0 286 21 6 15 15 0
8 0
art_table 32 488 0 286 2 0 2 2 0
8 0
art_node 16 109 0 72 1 0 1 1 0
8 0
sysvmsgpl 40 20 0 15 1 0 1 1 0
8 0
semupl 112 3 0 3 1 1 0 1 0
8 0
semapl 112 589 0 579 1 0 1 1 0
8 0
shmpl 112 132 0 4 4 0 4 4 0
8 0
dirhash 1024 17 0 0 3 0 3 3 0
8 0
dino1pl 128 3074 0 1686 46 0 46 46 0
8 0
ffsino 240 3074 0 1686 83 0 83 83 0
8 0
nchpl 144 4872 0 3285 60 0 60 60 0
8 0
uvmvnodes 72 4340 0 0 79 0 79 79 0
8 0
vnodes 208 4340 0 0 229 0 229 229 0
8 0
namei 1024 18156 0 18155 1 0 1 1 0
8 0
vcpupl 1984 19 0 1 3 0 3 3 0
8 0
vmpool 520 19 0 1 2 0 2 2 0
8 0
scsiplug 64 1 0 1 1 1 0 1 0
8 0
scxspl 192 15784 0 15784 13 11 2 7 0
8 2
plimitpl 152 75 0 68 1 0 1 1 0
8 0
sigapl 432 1305 0 1292 2 0 2 2 0
8 0
futexpl 56 41883 0 41883 1 0 1 1 0
8 1
knotepl 112 213 0 194 2 1 1 2 0
8 0
kqueuepl 104 291 0 289 1 0 1 1 0
8 0
pipepl 128 920 0 901 7 6 1 2 0
8 0
fdescpl 424 1306 0 1292 2 0 2 2 0
8 0
filepl 120 12990 0 12890 12 8 4 6 0
8 0
lockfpl 104 334 0 330 1 0 1 1 0
8 0
lockfspl 48 104 0 100 1 0 1 1 0
8 0
sessionpl 112 22 0 12 1 0 1 1 0
8 0
pgrppl 48 38 0 28 1 0 1 1 0
8 0
ucredpl 96 2766 0 2759 1 0 1 1 0
8 0
zombiepl 144 1293 0 1293 1 0 1 1 0
8 1
processpl 864 1322 0 1293 4 0 4 4 0
8 0
procpl 632 3204 0 3167 9 5 4 5 0
8 0
sosppl 128 27 0 27 7 7 0 1 0
8 0
sockpl 384 3409 0 3389 15 12 3 6 0
8 1
mcl64k 65536 589 0 589 63 62 1 32 0
8 1
mcl16k 16384 20 0 20 7 6 1 1 0
8 1
mcl12k 12288 26 0 26 7 6 1 1 0
8 1
mcl9k 9216 19 0 19 7 6 1 1 0
8 1
mcl8k 8192 70 0 70 3 2 1 1 0
8 1
mcl4k 4096 126 0 126 3 2 1 1 0
8 1
mcl2k2 2112 276 0 276 5 4 1 1 0
8 1
mcl2k 2048 69341 0 69295 18 11 7 16 0
8 0
mtagpl 80 61 0 28 3 2 1 1 0
8 0
mbufpl 256 122356 0 122191 85 64 21 24 0
8 8
bufpl 256 11723 0 4753 437 0 437 437 0
8 0
anonpl 16 192590 0 171370 144 42 102 102 0 62
15
amapchunkpl 152 7876 0 7716 36 25 11 20 0
158 3
amappl16 192 9175 0 7997 126 58 68 72 0
8 8
amappl15 184 261 0 261 2 2 0 1 0
8 0
amappl14 176 530 0 524 1 0 1 1 0
8 0
amappl12 160 348 0 345 1 0 1 1 0
8 0
amappl11 152 59 0 48 1 0 1 1 0
8 0
amappl10 144 28 0 24 1 0 1 1 0
8 0
amappl9 136 602 0 598 1 0 1 1 0
8 0
amappl8 128 201 0 167 2 0 2 2 0
8 0
amappl7 120 54 0 49 1 0 1 1 0
8 0
amappl6 112 59 0 51 1 0 1 1 0
8 0
amappl5 104 517 0 505 1 0 1 1 0
8 0
amappl4 96 1554 0 1525 1 0 1 1 0
8 0
amappl3 88 149 0 140 1 0 1 1 0
8 0
amappl2 80 9761 0 9695 3 1 2 3 0
8 0
amappl1 72 32749 0 32339 26 17 9 20 0
8 0
amappl 80 3516 0 3459 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 133 0 4 3 0 3 3 0
8 0
uaddrrnd 24 1325 0 1292 1 0 1 1 0
8 0
uaddrbest 32 2 0 0 1 0 1 1 0
8 0
uaddr 24 1325 0 1292 1 0 1 1 0
8 0
vmmpekpl 168 13398 0 13370 2 0 2 2 0
8 0
vmmpepl 168 165295 0 163008 226 110 116 143 0 357
10
vmsppl 272 1305 0 1292 2 1 1 2 0
8 0
pdppl 4096 2656 0 2604 8 1 7 7 0
8 0
pvpl 32 532586 0 508180 339 103 236 281 0 265
34
pmappl 200 1324 0 1293 2 0 2 2 0
8 0
extentpl 40 46 0 29 1 0 1 1 0
8 0
phpool 112 744 0 162 18 0 18 18 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.

syzbot

unread,
Oct 23, 2020, 2:18:11 PM10/23/20
to syzkaller-o...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages