Hello,
syzbot found the following crash on:
HEAD commit: 4f5a6e71 If the requensted block size is too large, then u..
git tree: openbsd
console output:
https://syzkaller.appspot.com/x/log.txt?x=17e29095600000
kernel config:
https://syzkaller.appspot.com/x/.config?x=d0fe83f82fe104d4
dashboard link:
https://syzkaller.appspot.com/bug?extid=71bad0cf073e2d2a544e
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+71bad0...@syzkaller.appspotmail.com
uvm_fault(0xffffffff82542bb0, 0xffff800000b69073, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at rtable_satoplen+0x150: movzbl
0xffffffffffffffff(%r13),%r12d
ddb>
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
kernel page fault
uvm_fault(0xffffffff82542bb0, 0xffff800000b69073, 0, 1) -> e
rtable_satoplen(2,ffff800000b68f78) at rtable_satoplen+0x150
sys/net/rtable.c:894
end trace frame: 0xffff800015932910, count: 0
ddb> trace
rtable_satoplen(2,ffff800000b68f78) at rtable_satoplen+0x150
sys/net/rtable.c:894
rtable_lookup(0,fffffd8038c1e320,ffff800000b68f78,ffff800000b68f58,4) at
rtable_lookup+0xe0 sys/net/rtable.c:391
rtrequest_delete(ffff8000159329b0,4,ffff800000b5c000,ffff800015932a80,0) at
rtrequest_delete+0xe3 sys/net/route.c:775
rt_ifa_del(ffff800000b68f00,800100,ffff800000b68f58,0) at rt_ifa_del+0x3c3
sys/net/route.c:1191
in_ioctl_change_ifaddr(8040691a,ffff800015932d10,ffff800000b5c000,1) at
in_ioctl_change_ifaddr+0x355 in_remove_prefix sys/netinet/in.c:738 [inline]
in_ioctl_change_ifaddr(8040691a,ffff800015932d10,ffff800000b5c000,1) at
in_ioctl_change_ifaddr+0x355 in_ifscrub sys/netinet/in.c:562 [inline]
in_ioctl_change_ifaddr(8040691a,ffff800015932d10,ffff800000b5c000,1) at
in_ioctl_change_ifaddr+0x355 sys/netinet/in.c:432
in_ioctl(8040691a,ffff800015932d10,ffff800000b5c000,1) at in_ioctl+0x205
sys/netinet/in.c:234
ifioctl(fffffd802cfbb060,8040691a,ffff800015932d10,ffff800014914290) at
ifioctl+0xb34 sys/net/if.c:2202
sys_ioctl(ffff800014914290,ffff800015932e28,ffff800015932e70) at
sys_ioctl+0x5b9
syscall(ffff800015932ef0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,0,ffffffffffffff36,0,3,fe2d0d75010) at Xsyscall+0x128
end of kernel
end trace frame: 0xfe5210676b0, count: -10
ddb> show registers
rdi 0
rsi 0xfc
rbp 0xffff800015932870
rbx 0xffffffffffffff08
rdx 0xffff800000b68f7c
rcx 0xffff800000b69074
rax 0xffff800000b69074
r8 0x4
r9 0x7
r10 0x694224bc64cfbd3c
r11 0xd942afcde0a6a882
r12 0
r13 0xffff800000b69074
r14 0xffffffff82480c50 inetdomain
r15 0x4
rip 0xffffffff814d6410 rtable_satoplen+0x150
cs 0x8
rflags 0x10283 __ALIGN_SIZE+0xf283
rsp 0xffff800015932820
ss 0x10
rtable_satoplen+0x150: movzbl 0xffffffffffffffff(%r13),%r12d
ddb> show proc
PROC (syz-executor.0) pid=280135 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=82, usrpri=82, nice=20
forw=0xffffffffffffffff, list=0xffff8000149153d8,0xffffffff825545b0
process=0xffff8000ffff7b10 user=0xffff80001592d000,
vmspace=0xfffffd803f013bb0
estcpu=36, cpticks=0, pctcpu=0.0
user=0, sys=0, intr=0
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
55323 169659 65524 0 2 0 syz-executor.0
*55323 280135 65524 0 7 0x4000000 syz-executor.0
44249 230796 56526 0 3 0x82 nanosleep syz-executor.1
522 242913 0 0 3 0x14200 acct acct
65524 410274 56526 0 3 0x82 nanosleep syz-executor.0
60268 123618 1 0 3 0x100083 ttyin getty
35770 288773 0 0 3 0x14200 bored sosplice
56526 36132 87699 0 3 0x82 thrsleep syz-fuzzer
56526 167365 87699 0 3 0x4000082 nanosleep syz-fuzzer
56526 214455 87699 0 3 0x4000082 thrsleep syz-fuzzer
56526 436186 87699 0 3 0x4000082 thrsleep syz-fuzzer
56526 462504 87699 0 3 0x4000082 thrsleep syz-fuzzer
56526 416786 87699 0 3 0x4000082 kqread syz-fuzzer
56526 240446 87699 0 3 0x4000082 thrsleep syz-fuzzer
87699 483106 3042 0 3 0x10008a pause ksh
3042 204171 29181 0 3 0x92 select sshd
29181 378622 1 0 3 0x80 select sshd
16509 60503 3767 73 3 0x100090 kqread syslogd
3767 252253 1 0 3 0x100082 netio syslogd
86863 48164 1 77 3 0x100090 poll dhclient
92652 165827 1 0 3 0x80 poll dhclient
70462 274243 0 0 2 0x14200 zerothread
61322 260476 0 0 3 0x14200 aiodoned aiodoned
57345 332486 0 0 3 0x14200 syncer update
99817 300096 0 0 3 0x14200 cleaner cleaner
27037 219428 0 0 3 0x14200 reaper reaper
32160 247490 0 0 3 0x14200 pgdaemon pagedaemon
50750 517713 0 0 3 0x14200 bored crynlk
33436 119847 0 0 3 0x14200 bored crypto
3851 485713 0 0 3 0x40014200 acpi0 acpi0
83455 384543 0 0 3 0x14200 bored softnet
41673 45179 0 0 3 0x14200 bored systqmp
52076 338946 0 0 3 0x14200 bored systq
2792 171677 0 0 3 0x40014200 bored softclock
85710 374267 0 0 3 0x40014200 idle0
22708 316672 0 0 3 0x14200 bored smr
1 493468 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 9573 6373K 7386K 78643K 29257 0 0
pcb 13 8K 8K 78643K 1567 0 0
rtable 115 12K 13K 78643K 5158 0 0
ifaddr 78 18K 20K 78643K 888 0 0
counters 19 16K 16K 78643K 19 0 0
ioctlops 0 0K 2K 78643K 293 0 0
iov 0 0K 18K 78643K 769 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1223 77K 78K 78643K 8749 0 0
UFS quota 1 32K 32K 78643K 1 0 0
UFS mount 5 36K 36K 78643K 5 0 0
shm 2 1K 9K 78643K 125 0 0
VM map 2 0K 0K 78643K 16 0 0
sem 12 1K 1K 78643K 988 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1793 195K 288K 78643K 12645 0 0
file desc 5 13K 25K 78643K 8205 0 0
sigio 1 0K 0K 78643K 94 0 0
proc 50 38K 63K 78643K 2672 0 0
subproc 32 2K 2K 78643K 735 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 802 0 0
in_multi 34 2K 2K 78643K 665 0 0
ether_multi 1 0K 0K 78643K 35 0 0
mrt 0 0K 0K 78643K 19 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 150 662K 662K 78643K 150 0 0
exec 0 0K 1K 78643K 1281 0 0
pfkey data 0 0K 4K 78643K 6 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 107 22K 30K 78643K 20454 0 0
UVM aobj 130 4K 4K 78643K 225 0 0
memdesc 1 4K 4K 78643K 1 0 0
crypto data 1 1K 1K 78643K 1 0 0
ip6_options 0 0K 1K 78643K 1055 0 0
NDP 18 0K 0K 78643K 290 0 0
temp 212 3536K 4171K 78643K 146445 0 0
kqueue 0 0K 0K 78643K 78 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 385 0 379 1 0 1 1 0
8 0
rtpcb 80 2096 0 2094 1 0 1 1 0
8 0
rtentry 112 923 0 882 2 0 2 2 0
8 0
unpcb 120 2883 0 2869 1 0 1 1 0
8 0
syncache 264 4 0 4 1 1 0 1 0
8 0
sackhl 24 3 0 3 3 3 0 1 0
8 0
tcpqe 32 5813 0 5813 1 1 0 1 0
8 0
tcpcb 544 1833 0 1829 1 0 1 1 0
8 0
ipq 40 8 0 8 4 4 0 1 0
8 0
ipqe 40 16 0 16 4 4 0 1 0
8 0
inpcb 280 6874 0 6866 29 28 1 4 0
8 0
rttmr 72 1 0 1 1 1 0 1 0
8 0
ip6q 72 1 0 1 1 1 0 1 0
8 0
nd6 48 76 0 72 2 1 1 1 0
8 0
pkpcb 40 40 0 40 13 13 0 1 0
8 0
swfcl 56 2 0 0 1 0 1 1 0
8 0
ppxss 1128 113 0 113 32 32 0 1 0
8 0
art_heap8 4096 4 0 3 2 1 1 2 0
8 0
art_heap4 256 2227 0 2011 26 12 14 16 0
8 0
art_table 32 2231 0 2014 3 1 2 3 0
8 0
art_node 16 905 0 869 1 0 1 1 0
8 0
sysvmsgpl 40 15 0 15 2 2 0 1 0
8 0
semupl 112 1 0 1 1 1 0 1 0
8 0
semapl 112 986 0 976 1 0 1 1 0
8 0
shmpl 112 223 0 95 4 0 4 4 0
8 0
dirhash 1024 17 0 0 3 0 3 3 0
8 0
dino1pl 128 13393 0 11990 46 0 46 46 0
8 0
ffsino 240 13393 0 11990 83 0 83 83 0
8 0
nchpl 144 29745 0 28134 62 0 62 62 0
8 0
uvmvnodes 72 7279 0 0 133 0 133 133 0
8 0
vnodes 208 7279 0 0 384 0 384 384 0
8 0
namei 1024 96485 0 96485 6 5 1 1 0
8 1
vmpool 520 14 0 14 6 6 0 1 0
8 0
scsiplug 64 8 0 8 8 8 0 1 0
8 0
scxspl 192 79785 0 79785 35 34 1 7 0
8 1
plimitpl 152 601 0 594 1 0 1 1 0
8 0
sigapl 432 8254 0 8241 2 0 2 2 0
8 0
futexpl 56 177187 0 177187 4 3 1 1 0
8 1
knotepl 112 2271 0 2252 6 5 1 3 0
8 0
kqueuepl 104 1966 0 1964 1 0 1 1 0
8 0
pipepl 112 4212 0 4193 13 12 1 2 0
8 0
fdescpl 424 8255 0 8241 2 0 2 2 0
8 0
filepl 120 66188 0 66092 15 11 4 5 0
8 0
lockfpl 104 2241 0 2240 1 0 1 1 0
8 0
lockfspl 48 743 0 742 1 0 1 1 0
8 0
sessionpl 112 59 0 49 1 0 1 1 0
8 0
pgrppl 48 146 0 136 1 0 1 1 0
8 0
ucredpl 96 9145 0 9138 1 0 1 1 0
8 0
zombiepl 144 8247 0 8246 3 2 1 1 0
8 0
processpl 864 8277 0 8246 4 0 4 4 0
8 0
procpl 632 17868 0 17830 5 1 4 5 0
8 0
sosppl 128 83 0 83 22 22 0 1 0
8 0
sockpl 384 12001 0 11977 36 32 4 6 0
8 0
mcl64k 65536 463 0 463 59 58 1 32 0
8 1
mcl16k 16384 33 0 33 24 24 0 1 0
8 0
mcl12k 12288 137 0 137 25 24 1 1 0
8 1
mcl9k 9216 92 0 92 32 32 0 1 0
8 0
mcl8k 8192 194 0 194 19 18 1 1 0
8 1
mcl4k 4096 591 0 591 5 4 1 1 0
8 1
mcl2k2 2112 54 0 54 25 25 0 1 0
8 0
mcl2k 2048 67703 0 67661 36 30 6 19 0
8 0
mtagpl 80 236 0 226 8 7 1 1 0
8 0
mbufpl 256 166560 0 166389 68 55 13 22 0
8 1
bufpl 256 26785 0 19511 456 1 455 456 0
8 0
anonpl 16 800911 0 786670 268 205 63 76 0
62 0
amapchunkpl 152 38053 0 37949 108 102 6 29 0
158 0
amappl16 192 42595 0 41772 329 285 44 55 0
8 2
amappl15 184 1643 0 1642 5 4 1 1 0
8 0
amappl14 176 1684 0 1681 2 1 1 1 0
8 0
amappl13 168 1377 0 1376 1 0 1 1 0
8 0
amappl12 160 629 0 626 1 0 1 1 0
8 0
amappl11 152 832 0 818 1 0 1 1 0
8 0
amappl10 144 1346 0 1346 7 7 0 1 0
8 0
amappl9 136 1963 0 1957 1 0 1 1 0
8 0
amappl8 128 1439 0 1398 2 0 2 2 0
8 0
amappl7 120 1540 0 1533 1 0 1 1 0
8 0
amappl6 112 726 0 715 1 0 1 1 0
8 0
amappl5 104 1058 0 1048 1 0 1 1 0
8 0
amappl4 96 9153 0 9122 1 0 1 1 0
8 0
amappl3 88 1675 0 1669 1 0 1 1 0
8 0
amappl2 80 64061 0 63995 4 2 2 3 0
8 0
amappl1 72 157374 0 156976 27 18 9 20 0
8 0
amappl 80 18722 0 18687 2 1 1 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 224 0 95 3 0 3 3 0
8 0
uaddrrnd 24 8269 0 8241 1 0 1 1 0
8 0
uaddrbest 32 2 0 0 1 0 1 1 0
8 0
uaddr 24 8269 0 8241 1 0 1 1 0
8 0
vmmpekpl 168 49085 0 49059 2 0 2 2 0
8 0
vmmpepl 168 975497 0 973622 507 389 118 124 0 357
30
vmsppl 272 8254 0 8241 6 4 2 2 0
8 1
pdppl 4096 16544 0 16510 6 1 5 6 0
8 0
pvpl 32 2296923 0 2279558 615 458 157 290 0 265
10
pmappl 200 8268 0 8255 1 0 1 1 0
8 0
extentpl 40 41 0 26 1 0 1 1 0
8 0
phpool 112 802 0 215 18 1 17 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.