Home | History | Annotate | Download | only in kern
History log of /src/sys/kern/kern_ntptime.c
RevisionDateAuthorComments
 1.64  26-Oct-2022  riastradh sys: Put externs for time_adjtime and time_adjusted in .h files.

time_adjtime: sys/timex.h (defined in ntp code)
time_adjusted: sys/timevar.h (defined in non-ntp code)

(Not really sure this is a valuable distinction to maintain; there's
non-ntp code that uses time_adjtime too.)
 1.63  13-Mar-2022  riastradh ntp(9): Avoid left shift of negative.

Kinda silly that this is UB at all...

Reported-by: syzbot+baf29c7f0756293b8257@syzkaller.appspotmail.com
 1.62  13-Mar-2022  riastradh ntp(9): Clamp ntv->offset to avoid arithmetic overflow on adjtime.

Reported-by: syzbot+b8406db60db88650652e@syzkaller.appspotmail.com
 1.61  05-Feb-2022  riastradh kernel: Avoid arithmetic overflow in ntp_adjtime.

Reported-by: syzbot+f4343a1c91ddfe8bbe97@syzkaller.appspotmail.com
 1.60  29-Oct-2018  christos Zero out the ntptimeval structure to prevent a 4 byte kernel stack disclosure.
Reported by Thomas Barabosch.
 1.59  01-Jul-2018  riastradh Revert "Sprinkle cold conditionals to make tc_ticktock before inittimecounter."

Not needed if we're no longer doing tc_ticktock in printf.
 1.58  30-Jun-2018  riastradh Sprinkle cold conditionals to make tc_ticktock before inittimecounter.

Enables Xen to boot again.

XXX Maybe we should have a tc_ticktock_cold instead or something so we
don't have to reach this far into the call graph.
 1.57  23-Nov-2015  joerg branches: 1.57.10; 1.57.16; 1.57.18;
Cast argument to uint64_t first before shifting to avoid UB for
left-shifting negative values.
 1.56  24-Jul-2015  maxv Unused inits (harmless).

Found by Brainy.
 1.55  25-Feb-2014  pooka branches: 1.55.4; 1.55.6; 1.55.8; 1.55.12;
Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.
 1.54  13-Apr-2010  pooka branches: 1.54.8; 1.54.18; 1.54.22;
_KERNEL_OPT
 1.53  02-Apr-2010  tsutsui Use time_t (not long) to save time_second value.
 1.52  11-Jan-2009  christos branches: 1.52.4; 1.52.6;
remove !NTP stub.
 1.51  11-Jan-2009  christos merge christos-time_t
 1.50  19-Nov-2008  ad Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime
 1.49  28-Apr-2008  martin branches: 1.49.2; 1.49.6; 1.49.8;
Remove clause 3 and 4 from TNF licenses
 1.48  21-Apr-2008  ad branches: 1.48.2;
Make ntp, pmc, reboot, sysarch, time syscalls MPSAFE.
 1.47  27-Feb-2008  matt branches: 1.47.2; 1.47.4;
Convert stragglers to ansi definitions from old-style definitons.
Remember that func() is not ansi, func(void) is.
 1.46  20-Jan-2008  joerg branches: 1.46.2; 1.46.6;
Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.
 1.45  20-Dec-2007  dsl Convert all the system call entry points from:
int foo(struct lwp *l, void *v, register_t *retval)
to:
int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.
 1.44  19-Oct-2007  ad branches: 1.44.2; 1.44.4; 1.44.8;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.43  04-Mar-2007  christos branches: 1.43.2; 1.43.14; 1.43.16; 1.43.20;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.42  09-Feb-2007  ad branches: 1.42.2;
Merge newlock2 to head.
 1.41  01-Nov-2006  yamt remove some __unused from function parameters.
 1.40  17-Oct-2006  dogcow now that we have -Wno-unused-parameter, back out all the tremendously ugly
code to gratuitously access said parameters.
 1.39  13-Oct-2006  dogcow More -Wunused fallout. sprinkle __unused when possible; otherwise, use the
do { if (&x) {} } while (/* CONSTCOND */ 0);
construct as suggested by uwe in <20061012224845.GA9449@snark.ptc.spbu.ru>.
 1.38  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.37  09-Sep-2006  elad branches: 1.37.2;
Authorize ntp_adjtime() on the correct scope.
 1.36  08-Sep-2006  elad First take at security model abstraction.

- Add a few scopes to the kernel: system, network, and machdep.

- Add a few more actions/sub-actions (requests), and start using them as
opposed to the KAUTH_GENERIC_ISSUSER place-holders.

- Introduce a basic set of listeners that implement our "traditional"
security model, called "bsd44". This is the default (and only) model we
have at the moment.

- Update all relevant documentation.

- Add some code and docs to help folks who want to actually use this stuff:

* There's a sample overlay model, sitting on-top of "bsd44", for
fast experimenting with tweaking just a subset of an existing model.

This is pretty cool because it's *really* straightforward to do stuff
you had to use ugly hacks for until now...

* And of course, documentation describing how to do the above for quick
reference, including code samples.

All of these changes were tested for regressions using a Python-based
testsuite that will be (I hope) available soon via pkgsrc. Information
about the tests, and how to write new ones, can be found on:

http://kauth.linbsd.org/kauthwiki

NOTE FOR DEVELOPERS: *PLEASE* don't add any code that does any of the
following:

- Uses a KAUTH_GENERIC_ISSUSER kauth(9) request,
- Checks 'securelevel' directly,
- Checks a uid/gid directly.

(or if you feel you have to, contact me first)

This is still work in progress; It's far from being done, but now it'll
be a lot easier.

Relevant mailing list threads:

http://mail-index.netbsd.org/tech-security/2006/01/25/0011.html
http://mail-index.netbsd.org/tech-security/2006/03/24/0001.html
http://mail-index.netbsd.org/tech-security/2006/04/18/0000.html
http://mail-index.netbsd.org/tech-security/2006/05/15/0000.html
http://mail-index.netbsd.org/tech-security/2006/08/01/0000.html
http://mail-index.netbsd.org/tech-security/2006/08/25/0000.html

Many thanks to YAMAMOTO Takashi, Matt Thomas, and Christos Zoulas for help
stablizing kauth(9).

Full credit for the regression tests, making sure these changes didn't break
anything, goes to Matt Fleming and Jaime Fournier.

Happy birthday Randi! :)
 1.35  23-Jul-2006  ad branches: 1.35.4;
Use the LWP cached credentials where sane.
 1.34  01-Jul-2006  kardel L_CLR(time_adj) each round so adjtime() corrections don't
accumulate over time resulting in a constantly speeding/
slowing clock. found with wiz@ in a timecounter non NTP
kernel configuration.
 1.33  07-Jun-2006  kardel branches: 1.33.2;
merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
time.tv_sec -> time_second
- struct timeval mono_time is gone
mono_time.tv_sec -> time_uptime
- access to time via
{get,}{micro,nano,bin}time()
get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
 1.32  29-May-2006  drochner export ntp_gettime() and ntp_timestatus(), for use by compat code
 1.31  29-May-2006  drochner Extend "struct ntptimeval" for the needs of "timecounters".
Allocate a new syscall for ntp_gettime() and set up COMPAT_30 for
the old one.
 1.30  14-May-2006  elad branches: 1.30.2;
integrate kauth.
 1.29  11-Dec-2005  christos branches: 1.29.4; 1.29.6; 1.29.8; 1.29.10; 1.29.12;
merge ktrace-lwp.
 1.28  26-Feb-2005  perry branches: 1.28.4;
nuke trailing whitespace
 1.27  08-Apr-2004  atatat branches: 1.27.4; 1.27.6;
Lots of sysctl descriptions (if someone wants to help out here, that
would be good) mostly copied from sysctl(3). This takes care of the
top-level, most of kern.* and hw.* (modulo the ath and bge stuff), and
all of proc.*.

If you don't want the added rodata in your kernel, use "options
SYSCTL_NO_DESCR" in your kernel config.
 1.26  24-Mar-2004  atatat branches: 1.26.2;
Tango on sysctl_createv() and flags. The flags have all been renamed,
and sysctl_createv() now uses more arguments.
 1.25  04-Dec-2003  atatat Dynamic sysctl.

Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(),
vfs_sysctl(), etc, routines, along with sysctl_int() et al. Now all
nodes are registered with the tree, and nodes can be added (or
removed) easily, and I/O to and from the tree is handled generically.

Since the nodes are registered with the tree, the mapping from name to
number (and back again) can now be discovered, instead of having to be
hard coded. Adding new nodes to the tree is likewise much simpler --
the new infrastructure handles almost all the work for simple types,
and just about anything else can be done with a small helper function.

All existing nodes are where they were before (numerically speaking),
so all existing consumers of sysctl information should notice no
difference.

PS - I'm sorry, but there's a distinct lack of documentation at the
moment. I'm working on sysctl(3/8/9) right now, and I promise to
watch out for buses.
 1.24  04-Dec-2003  drochner fix typo in comment
 1.23  16-Apr-2003  dsl branches: 1.23.2;
Remember if ntp has adjusted clock rate, hardware RTC may be wrong.
 1.22  18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.21  03-May-2002  eeh Back out previous.
 1.20  03-May-2002  eeh Move the copyout out of ntp_adjtime1 and into the syscall wrapper.
 1.19  17-Mar-2002  simonb White space nits.
 1.18  17-Mar-2002  simonb We don't need to include <uvm/uvm_extern.h> before <sys/sysctl.h> anymore.
 1.17  09-Dec-2001  manu Changed clocktl interface to use syscallargs structures
 1.16  12-Nov-2001  lukem add RCSIDs
 1.15  16-Sep-2001  jmc branches: 1.15.2;
Fix issues areound compilation errors (ntv is a pointer in adjtime1 and needs
-> rather than . access and adjtime1 needs the syscall args passed in)
 1.14  16-Sep-2001  manu Split root-only time-related system calls so that we have an upper part, that
checks root privs, and a lower part that does the actual job. The lower part
will be called by the upcoming clockctl driver. Approved by Christos
Also fixed a few cosmetic things
 1.13  07-Aug-2000  bjh21 branches: 1.13.2; 1.13.4; 1.13.6;
Second phase of changes to remove ntp_adjtime(2) from the kernel entirely if
NTP is not defined.

Also removes sysctl_ntptime, since that's unreferenced without NTP.

ntp_gettime(2) is left alone, since it doesn't raise SIGSYS, which sys_nosys()
does.
 1.12  27-Jun-2000  mrg remove include of <vm/vm.h>
 1.11  02-Jun-2000  cgd fix type of sysctl_ntptime 'where' arg in defined(NTP) case
 1.10  02-Jun-2000  simonb Add new sysctl node "KERN_SYSVIPC_INFO" with "KERN_SYSVIPC_MSG_INFO",
"KERN_SYSVIPC_SEM_INFO" and "KERN_SYSVIPC_SHM_INFO" to return the
info and data structures for the relevent SysV IPC types. The return
structures use fixed-size types and should be compat32 safe. All
user-visible changes are protected with
#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)

Make all variable declarations extern in msg.h, sem.h and shm.h and
add relevent variable declarations to sysv_*.c and remove unneeded
header files from those .c files.

Make compat14 SysV IPC conversion functions and sysctl_file() static.

Change the data pointer to "void *" in sysctl_clockrate(),
sysctl_ntptime(), sysctl_file() and sysctl_doeproc().
 1.9  30-Mar-2000  augustss branches: 1.9.2;
Get rid of register declarations.
 1.8  28-Mar-2000  simonb Delete duplicate definition of kernel time variable (in <sys/kernel.h>).
 1.7  31-Jul-1998  perry branches: 1.7.12;
fix sizeofs so they comply with the KNF style guide. yes, it is pedantic.
 1.6  22-Apr-1998  jonathan branches: 1.6.2;
defopt NTP and PPS_SYNC, in preparation for adding PPS support.
 1.5  22-Dec-1996  cgd ntp_gettime()'s argument is a struct ntptimeval *, not a struct timex *
 1.4  06-Dec-1996  thorpej Back out this piece of revision 1.3:

>- Optional systems calls are "UNIMPL" if the support is not being
> compiled into the kernel.

It had implications that didn't occurr to me at the time. *sigh*
 1.3  14-Nov-1996  thorpej Make ntp_gettime() and ntp_adjtime() like other system calls:
- The functions that implement them and the argument names are
prepended with "sys_".
- Optional systems calls are "UNIMPL" if the support is not being
compiled into the kernel.
 1.2  07-Mar-1996  christos - Make things compile cleanly after the NTP additions.
- Remove unused variables in exec_ecoff.c
 1.1  27-Feb-1996  jonathan Add NTP kernel precision timekeeping from Dave Mill's xntp distribution
and the "kernel.tar.Z" distribution on louie.udel.edu, which is older than
xntp 3.4y or 3.5a, but contains newer kernel source fragments.

This commit adds support for a new kernel configuration option, NTP.
If NTP is selected, then the system clock should be run at "HZ", which
must be defined at compile time to be one value from:
60, 64, 100, 128, 256, 512, 1024.

Powers of 2 are ideal; 60 and 100 are supported but are marginally less
accurate.

If NTP is not configured, there should be no change in behavior relative
to pre-NTP kernels.

These changes have been tested extensively with xntpd 3.4y on a decstation;
almost identical kernel mods work on an i386. No pulse-per-second (PPS)
line discipline support is included, due to unavailability of hardware
to test it.

With this in-kernel PLL support for NetBSD, both xntp 3.4y and xntp
3.5a user-level code need minor changes. xntp's prototype for
syscall() is correct for FreeBSD, but not for NetBSD.
 1.6.2.1  08-Aug-1998  eeh Revert cdevsw mmap routines to return int.
 1.7.12.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
 1.9.2.1  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.13.6.1  01-Oct-2001  fvdl Catch up with -current.
 1.13.4.2  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.13.4.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.13.2.8  12-Jul-2002  nathanw No longer need to pull in lwp.h; proc.h pulls it in for us.
 1.13.2.7  20-Jun-2002  nathanw Catch up to -current.
 1.13.2.6  29-May-2002  nathanw #include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t
now that <sys/param.h> doesn't include <sys/sa.h>.

(Behold the Power of Ed)
 1.13.2.5  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.13.2.4  08-Jan-2002  nathanw Catch up to -current.
 1.13.2.3  14-Nov-2001  nathanw Catch up to -current.
 1.13.2.2  21-Sep-2001  nathanw Catch up to -current.
 1.13.2.1  05-Mar-2001  nathanw Initial commit of scheduler activations and lightweight process support.
 1.15.2.1  12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.23.2.4  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.23.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.23.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.23.2.1  03-Aug-2004  skrll Sync with HEAD
 1.26.2.1  21-Apr-2004  jmc Pullup rev 1.27 (requested by atatat in ticket #93)

Lots of sysctl descriptions mostly copied from sysctl(3).
 1.27.6.1  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.27.4.1  29-Apr-2005  kent sync with -current
 1.28.4.7  17-Mar-2008  yamt sync with head.
 1.28.4.6  21-Jan-2008  yamt sync with head
 1.28.4.5  27-Oct-2007  yamt sync with head.
 1.28.4.4  03-Sep-2007  yamt sync with head.
 1.28.4.3  26-Feb-2007  yamt sync with head.
 1.28.4.2  30-Dec-2006  yamt sync with head.
 1.28.4.1  21-Jun-2006  yamt sync with head.
 1.29.12.1  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.29.10.3  06-May-2006  christos - Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
that need it.

Approved by core.
 1.29.10.2  10-Mar-2006  elad generic_authorize() -> kauth_authorize_generic().
 1.29.10.1  08-Mar-2006  elad Adapt to kernel authorization KPI.
 1.29.8.4  14-Sep-2006  yamt sync with head.
 1.29.8.3  11-Aug-2006  yamt sync with head
 1.29.8.2  26-Jun-2006  yamt sync with head.
 1.29.8.1  24-May-2006  yamt sync with head.
 1.29.6.8  02-Jun-2006  drochner fix the ntp_timestatus return value in the !TIMECOUNTERS case, makes
it compile on alpha
 1.29.6.7  02-Jun-2006  drochner make ntp_adjtime() work after kauth merge
 1.29.6.6  02-Jun-2006  kardel - track kauth change
- unify helper and compatibility functions
 1.29.6.5  01-Jun-2006  kardel Sync with head.
 1.29.6.4  30-Apr-2006  kardel - simplify interfacing with the rest by
separation of input/output (copy{in,out})
and functional implementation
 1.29.6.3  15-Mar-2006  kardel fix #undef NTP case
 1.29.6.2  28-Feb-2006  kardel compile fixes
keep enough mechanics to support adjtime() even when NTP
is not defined
 1.29.6.1  04-Feb-2006  simonb If using timecounters, use the 2001-04-02 version of the nanokernel code
from Dave Mills. From FreeBSD.
 1.29.4.1  09-Sep-2006  rpaulo sync with head
 1.30.2.1  19-Jun-2006  chap Sync with head.
 1.33.2.1  13-Jul-2006  gdamore Merge from HEAD.
 1.35.4.2  30-Jan-2007  ad Remove support for SA. Ok core@.
 1.35.4.1  18-Nov-2006  ad Sync with head.
 1.37.2.2  10-Dec-2006  yamt sync with head.
 1.37.2.1  22-Oct-2006  yamt sync with head
 1.42.2.1  12-Mar-2007  rmind Sync with HEAD.
 1.43.20.1  25-Oct-2007  bouyer Sync with HEAD.
 1.43.16.3  23-Mar-2008  matt sync with HEAD
 1.43.16.2  09-Jan-2008  matt sync with HEAD
 1.43.16.1  06-Nov-2007  matt sync with HEAD
 1.43.14.1  26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.43.2.1  23-Oct-2007  ad Sync with head.
 1.44.8.2  23-Jan-2008  bouyer Sync with HEAD.
 1.44.8.1  02-Jan-2008  bouyer Sync with HEAD
 1.44.4.1  26-Dec-2007  ad Sync with head.
 1.44.2.1  18-Feb-2008  mjf Sync with HEAD.
 1.46.6.3  17-Jan-2009  mjf Sync with HEAD.
 1.46.6.2  02-Jun-2008  mjf Sync with HEAD.
 1.46.6.1  03-Apr-2008  mjf Sync with HEAD.
 1.46.2.1  24-Mar-2008  keiichi sync with head.
 1.47.4.1  18-May-2008  yamt sync with head.
 1.47.2.3  20-Nov-2008  christos merge with head.
 1.47.2.2  01-Nov-2008  christos Sync with head.
 1.47.2.1  29-Mar-2008  christos Welcome to the time_t=long long dev_t=uint64_t branch.
 1.48.2.3  11-Aug-2010  yamt sync with head.
 1.48.2.2  04-May-2009  yamt sync with head.
 1.48.2.1  16-May-2008  yamt sync with head.
 1.49.8.1  19-Jan-2009  skrll Sync with HEAD.
 1.49.6.1  13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.49.2.2  14-May-2008  wrstuden Per discussion with ad, remove most of the #include <sys/sa.h> lines
as they were including sa.h just for the type(s) needed for syscallargs.h.

Instead, create a new file, sys/satypes.h, which contains just the
types needed for syscallargs.h. Yes, there's only one now, but that
may change and it's probably more likely to change if it'd be difficult
to handle. :-)

Per discussion with matt at n dot o, add an include of satypes.h to
sigtypes.h. Upcall handlers are kinda signal handlers, and signalling
is the header file that's already included for syscallargs.h that
closest matches SA.

This shaves about 3000 lines off of the diff of the branch relative
to the base. That also represents about 18% of the total before this
checkin.

I think this reduction is very good thing.
 1.49.2.1  10-May-2008  wrstuden Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

Also, kern_sa.c has received partial cleanup. There's still more
to do, though.
 1.52.6.1  30-May-2010  rmind sync with head
 1.52.4.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.54.22.1  18-May-2014  rmind sync with head
 1.54.18.2  03-Dec-2017  jdolecek update from HEAD
 1.54.18.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.54.8.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.55.12.1  24-Jan-2019  martin Pull up following revision(s) (requested by maxv in ticket #1675):

sys/kern/kern_ntptime.c: revision 1.60

Zero out the ntptimeval structure to prevent a 4 byte kernel stack disclosure.
Reported by Thomas Barabosch.
 1.55.8.1  24-Jan-2019  martin Pull up following revision(s) (requested by maxv in ticket #1675):

sys/kern/kern_ntptime.c: revision 1.60

Zero out the ntptimeval structure to prevent a 4 byte kernel stack disclosure.
Reported by Thomas Barabosch.
 1.55.6.2  27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.55.6.1  22-Sep-2015  skrll Sync with HEAD
 1.55.4.1  24-Jan-2019  martin Pull up following revision(s) (requested by maxv in ticket #1675):

sys/kern/kern_ntptime.c: revision 1.60

Zero out the ntptimeval structure to prevent a 4 byte kernel stack disclosure.
Reported by Thomas Barabosch.
 1.57.18.1  10-Jun-2019  christos Sync with HEAD
 1.57.16.2  26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.57.16.1  28-Jul-2018  pgoyette Sync with HEAD
 1.57.10.1  24-Jan-2019  martin Pull up following revision(s) (requested by maxv in ticket #1168):

sys/kern/kern_ntptime.c: revision 1.60

Zero out the ntptimeval structure to prevent a 4 byte kernel stack disclosure.

Reported by Thomas Barabosch.

RSS XML Feed