diff options
author | 2018-06-15 01:09:49 +0000 | |
---|---|---|
committer | 2018-06-15 01:09:49 +0000 | |
commit | 21228684728196a32b48f93519924ab0b1b1d105 (patch) | |
tree | 586ad5c9fdcd64d54904e87e910a85d12015282d /sys/kern/tty.c | |
parent | silence a compiler warning (diff) | |
download | wireguard-openbsd-21228684728196a32b48f93519924ab0b1b1d105.tar.xz wireguard-openbsd-21228684728196a32b48f93519924ab0b1b1d105.zip |
kevent: don't reject timeouts greater than 100 million seconds
We already clamp timeouts to 24 hours anyway, so there's no reason
to set EINVAL because the caller's timeout passed an arbitrary
threshold.
In particular, this keeps www/chromium v67 from busy-waiting and
consuming a ton of cpu as described in the bug report here:
https://bugs.chromium.org/p/chromium/issues/detail?id=850450
Prompted by deraadt@, bug report found by pirofti@,
testing by brynet@ and deraadt@.
ok kettenis@
Diffstat (limited to 'sys/kern/tty.c')
0 files changed, 0 insertions, 0 deletions