Hello,
syzbot found the following crash on:
HEAD commit: 91a1919492c9 allow configuration of the rdomain that mpls ..
git tree: openbsd
console output:
https://syzkaller.appspot.com/x/log.txt?x=11ea8847400000
kernel config:
https://syzkaller.appspot.com/x/.config?x=ffa1da4399f74b2b
dashboard link:
https://syzkaller.appspot.com/bug?extid=45e6013561649527f923
compiler:
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+45e601...@syzkaller.appspotmail.com
panic: timeout_add: to_ticks (-3) < 0
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*102311 12424 0 0 0x4000000 0 syz-executor.0
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399
panic() at panic+0x15c sys/kern/subr_prf.c:208
timeout_add(ffff800000669260,fffffffd) at timeout_add+0x179
sys/kern/kern_timeout.c:190
pcppi_bell(ffff800000669200,2,fffffffd,1) at pcppi_bell+0x2a0
sys/dev/isa/pcppi.c:234
spkrioctl(1b00,20005302,ffff800014a240e0,2,ffff8000ffff8e18) at
spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline]
spkrioctl(1b00,20005302,ffff800014a240e0,2,ffff8000ffff8e18) at
spkrioctl+0x230 sys/dev/isa/spkr.c:503
VOP_IOCTL(fffffd8039bfc9d8,20005302,ffff800014a240e0,2,fffffd803f7c7a20,ffff8000ffff8e18)
at
VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290
vn_ioctl(fffffd802ff12a60,20005302,ffff800014a240e0,ffff8000ffff8e18) at
vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512
sys_ioctl(ffff8000ffff8e18,ffff800014a24228,ffff800014a24210) at
sys_ioctl+0x62d
syscall(ffff800014a242c0) at syscall+0x535
Xsyscall(6,0,ffffffffffffff88,0,3,c1925d3e010) at Xsyscall+0x128
end of kernel
end trace frame: 0xc1b9a5b9a20, count: 5
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
timeout_add: to_ticks (-3) < 0
ddb> trace
db_enter() at db_enter+24
panic() at panic+348
timeout_add(ffff800000669260,fffffffd) at timeout_add+377
pcppi_bell(ffff800000669200,2,fffffffd,1) at pcppi_bell+672
spkrioctl(1b00,20005302,ffff800014a240e0,2,ffff8000ffff8e18) at
spkrioctl+560
VOP_IOCTL(fffffd8039bfc9d8,20005302,ffff800014a240e0,2,fffffd803f7c7a20,ffff8000ffff8e18)
at
VOP_IOCTL+154
vn_ioctl(fffffd802ff12a60,20005302,ffff800014a240e0,ffff8000ffff8e18) at
vn_ioctl+201
sys_ioctl(ffff8000ffff8e18,ffff800014a24228,ffff800014a24210) at
sys_ioctl+1581
syscall(ffff800014a242c0) at syscall+1333
Xsyscall(6,0,ffffffffffffff88,0,3,c1925d3e010) at Xsyscall+296
end of kernel
end trace frame: 0xc1b9a5b9a20, count: -10
ddb> show registers
rdi 18446744071581504679 db_enter+23
rsi 4159 __ALIGN_SIZE+63
rbp 18446603336567373056
rbx 18446603336567373232
rdx 4160 __ALIGN_SIZE+64
rcx 18446603336266526720
rax 18446603336266526720
r8 18446603336567372992
r9 1
r10 18446603336245553664
r11 8064642738514009104
r12 206158430216
r13 18446603336567373072
r14 256
r15 1
rip 18446744071581504680 db_enter+24
cs 8
rflags 582
rsp 18446603336567373040
ss 16
db_enter+24: addq $8,%rsp
ddb> show proc
PROC (syz-executor.0) pid=102311 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=81, usrpri=81, nice=20
forw=0xffffffffffffffff, list=0xffff8000ffff84b8,0xffffffff8225bc68
process=0xffff8000149a3a60 user=0xffff800014a1f000,
vmspace=0xfffffd803f015a50
estcpu=36, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
12424 383496 71152 0 2 0 syz-executor.0
*12424 102311 71152 0 7 0x4000000 syz-executor.0
49770 446975 1 0 3 0x100083 ttyopn getty
56678 297759 0 0 3 0x14200 bored sosplice
71152 49397 67359 0 3 0x82 nanosleep syz-executor.0
78042 96377 67359 0 3 0x2 biowait syz-executor.1
67359 375338 64646 0 3 0x82 thrsleep syz-fuzzer
67359 330901 64646 0 3 0x4000082 nanosleep syz-fuzzer
67359 190385 64646 0 3 0x4000082 thrsleep syz-fuzzer
67359 168700 64646 0 3 0x4000082 thrsleep syz-fuzzer
67359 59679 64646 0 3 0x4000082 kqread syz-fuzzer
67359 411811 64646 0 3 0x4000082 thrsleep syz-fuzzer
67359 103179 64646 0 3 0x4000082 thrsleep syz-fuzzer
64646 219371 95823 0 3 0x10008a pause ksh
95823 46322 72724 0 3 0x92 select sshd
72724 420742 1 0 3 0x80 select sshd
82177 252356 80186 73 3 0x100090 kqread syslogd
80186 225691 1 0 3 0x100082 netio syslogd
63985 143847 1 77 3 0x100090 poll dhclient
55121 233917 1 0 3 0x80 poll dhclient
52423 283421 0 0 2 0x14200 zerothread
73243 53204 0 0 3 0x14200 aiodoned aiodoned
16595 221880 0 0 3 0x14200 syncer update
57875 457146 0 0 3 0x14200 cleaner cleaner
95791 358674 0 0 3 0x14200 reaper reaper
64615 154879 0 0 3 0x14200 pgdaemon pagedaemon
94355 55595 0 0 3 0x14200 bored crynlk
69996 293051 0 0 3 0x14200 bored crypto
57016 184195 0 0 3 0x40014200 acpi0 acpi0
61695 123288 0 0 3 0x14200 bored softnet
57242 85447 0 0 3 0x14200 bored systqmp
36682 286488 0 0 3 0x14200 bored systq
98458 512010 0 0 3 0x40014200 bored softclock
20607 303795 0 0 3 0x40014200 idle0
1 299502 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 9497 6341K 6356K 78643K 11132 0 0
pcb 23 9K 11K 78643K 999 0 0
rtable 100 3K 3K 78643K 398 0 0
ifaddr 53 13K 14K 78643K 190 0 0
counters 19 16K 16K 78643K 19 0 0
ioctlops 0 0K 2K 78643K 35 0 0
iov 0 0K 20K 78643K 211 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1194 75K 75K 78643K 2234 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 28 0 0
VM map 2 0K 0K 78643K 2 0 0
sem 12 0K 0K 78643K 184 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1777 193K 286K 78643K 12501 0 0
file desc 5 13K 25K 78643K 1700 0 0
sigio 0 0K 0K 78643K 30 0 0
proc 42 30K 46K 78643K 527 0 0
subproc 64 65538K 67586K 78643K 74 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 229 0 0
in_multi 33 2K 2K 78643K 105 0 0
ether_multi 1 0K 0K 78643K 10 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 84 371K 371K 78643K 84 0 0
exec 0 0K 1K 78643K 346 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 83 20K 40K 78643K 4947 0 0
UVM aobj 110 6K 6K 78643K 121 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 46 0 0
NDP 10 0K 0K 78643K 51 0 0
temp 156 2347K 2423K 78643K 7278 0 0
kqueue 0 0K 0K 78643K 17 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 4 0 0 1 0 1 1 0
8 0
inpcbpl 280 827 0 820 1 0 1 1 0
8 0
plimitpl 152 39 0 32 1 0 1 1 0
8 0
rtentry 112 41 0 1 2 0 2 2 0
8 0
syncache 264 4 0 4 1 1 0 1 0
8 0
tcpcb 544 302 0 298 1 0 1 1 0
8 0
nd6 48 4 0 0 1 0 1 1 0
8 0
swfcl 56 1 0 0 1 0 1 1 0
8 0
ppxss 1128 27 0 27 9 8 1 1 0
8 1
art_heap8 4096 1 0 0 1 0 1 1 0
8 0
art_heap4 256 184 0 0 12 0 12 12 0
8 0
art_table 32 185 0 0 2 0 2 2 0
8 0
art_node 16 40 0 6 1 0 1 1 0
8 0
sysvmsgpl 40 16 0 6 1 0 1 1 0
8 0
semapl 112 182 0 172 1 0 1 1 0
8 0
shmpl 112 119 0 11 4 0 4 4 0
8 0
dirhash 1024 17 0 0 3 0 3 3 0
8 0
dino1pl 128 4671 0 3230 47 0 47 47 0
8 0
ffsino 240 4671 0 3230 85 0 85 85 0
8 0
nchpl 144 7321 0 5700 61 0 61 61 0
8 0
uvmvnodes 72 4862 0 0 89 0 89 89 0
8 0
vnodes 200 4862 0 0 256 0 256 256 0
8 0
namei 1024 22583 0 22582 1 0 1 1 0
8 0
scsiplug 64 3 0 3 1 1 0 1 0
8 0
scxspl 192 21878 0 21877 13 12 1 6 0
8 0
sigapl 432 1871 0 1858 2 0 2 2 0
8 0
futexpl 56 27933 0 27933 1 0 1 1 0
8 1
knotepl 112 433 0 406 6 5 1 2 0
8 0
kqueuepl 104 535 0 533 1 0 1 1 0
8 0
pipepl 112 1260 0 1241 5 4 1 2 0
8 0
fdescpl 424 1872 0 1858 2 0 2 2 0
8 0
filepl 120 12042 0 11947 5 1 4 5 0
8 1
lockfpl 104 741 0 740 3 2 1 1 0
8 0
lockfspl 32 1214 0 1213 3 2 1 1 0
8 0
sessionpl 112 20 0 10 1 0 1 1 0
8 0
pgrppl 48 44 0 34 1 0 1 1 0
8 0
ucredpl 96 3658 0 3651 1 0 1 1 0
8 0
zombiepl 144 1858 0 1858 2 1 1 1 0
8 1
processpl 840 1886 0 1858 5 1 4 4 0
8 0
procpl 600 4288 0 4253 6 2 4 4 0
8 1
sosppl 128 22 0 22 5 5 0 1 0
8 0
sockpl 384 1701 0 1684 4 1 3 4 0
8 1
mcl64k 65536 1589 0 1589 133 112 21 64 0 8
21
mcl16k 16384 2 0 2 2 2 0 1 0
8 0
mcl12k 12288 34 0 34 11 11 0 1 0
8 0
mcl9k 9216 29 0 29 8 8 0 1 0
8 0
mcl8k 8192 33 0 33 13 12 1 1 0
8 1
mcl4k 4096 111 0 111 6 5 1 1 0
8 1
mcl2k2 2112 3 0 3 2 2 0 1 0
8 0
mcl2k 2048 44139 0 44106 12 7 5 10 0
8 0
mtagpl 80 2 0 2 1 1 0 1 0
8 0
mbufpl 256 82091 0 82036 86 81 5 36 0
8 0
bufpl 256 9606 0 4223 337 0 337 337 0
8 0
anonpl 16 194702 0 186703 128 79 49 50 0 62
14
amapchunkpl 152 17815 0 17736 158 140 18 96 0 158
14
amappl16 192 11671 0 11245 119 88 31 34 0
8 8
amappl15 184 3 0 1 1 0 1 1 0
8 0
amappl14 176 8 0 7 2 1 1 1 0
8 0
amappl13 168 26 0 23 1 0 1 1 0
8 0
amappl12 160 1 0 1 1 1 0 1 0
8 0
amappl11 152 1006 0 995 1 0 1 1 0
8 0
amappl10 144 57 0 55 1 0 1 1 0
8 0
amappl9 136 22 0 18 1 0 1 1 0
8 0
amappl8 128 151 0 126 1 0 1 1 0
8 0
amappl7 120 43 0 37 1 0 1 1 0
8 0
amappl6 112 50 0 45 1 0 1 1 0
8 0
amappl5 104 806 0 793 1 0 1 1 0
8 0
amappl4 96 1130 0 1106 2 1 1 2 0
8 0
amappl3 88 208 0 203 1 0 1 1 0
8 0
amappl2 80 18263 0 18209 2 0 2 2 0
8 0
amappl1 72 42361 0 41939 25 15 10 19 0
8 0
amappl 72 4525 0 4494 1 0 1 1 0
75 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 120 0 11 2 0 2 2 0
8 0
uaddrrnd 24 1872 0 1858 1 0 1 1 0
8 0
uaddrbest 32 2 0 0 1 0 1 1 0
8 0
uaddr 24 1872 0 1858 1 0 1 1 0
8 0
vmmpekpl 168 17582 0 17560 2 0 2 2 0
8 0
vmmpepl 168 200003 0 198637 147 76 71 76 0
357 6
vmsppl 264 1871 0 1858 2 1 1 2 0
8 0
pdppl 4096 3750 0 3716 6 1 5 6 0
8 0
pvpl 32 594633 0 583652 247 119 128 186 0 265
35
pmappl 192 1871 0 1858 1 0 1 1 0
8 0
extentpl 40 39 0 25 1 0 1 1 0
8 0
phpool 112 700 0 222 16 0 16 16 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#bug-status-tracking for how to communicate with
syzbot.