freebsd-dev/sys
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
..
amd64 Apply r210555 to 64 bit linux support: 2017-01-24 16:13:59 +00:00
arm Handle imx6 erratum ERR004346... to reboot, clear the SRS bit twice within 2017-01-24 02:09:30 +00:00
arm64 Remove a static function declaration for a function not implemented. 2017-01-23 16:40:20 +00:00
boot [am335x] Use upstream tda19988 framer node from upstream DTS 2017-01-23 19:20:55 +00:00
bsm
cam Make CTL ramdisk backend a real RAM disk. 2017-01-24 12:13:41 +00:00
cddl Remove the DTRACEHIOC_ADD ioctl. 2017-01-23 02:21:06 +00:00
compat Catch up with changes to structure member names. 2017-01-17 22:05:52 +00:00
conf Add support for the Realtek RTL8192EU chipset. 2017-01-24 02:35:38 +00:00
contrib Add support for the Realtek RTL8192EU chipset. 2017-01-24 02:35:38 +00:00
crypto libmd: add noexec stack annotation in skein_block_asm.s 2017-01-07 19:26:25 +00:00
ddb Revert r311952. 2017-01-14 22:06:25 +00:00
dev iflib: 2017-01-24 16:05:42 +00:00
fs Remove mistakenly merged field. 2017-01-19 20:03:26 +00:00
gdb
geom Report disk addition errors on add or create subcommand. 2017-01-20 13:49:04 +00:00
gnu Add Ingenic X1000 DTS files (unofficial). 2016-11-19 15:03:49 +00:00
i386 Use SFENCE for ordering CLFLUSHOPT. 2017-01-20 19:08:44 +00:00
isa
kern Use time_t for intermediate values to avoid overflow in clock_ts_to_ct 2017-01-24 18:05:29 +00:00
kgssapi
libkern Use time_t for intermediate values to avoid overflow in clock_ts_to_ct 2017-01-24 18:05:29 +00:00
mips Enable TMPFS on MALTA so we can use it on minimalist disk images without 2017-01-21 09:08:27 +00:00
modules Add support for the Realtek RTL8192EU chipset. 2017-01-24 02:35:38 +00:00
net iflib: 2017-01-24 16:05:42 +00:00
net80211 net80211: fix flags setup for HT40 5GHz channels. 2017-01-22 23:45:59 +00:00
netgraph mppc - Finish pluging NETGRAPH_MPPC_COMPRESSION. 2017-01-20 00:02:11 +00:00
netinet Implement kernel support for hardware rate limited sockets. 2017-01-18 13:31:17 +00:00
netinet6 Implement kernel support for hardware rate limited sockets. 2017-01-18 13:31:17 +00:00
netipsec Add direction argument to ipsec_setspidx_inpcb() function. 2017-01-08 12:40:07 +00:00
netnatm
netpfil Initialize IPFW static rules rmlock with RM_RECURSE flag. 2017-01-17 10:50:28 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto
pc98 Add a COMPAT_FREEBSD11 kernel option. 2016-12-09 18:54:12 +00:00
powerpc Avoid using non-zero argument for __builtin_frame_address(). 2017-01-23 04:03:12 +00:00
riscv Add RISC-V support for truss(1) 2017-01-24 09:41:44 +00:00
rpc
security Audit 'fd' and 'cmd' arguments to fcntl(2), and when generating BSM, 2016-11-22 00:41:24 +00:00
sparc64 Trim a few comments on platforms that did not implement mmap of /dev/kmem. 2017-01-13 21:52:53 +00:00
sys Use time_t for intermediate values to avoid overflow in clock_ts_to_ct 2017-01-24 18:05:29 +00:00
teken
tests
tools Replace using of objdump with elfdump 2017-01-10 18:46:40 +00:00
ufs ffs_vnops: Simplify extattr access 2017-01-19 16:46:05 +00:00
vm Avoid unnecessary page lookups in vm_object_madvise(). 2017-01-15 03:50:08 +00:00
x86 "Buses" is the preferred plural of "bus" 2017-01-15 17:54:01 +00:00
xdr
xen "Buses" is the preferred plural of "bus" 2017-01-15 17:54:01 +00:00
Makefile