freebsd-skq/sys/libkern
Conrad Meyer 90a79ac576 Use time_t for intermediate values to avoid overflow in clock_ts_to_ct
Add additionally safety and overflow checks to clock_ts_to_ct and the
BCD routines while we're here.

Perform a safety check in sys_clock_settime() first to avoid easy local
root panic, without having to propagate an error value back through
dozens of APIs currently lacking error returns.

PR:		211960, 214300
Submitted by:	Justin McOmie <justin.mcomie at gmail.com>, kib@
Reported by:	Tim Newsham <tim.newsham at nccgroup.trust>
Reviewed by:	kib@
Sponsored by:	Dell EMC Isilon, FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D9279
2017-01-24 18:05:29 +00:00
..
arm Add the __aeabi_memclr8 symbol, clang 3.7 uses this. 2015-09-21 18:35:32 +00:00
arc4random.c Update r309143 to prevent false sharing. 2016-11-25 17:20:23 +00:00
ashldi3.c
ashrdi3.c
asprintf.c
bcd.c Use time_t for intermediate values to avoid overflow in clock_ts_to_ct 2017-01-24 18:05:29 +00:00
bcmp.c libkern: Remove obsolete 'register' keyword 2017-01-12 17:02:29 +00:00
bsearch.c libkern: Remove obsolete 'register' keyword 2017-01-12 17:02:29 +00:00
cmpdi2.c
crc32.c sys: Make use of our rounddown() macro when sys/param.h is available. 2016-04-30 14:41:18 +00:00
divdi3.c
explicit_bzero.c
ffs.c libkern: ffs, fls: s/4/3/ the 3rd BSD clause 2015-10-22 21:04:47 +00:00
ffsl.c libkern: ffs, fls: s/4/3/ the 3rd BSD clause 2015-10-22 21:04:47 +00:00
ffsll.c libkern: ffs, fls: s/4/3/ the 3rd BSD clause 2015-10-22 21:04:47 +00:00
fls.c libkern: ffs, fls: s/4/3/ the 3rd BSD clause 2015-10-22 21:04:47 +00:00
flsl.c libkern: ffs, fls: s/4/3/ the 3rd BSD clause 2015-10-22 21:04:47 +00:00
flsll.c libkern: ffs, fls: s/4/3/ the 3rd BSD clause 2015-10-22 21:04:47 +00:00
fnmatch.c
iconv_converter_if.m
iconv_ucs.c libkern: Remove obsolete 'register' keyword 2017-01-12 17:02:29 +00:00
iconv_xlat16.c libkern: Remove obsolete 'register' keyword 2017-01-12 17:02:29 +00:00
iconv_xlat.c
iconv.c
inet_aton.c
inet_ntoa.c
inet_ntop.c
inet_pton.c
jenkins_hash.c
lshrdi3.c
mcount.c
memcchr.c
memchr.c
memcmp.c
memmem.c libkern: Remove obsolete 'register' keyword 2017-01-12 17:02:29 +00:00
memmove.c
memset.c
moddi3.c
murmur3_32.c
qdivrem.c libkern: Remove obsolete 'register' keyword 2017-01-12 17:02:29 +00:00
qsort_r.c
qsort.c libkern: Remove obsolete 'register' keyword 2017-01-12 17:02:29 +00:00
quad.h
random.c libkern: Remove obsolete 'register' keyword 2017-01-12 17:02:29 +00:00
scanc.c libkern: Remove obsolete 'register' keyword 2017-01-12 17:02:29 +00:00
strcasecmp.c
strcat.c
strchr.c
strcmp.c libkern: Remove obsolete 'register' keyword 2017-01-12 17:02:29 +00:00
strcpy.c
strcspn.c
strdup.c
strlcat.c
strlcpy.c
strlen.c
strncat.c Merge ACPICA 20160422. 2016-04-27 19:09:21 +00:00
strncmp.c
strncpy.c libkern: Remove obsolete 'register' keyword 2017-01-12 17:02:29 +00:00
strndup.c
strnlen.c
strrchr.c
strsep.c
strspn.c
strstr.c
strtol.c kern: for pointers replace 0 with NULL. 2016-04-15 16:10:11 +00:00
strtoq.c kern: for pointers replace 0 with NULL. 2016-04-15 16:10:11 +00:00
strtoul.c kern: for pointers replace 0 with NULL. 2016-04-15 16:10:11 +00:00
strtouq.c kern: for pointers replace 0 with NULL. 2016-04-15 16:10:11 +00:00
strvalid.c
timingsafe_bcmp.c
ucmpdi2.c
udivdi3.c
umoddi3.c
zlib.c