diff options
author | Dmitry Chagin <dchagin@FreeBSD.org> | 2015-12-27 15:37:07 +0000 |
---|---|---|
committer | Dmitry Chagin <dchagin@FreeBSD.org> | 2015-12-27 15:37:07 +0000 |
commit | 3e18d701dea5599d1d4a2c4c9c481c52853cf644 (patch) | |
tree | e459c298e24469daff55052ffe342241653d4c3b /sys/opencrypto/xform.h | |
parent | ff64a90ed9b2143a522762c45cd29283c1497db6 (diff) | |
download | src-3e18d701dea5599d1d4a2c4c9c481c52853cf644.tar.gz src-3e18d701dea5599d1d4a2c4c9c481c52853cf644.zip |
Verify that tv_sec value specified in settimeofday() and clock_settime()
(CLOCK_REALTIME case) system calls is non negative.
This commit hides a kernel panic in atrtc_settime() as the clock_ts_to_ct()
does not properly convert negative tv_sec.
ps. in my opinion clock_ts_to_ct() should be rewritten to properly handle
negative tv_sec values.
Differential Revision: https://reviews.freebsd.org/D4714
Reviewed by: kib
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=292777
Diffstat (limited to 'sys/opencrypto/xform.h')
0 files changed, 0 insertions, 0 deletions