History log of /src/sys/compat/netbsd32/netbsd32_time.c |
Revision | | Date | Author | Comments |
1.58 |
| 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.57 |
| 20-Sep-2021 |
thorpej | Add timerfd system calls to COMPAT_NETBSD32.
|
1.56 |
| 07-Sep-2021 |
riastradh | sys/compat: Memset zero before copyout.
Just in case of uninitialized padding which would lead to kernel stack disclosure. If the compiler can prove the memset redundant then it can optimize it away; otherwise better safe than sorry.
|
1.55 |
| 18-Feb-2021 |
simonb | In the compat setitimer(2) calls, don't validate which timer is being used since dosetitimer() does this anyway. The compat functions hadn't been updated since ITIMER_MONOTONIC was introduced, so they reported that that ITIMER_MONOTONIC timer was invalid.
|
1.54 |
| 19-Jan-2021 |
simonb | KNF consistency: No parentheses are needed around the return value.
|
1.53 |
| 05-Oct-2019 |
kamil | branches: 1.53.8; Validate input before converting timeval::tv_usec in compat/netbsd32
|
1.52 |
| 26-Sep-2019 |
christos | make the ?: expression types match
|
1.51 |
| 27-Jan-2019 |
pgoyette | branches: 1.51.4; Merge the [pgoyette-compat] branch
|
1.50 |
| 30-Oct-2018 |
riastradh | Paranoia: zero COMPAT_30 ntptimeval and 32-bit ntptimeval too.
These structs don't have padding but safer to keep the code structured the same way between the various ntp_gettimes in case anyone makes more copypasta of it for future updates.
|
1.49 |
| 26-Feb-2017 |
njoly | branches: 1.49.6; 1.49.12; 1.49.14; Apply fix from natuve clock_nanosleep(2) to not copyout remaining time struct if TIMER_ABSTIME flag is set.
|
1.48 |
| 23-Sep-2016 |
skrll | branches: 1.48.2; Trailing whitespace
|
1.47 |
| 23-Sep-2016 |
skrll | Add netbsd32_clock_getcpuclockid2 and netbsd32_wait6 functions
|
1.46 |
| 31-Oct-2015 |
njoly | branches: 1.46.2; Adjust compat netbsd32 clock_nanosleep(2) to match recent native changes that return error number.
|
1.45 |
| 22-Jul-2015 |
maxv | Set 'error' properly.
|
1.44 |
| 17-Jul-2015 |
skrll | Unwrap lines.
|
1.43 |
| 12-Jul-2015 |
martin | Use the right type in sizeof() for copyin() in adjtime
|
1.42 |
| 02-Oct-2012 |
christos | branches: 1.42.12; 1.42.14; kernel portion of clock_nanosleep()
|
1.41 |
| 08-Apr-2010 |
njoly | branches: 1.41.8; 1.41.18; Add a new clock_gettime1() function that holds most of the clock_gettime syscall code (except for the copyout). Adjust all corresponding syscalls to make use of it.
|
1.40 |
| 03-Apr-2010 |
njoly | Move most clock_getres syscall code, except for coypout call, to a new clock_getres1() function which can be used by emulations. Adjust all clock_getres syscalls to now make of use it.
|
1.39 |
| 29-Mar-2010 |
njoly | Convert linux/linux32/netbsd32 clock_settime syscalls, to use the common clock_settime1() function.
|
1.38 |
| 29-Mar-2010 |
njoly | Make compat netbsd32 clock_getres copyout the netbsd32 timespec structure, not the native one.
|
1.37 |
| 28-Mar-2010 |
njoly | Cleanup compat netbsd32 nanosleep syscalls to use the common nanosleep1() call instead of their own stuff.
|
1.36 |
| 26-Feb-2009 |
christos | branches: 1.36.2; 1.36.4; fix kernel build with no options NTP
|
1.35 |
| 11-Jan-2009 |
christos | branches: 1.35.2; merge christos-time_t
|
1.34 |
| 15-Jul-2008 |
christos | branches: 1.34.2; 1.34.8; Use more timespecs internally. From Alexander Shishkin and me. Welcome to 4.99.70, 30 more to go for 100.
|
1.33 |
| 29-May-2008 |
mrg | branches: 1.33.2; 1.33.4; remove clause #3 from my license where there are no other copyright holders involved.
|
1.32 |
| 20-Jan-2008 |
joerg | branches: 1.32.6; 1.32.8; 1.32.10; 1.32.12; Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants, remove the conditionals and the code associated with the undef case.
|
1.31 |
| 21-Dec-2007 |
dsl | Fix prototypes used when NTP is not in use. Pointed out by Robert Swindells.
|
1.30 |
| 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.29 |
| 08-Dec-2007 |
dsl | branches: 1.29.4; ANSIfy most of the function definitions in sys/compat (but not ndis). All by the magic of sed ...
|
1.28 |
| 25-Nov-2007 |
elad | branches: 1.28.2; Refactor time modification checks and place them in the secmodel code.
okay christos@
|
1.27 |
| 18-Mar-2007 |
dsl | branches: 1.27.8; 1.27.10; 1.27.16; Change all the NETBSD32PTR64(SCARG(uap, xxx))) to SCARG_P32(uap, xxx).
|
1.26 |
| 16-Mar-2007 |
dsl | remove all the double (and triple) casts used to convert 32bit userspace pointers to and from 64bit kernel pointers. Instead use the defines NETBSD32PTR64(p32) to read a 32bit pointer and (the new) NETBSD32PTR32(p32,p64) to write a 32bit pointer throughout. The 32bit pointer is now a struct to enforce the above. amd64 (with linux emul) and sparc64 will both compile (when the arch stuff goes in soon), and amd64 still runs some i386 binaries.
|
1.25 |
| 04-Mar-2007 |
christos | branches: 1.25.2; 1.25.4; 1.25.6; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.24 |
| 14-Nov-2006 |
elad | branches: 1.24.4; Clean some KAUTH_GENERIC_ISSUSER usage in compat code.
|
1.23 |
| 23-Jul-2006 |
ad | branches: 1.23.4; 1.23.6; Use the LWP cached credentials where sane.
|
1.22 |
| 07-Jun-2006 |
kardel | 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.21 |
| 31-May-2006 |
drochner | support ntp_gettime again compile tested by Havard Eidnes
|
1.20 |
| 14-May-2006 |
elad | branches: 1.20.2; integrate kauth.
|
1.19 |
| 17-Feb-2006 |
he | branches: 1.19.2; 1.19.4; 1.19.6; Paste in the conditional declaration of the pps_* extern variables from kern_ntptime.c, so that this file can build under PPS_SYNC.
|
1.18 |
| 06-Dec-2005 |
christos | branches: 1.18.2; 1.18.4; 1.18.6; netbsd32_timevalp_t is not really a pointer.
|
1.17 |
| 05-Dec-2005 |
christos | remove conflict.
|
1.16 |
| 05-Dec-2005 |
christos | untagle a bit.
|
1.15 |
| 05-Dec-2005 |
kleink | Sync with kern_time.c rev. 1.98: - make settime take timespec. - pass struct proc down so that we can log a detailed message.
|
1.14 |
| 11-Nov-2005 |
simonb | Call nanotime() directly, instead of doing the microtime()/TIMEVAL_TO_TIMESPEC() dance.
|
1.13 |
| 23-Oct-2005 |
cube | Implement a few changes needed to properly resolve PR#30924, as discussed in the PR.
- introduce sys/timevar.h to hold kernel-specific stuff relevant to sys/time.h. Ideally, timevar.h would contain all (or almost) of the #ifdef _KERNEL part of time.h, but that's a pretty big and tedious change to make. For now, it will contain only the prototypes I introduced when working on COMPAT_NETBSD32.
- split copyinout_t into copyin_t and copyout_t, it makes prototypes more explicit about the meaning of a given argument. Suggested by yamt@.
- move copyinout_t definition in sys/time.h to systm.h as copyin_t and copyout_t
- make everything uses the new types and include the proper headers at the proper places.
|
1.12 |
| 19-Aug-2005 |
christos | branches: 1.12.2; Fix lossage I created with the 64 bit ino_t change.
|
1.11 |
| 23-Jul-2005 |
cube | Implement the timer_create(2) family of syscalls.
|
1.10 |
| 11-Jul-2005 |
cube | Split sys_getitimer and sys_setitimer to make it possible to share the relevant code with the COMPAT_NETBSD32 version, and make the latter use the new functions.
This fixes netbsd32_setitimer() which had drifted from the native syscall and did not work properly anymore.
|
1.9 |
| 31-May-2005 |
christos | branches: 1.9.2; - add const - avoid shadowed variables.
|
1.8 |
| 26-Feb-2005 |
perry | nuke trailing whitespace
|
1.7 |
| 14-Nov-2004 |
atatat | branches: 1.7.4; 1.7.6; Wrap TIMEVAL_TO_TIMESPEC and TIMESPEC_TO_TIMEVAL macros in
do { ... } while(/*CONSTCOND*/0)
so that they can be used unadorned in if/else blocks, etc. This means that you now *have* to put a ; at the end of the "call" to these macros.
|
1.6 |
| 21-Oct-2003 |
fvdl | Fix NULL vs. int comparison.
|
1.5 |
| 18-Jan-2003 |
thorpej | branches: 1.5.2; Merge the nathanw_sa branch.
|
1.4 |
| 23-Oct-2002 |
scw | In preparation for COMPAT_NETBSD32 on SH-5:
- The MD netbsd32_machdep.h header now defines the 32-bit pointer type instead of using u_int32_t everywhere, - The MD netbsd32_machdep.h header now defines a macro (at least on current implementations) which converts a 32-bit pointer to its 64-bit equivalent, - Change the MI code to utilise the above two items in all the right places, - Implement netbsd32___sigaction_sigtramp().
Tested on Sparc64 by Matt Green.
|
1.3 |
| 13-Nov-2001 |
lukem | add RCSIDs (including regeneration of files as appropriate)
|
1.2 |
| 30-May-2001 |
mrg | branches: 1.2.2; use _KERNEL_OPT.
|
1.1 |
| 08-Feb-2001 |
mrg | branches: 1.1.2; 1.1.4; split up netbsd32_netbsd.c into 9 new files, leaving only those syscalls that have no special interpretations besides simple syscall args conversion.
|
1.1.4.5 |
| 20-Nov-2002 |
petrov | p_timers changes.
|
1.1.4.4 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.1.4.3 |
| 23-Aug-2002 |
petrov | lwpification.
|
1.1.4.2 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.1.4.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.1.2.2 |
| 11-Feb-2001 |
bouyer | Sync with HEAD.
|
1.1.2.1 |
| 08-Feb-2001 |
bouyer | file netbsd32_time.c was added on branch thorpej_scsipi on 2001-02-11 19:14:22 +0000
|
1.2.2.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.5.2.7 |
| 11-Dec-2005 |
christos | Sync with head.
|
1.5.2.6 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.5.2.5 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.5.2.4 |
| 29-Nov-2004 |
skrll | Sync with HEAD.
|
1.5.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.5.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.5.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.7.6.1 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.7.4.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.9.2.5 |
| 21-Jan-2008 |
yamt | sync with head
|
1.9.2.4 |
| 07-Dec-2007 |
yamt | sync with head
|
1.9.2.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.9.2.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.9.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.12.2.1 |
| 26-Oct-2005 |
yamt | sync with head
|
1.18.6.5 |
| 03-Jun-2006 |
kardel | remove unused decls adjtime to ntp_adjtime1() interface
|
1.18.6.4 |
| 02-Jun-2006 |
drochner | remove a leftover CVS conflict marker
|
1.18.6.3 |
| 01-Jun-2006 |
kardel | Sync with head.
|
1.18.6.2 |
| 30-Apr-2006 |
kardel | - simplify emulation layer by avoiding code replication from the actual implementation
|
1.18.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.18.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.18.2.1 |
| 18-Feb-2006 |
yamt | sync with head.
|
1.19.6.1 |
| 24-May-2006 |
tron | Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
|
1.19.4.3 |
| 12-May-2006 |
elad | include sys/kauth.h where appropriate.
|
1.19.4.2 |
| 10-Mar-2006 |
elad | generic_authorize() -> kauth_authorize_generic().
|
1.19.4.1 |
| 08-Mar-2006 |
elad | Adapt to kernel authorization KPI.
|
1.19.2.3 |
| 11-Aug-2006 |
yamt | sync with head
|
1.19.2.2 |
| 26-Jun-2006 |
yamt | sync with head.
|
1.19.2.1 |
| 24-May-2006 |
yamt | sync with head.
|
1.20.2.1 |
| 19-Jun-2006 |
chap | Sync with head.
|
1.23.6.1 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.23.4.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.24.4.2 |
| 24-Mar-2007 |
yamt | sync with head.
|
1.24.4.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.25.6.2 |
| 29-Mar-2007 |
reinoud | Pullup to -current
|
1.25.6.1 |
| 18-Mar-2007 |
reinoud | First attempt to bring branch in sync with HEAD
|
1.25.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.25.2.1 |
| 10-Apr-2007 |
ad | Sync with head.
|
1.27.16.3 |
| 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.27.16.2 |
| 27-Dec-2007 |
mjf | Sync with HEAD.
|
1.27.16.1 |
| 08-Dec-2007 |
mjf | Sync with HEAD.
|
1.27.10.2 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.27.10.1 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.27.8.2 |
| 09-Dec-2007 |
jmcneill | Sync with HEAD.
|
1.27.8.1 |
| 27-Nov-2007 |
joerg | Sync with HEAD. amd64 Xen support needs testing.
|
1.28.2.1 |
| 26-Dec-2007 |
ad | Sync with head.
|
1.29.4.2 |
| 23-Jan-2008 |
bouyer | Sync with HEAD.
|
1.29.4.1 |
| 02-Jan-2008 |
bouyer | Sync with HEAD
|
1.32.12.2 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.32.12.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.32.10.2 |
| 11-Aug-2010 |
yamt | sync with head.
|
1.32.10.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.32.8.1 |
| 04-Jun-2008 |
yamt | sync with head
|
1.32.6.3 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.32.6.2 |
| 28-Sep-2008 |
mjf | Sync with HEAD.
|
1.32.6.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.33.4.1 |
| 19-Oct-2008 |
haad | Sync with HEAD.
|
1.33.2.1 |
| 18-Jul-2008 |
simonb | Sync with head.
|
1.34.8.3 |
| 04-Jan-2009 |
christos | fix module build.
|
1.34.8.2 |
| 04-Jan-2009 |
christos | add new syscalls.
|
1.34.8.1 |
| 15-Jul-2008 |
christos | file netbsd32_time.c was added on branch christos-time_t on 2009-01-04 01:56:02 +0000
|
1.34.2.2 |
| 03-Mar-2009 |
skrll | Sync with HEAD.
|
1.34.2.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.35.2.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.36.4.1 |
| 30-May-2010 |
rmind | sync with head
|
1.36.2.1 |
| 30-Apr-2010 |
uebayasi | Sync with HEAD.
|
1.41.18.2 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.41.18.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.41.8.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.42.14.4 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
1.42.14.3 |
| 05-Oct-2016 |
skrll | Sync with HEAD
|
1.42.14.2 |
| 27-Dec-2015 |
skrll | Sync with HEAD (as of 26th Dec)
|
1.42.14.1 |
| 22-Sep-2015 |
skrll | Sync with HEAD
|
1.42.12.1 |
| 17-Jul-2015 |
snj | Pull up following revision(s) (requested by martin in ticket #879): sys/compat/netbsd32/netbsd32_time.c: revision 1.43 Use the right type in sizeof() for copyin() in adjtime
|
1.46.2.2 |
| 20-Mar-2017 |
pgoyette | Sync with HEAD
|
1.46.2.1 |
| 04-Nov-2016 |
pgoyette | Sync with HEAD
|
1.48.2.1 |
| 21-Apr-2017 |
bouyer | Sync with HEAD
|
1.49.14.2 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.49.14.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.49.12.4 |
| 26-Nov-2018 |
pgoyette | Sync with HEAD, resolve a couple of conflicts
|
1.49.12.3 |
| 27-Sep-2018 |
pgoyette | typo: insert missing ')'
|
1.49.12.2 |
| 25-Sep-2018 |
pgoyette | Additional use of NTP function pointers, since the NTP code might not exist in the kernel. (NTP is not (yet) a module, so we don't need to use the MP-safe mechanism.)
|
1.49.12.1 |
| 11-Sep-2018 |
pgoyette | Move the NTP compat_30 and compat_50 routines into the version-specific modules.
|
1.49.6.2 |
| 21-Jun-2023 |
martin | Pull up following revision(s) (requested by riastradh in ticket #1839):
sys/compat/common/kern_time_30.c: revision 1.6 sys/compat/netbsd32/netbsd32_time.c: revision 1.50
Paranoia: zero COMPAT_30 ntptimeval and 32-bit ntptimeval too.
These structs don't have padding but safer to keep the code structured the same way between the various ntp_gettimes in case anyone makes more copypasta of it for future updates.
|
1.49.6.1 |
| 21-Jun-2023 |
martin | Pull up following revision(s) (requested by riastradh in ticket #1836):
sys/compat/linux/arch/i386/linux_machdep.c: revision 1.168 sys/compat/sunos/sunos_misc.c: revision 1.177 sys/compat/netbsd32/netbsd32_compat_50.c: revision 1.52 sys/compat/common/kern_resource_43.c: revision 1.23 sys/compat/netbsd32/netbsd32_conv.h: revision 1.46 sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.35 sys/compat/common/vfs_syscalls_12.c: revision 1.38 sys/compat/ultrix/ultrix_misc.c: revision 1.126 sys/compat/common/kern_sig_43.c: revision 1.37 sys/compat/linux/common/linux_mtio.c: revision 1.8 sys/compat/freebsd/freebsd_misc.c: revision 1.34 sys/compat/linux/common/linux_olduname.c: revision 1.67 sys/compat/linux/arch/mips/linux_machdep.c: revision 1.44 sys/compat/freebsd/freebsd_sched.c: revision 1.23 sys/compat/ossaudio/ossaudio.c: revision 1.84 sys/compat/sys/time_types.h: revision 1.6 sys/compat/linux/arch/powerpc/linux_machdep.c: revision 1.51 sys/compat/linux/common/linux_file.c: revision 1.119 sys/compat/linux/arch/arm/linux_machdep.c: revision 1.34 sys/compat/netbsd32/netbsd32_wait.c: revision 1.25 sys/compat/linux32/common/linux32_time.c: revision 1.38 sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.33 sys/compat/linux/arch/alpha/linux_machdep.c: revision 1.52 sys/compat/linux32/arch/amd64/linux32_machdep.c: revision 1.46 sys/compat/netbsd32/netbsd32_compat_12.c: revision 1.36 sys/compat/ultrix/ultrix_ioctl.c: revision 1.39 sys/compat/linux/common/linux_misc.c: revision 1.252 sys/compat/linux/common/linux_hdio.c: revision 1.19 sys/compat/sunos/sunos_ioctl.c: revision 1.71 sys/compat/linux/common/linux_sched.c: revision 1.79 sys/compat/common/kern_info_43.c: revision 1.40 sys/compat/linux32/common/linux32_exec_elf32.c: revision 1.20 sys/compat/linux/common/linux_socket.c: revision 1.153 sys/compat/linux/arch/amd64/linux_machdep.c: revision 1.60 sys/compat/common/vfs_syscalls_43.c: revision 1.68 sys/compat/linux/arch/powerpc/linux_exec_powerpc.c: revision 1.25 sys/compat/netbsd32/netbsd32_ptrace.c: revision 1.9 sys/compat/common/kern_time_50.c: revision 1.37 sys/compat/netbsd32/netbsd32_compat_20.c: revision 1.42 sys/compat/linux/common/linux_cdrom.c: revision 1.28 sys/compat/linux/arch/m68k/linux_machdep.c: revision 1.43 sys/compat/common/kern_info_09.c: revision 1.22 sys/compat/linux32/common/linux32_resource.c: revision 1.12 sys/compat/linux/common/linux_oldolduname.c: revision 1.67 sys/compat/netbsd32/netbsd32_nfssvc.c: revision 1.8 sys/compat/linux32/common/linux32_signal.c: revision 1.21 sys/compat/common/kern_sig_13.c: revision 1.22 sys/compat/sunos32/sunos32_ioctl.c: revision 1.36 sys/compat/netbsd32/netbsd32_compat_43.c: revision 1.62 sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.23 sys/compat/netbsd32/netbsd32_time.c: revision 1.56 sys/compat/linux/common/linux_signal.c: revision 1.84 sys/compat/netbsd32/netbsd32_signal.c: revision 1.52 sys/compat/sunos32/sunos32_misc.c: revision 1.85 sys/compat/linux/common/linux_time.c: revision 1.40 sys/compat/linux/common/linux_fdio.c: revision 1.14 sys/compat/common/vfs_syscalls_30.c: revision 1.43
sys/compat: Memset zero before copyout.
Just in case of uninitialized padding which would lead to kernel stack disclosure. If the compiler can prove the memset redundant then it can optimize it away; otherwise better safe than sorry.
|
1.51.4.1 |
| 03-Aug-2022 |
martin | Pull up following revision(s), all via patch (requested by riastradh in ticket #1487):
sys/compat/linux/arch/i386/linux_machdep.c: revision 1.168 sys/compat/sunos/sunos_misc.c: revision 1.177 sys/compat/netbsd32/netbsd32_compat_50.c: revision 1.52 sys/compat/common/kern_resource_43.c: revision 1.23 sys/compat/netbsd32/netbsd32_conv.h: revision 1.46 sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.35 sys/compat/common/vfs_syscalls_12.c: revision 1.38 sys/compat/ultrix/ultrix_misc.c: revision 1.126 sys/compat/common/kern_sig_43.c: revision 1.37 sys/compat/linux/common/linux_mtio.c: revision 1.8 sys/compat/freebsd/freebsd_misc.c: revision 1.34 sys/compat/freebsd/freebsd_machdep.c: revision 1.5 sys/compat/linux/common/linux_olduname.c: revision 1.67 sys/compat/linux/arch/mips/linux_machdep.c: revision 1.44 sys/compat/freebsd/freebsd_sched.c: revision 1.23 sys/compat/ossaudio/ossaudio.c: revision 1.84 sys/compat/sys/time_types.h: revision 1.6 sys/compat/linux/arch/powerpc/linux_machdep.c: revision 1.51 sys/compat/common/ieee80211_20.c: revision 1.7 sys/compat/linux/common/linux_file.c: revision 1.119 sys/compat/linux/arch/arm/linux_machdep.c: revision 1.34 sys/compat/netbsd32/netbsd32_wait.c: revision 1.25 sys/compat/linux32/common/linux32_time.c: revision 1.38 sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.33 sys/compat/linux/arch/alpha/linux_machdep.c: revision 1.52 sys/compat/linux32/arch/amd64/linux32_machdep.c: revision 1.46 sys/compat/netbsd32/netbsd32_compat_12.c: revision 1.36 sys/compat/ultrix/ultrix_ioctl.c: revision 1.39 sys/compat/linux/common/linux_misc.c: revision 1.252 sys/compat/linux/common/linux_hdio.c: revision 1.19 sys/compat/sunos/sunos_ioctl.c: revision 1.71 sys/compat/linux/common/linux_sched.c: revision 1.79 sys/compat/common/kern_info_43.c: revision 1.40 sys/compat/linux32/common/linux32_exec_elf32.c: revision 1.20 sys/compat/linux/common/linux_socket.c: revision 1.153 sys/compat/linux/arch/amd64/linux_machdep.c: revision 1.60 sys/compat/common/vfs_syscalls_43.c: revision 1.68 sys/compat/linux/arch/powerpc/linux_exec_powerpc.c: revision 1.25 sys/compat/netbsd32/netbsd32_ptrace.c: revision 1.9 sys/compat/common/kern_time_50.c: revision 1.37 sys/compat/netbsd32/netbsd32_compat_20.c: revision 1.42 sys/compat/linux/common/linux_cdrom.c: revision 1.28 sys/compat/linux/arch/m68k/linux_machdep.c: revision 1.43 sys/compat/common/kern_info_09.c: revision 1.22 sys/compat/linux32/common/linux32_resource.c: revision 1.12 sys/compat/linux/common/linux_oldolduname.c: revision 1.67 sys/compat/common/if_media_80.c: revision 1.4 sys/compat/linux/arch/alpha/linux_osf1.c: revision 1.5 sys/compat/netbsd32/netbsd32_nfssvc.c: revision 1.8 sys/compat/linux32/common/linux32_signal.c: revision 1.21 sys/compat/common/kern_sig_13.c: revision 1.22 sys/compat/sunos32/sunos32_ioctl.c: revision 1.36 sys/compat/netbsd32/netbsd32_compat_43.c: revision 1.62 sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.23 sys/compat/netbsd32/netbsd32_time.c: revision 1.56 sys/compat/linux/common/linux_signal.c: revision 1.84 sys/compat/netbsd32/netbsd32_signal.c: revision 1.52 sys/compat/sunos32/sunos32_misc.c: revision 1.85 sys/compat/linux/common/linux_time.c: revision 1.40 sys/compat/linux/common/linux_fdio.c: revision 1.14 sys/compat/common/vfs_syscalls_30.c: revision 1.43
sys/compat: Memset zero before copyout.
Just in case of uninitialized padding which would lead to kernel stack disclosure. If the compiler can prove the memset redundant then it can optimize it away; otherwise better safe than sorry.
|
1.53.8.1 |
| 03-Apr-2021 |
thorpej | Sync with HEAD.
|