[chrony-dev] crash when overloading refclock_sock |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: [chrony-dev] crash when overloading refclock_sock
- From: Nuno Gonçalves <nunojpg@xxxxxxxxx>
- Date: Wed, 5 Oct 2016 10:56:04 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=qxXALzNn8MWWjyPRUicr2u0bvGYTmELQtU06tk3W+as=; b=BHZc/AXyzBqWp9KqMybTqToQI5ylnMAXzZLrKAMK7JM3HqVoWHzUUcUxrB3F8F4xzu 8K9Ltxjh5F1DcYgGiUURexsj/TRgCYdr6LxTC5IZjIbqmfy3whzNzqhPEMkUzvAjvmDa tQIDwcjTmwoHjVL+Ba0yjmqUmqiymeyCsekYrTR/3+oNQ1mISUDihfHbT2uAbxthwWYg fkEsLl2rnXjd8KiLJnX+ks9U2JUaNi+Q4UiKzfCgUVp+DxBRO5jTelMl7BBAQj7a1yZ4 iL+dAaSLHj34hzZw++QqwDVYPep5WFaA+MFdYtLA5VLQ22CsNpcgHlVJVbpqFNZE9wdO NvaA==
I was testing a refclock_sock provider and when the rate of messages
is really high (over 50k/s), I manage to crash chronyd.
Yes, this is not the standard use case, usually I publish 1/s, but
anyway chrony ideally should resist to this abuse.
2016-10-05T07:58:01Z refclock.c:707:(filter_add_sample) filter sample
52 t=1475654280.876999978 offset=0.122999928 dispersion=0.000000001
2016-10-05T07:58:01Z refclock.c:707:(filter_add_sample) filter sample
53 t=1475654280.876999978 offset=0.122999928 dispersion=0.000000001
2016-10-05T07:58:01Z refclock.c:707:(filter_add_sample) filter sample
54 t=1475654280.876999978 offset=0.122999928 dispersion=0.000000001
2016-10-05T07:58:01Z refclock.c:707:(filter_add_sample) filter sample
55 t=1475654280.876999978 offset=0.122999928 dispersion=0.000000001
2016-10-05T07:58:01Z sources.c:360:(SRC_AccumulateSample) ip=[SOCK]
t=1475654280.876999978 ofs=-0.123000 del=0.000000 disp=-nan str=0
chronyd: sourcestats.c:388: find_best_sample_index: Assertion
`best_index >= 0' failed.
Aborted (core dumped)
This is probably due to some uint8/int16 overflow?
I have a simple c++ sock (and shm) provider that I can provide if you
need it to debug or to add it to the regression tests.
Thanks,
Nuno
--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.