History log of /src/sys/compat/common/vfs_syscalls_12.c |
Revision | | Date | Author | Comments |
1.38 |
| 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.37 |
| 27-Jan-2019 |
pgoyette | branches: 1.37.4; Merge the [pgoyette-compat] branch
|
1.36 |
| 03-Sep-2018 |
riastradh | Rename min/max -> uimin/uimax for better honesty.
These functions are defined on unsigned int. The generic name min/max should not silently truncate to 32 bits on 64-bit systems. This is purely a name change -- no functional change intended.
HOWEVER! Some subsystems have
#define min(a, b) ((a) < (b) ? (a) : (b)) #define max(a, b) ((a) > (b) ? (a) : (b))
even though our standard name for that is MIN/MAX. Although these may invite multiple evaluation bugs, these do _not_ cause integer truncation.
To avoid `fixing' these cases, I first changed the name in libkern, and then compile-tested every file where min/max occurred in order to confirm that it failed -- and thus confirm that nothing shadowed min/max -- before changing it.
I have left a handful of bootloaders that are too annoying to compile-test, and some dead code:
cobalt ews4800mips hp300 hppa ia64 luna68k vax acorn32/if_ie.c (not included in any kernels) macppc/if_gm.c (superseded by gem(4))
It should be easy to fix the fallout once identified -- this way of doing things fails safe, and the goal here, after all, is to _avoid_ silent integer truncations, not introduce them.
Maybe one day we can reintroduce min/max as type-generic things that never silently truncate. But we should avoid doing that for a while, so that existing code has a chance to be detected by the compiler for conversion to uimin/uimax without changing the semantics until we can properly audit it all. (Who knows, maybe in some cases integer truncation is actually intended!)
|
1.35 |
| 03-Dec-2017 |
christos | branches: 1.35.2; 1.35.4; Make code look the same, in particular zero out the rest of the directory record. XXX: pullup-8
|
1.34 |
| 28-Jul-2017 |
riastradh | Fail, don't panic, on bad dirents from file system.
Controllable via puffs from userland.
From Ilja Van Sprundel.
|
1.33 |
| 13-Jan-2017 |
christos | branches: 1.33.8; use bdp, to avoid compiler warning.
|
1.32 |
| 13-Jan-2017 |
christos | convert strcpy to a bounded copy to avoid compiler warnings, although the reclen test prevents overflow.
|
1.31 |
| 05-Sep-2014 |
matt | branches: 1.31.2; 1.31.4; Try not to use f_data, use f_{vnode,socket,pipe,mqueue,kqueue,ksem} to get a correctly typed pointer.
|
1.30 |
| 24-Jan-2014 |
christos | branches: 1.30.4; 1.30.6; 1.30.10; It is wishful thinking that vn_readdir will return dirent12 structures.
|
1.29 |
| 19-Jan-2011 |
tsutsui | branches: 1.29.6; 1.29.12; 1.29.16; 1.29.18; 1.29.20; 1.29.26; Remove includes <sys/mount.h> and <sys/sched.h> added for <sys/syscallargs.h>. Now they are handled by $sysarghdrextra in sys/kern/syscalls.conf.
|
1.28 |
| 26-Jan-2009 |
njoly | branches: 1.28.6; 1.28.8; Make all fstat(2) compat syscalls consistently use do_sys_fstat(), instead of fd_getfile()/fd_putfile() dance.
ok by christos.
|
1.27 |
| 11-Jan-2009 |
christos | merge christos-time_t
|
1.26 |
| 24-Jun-2008 |
ad | branches: 1.26.4; Replace references to getsock/getvnode.
|
1.25 |
| 21-Mar-2008 |
ad | branches: 1.25.2; 1.25.6; 1.25.8; 1.25.10; Catch up with descriptor handling changes. See kern_descrip.c revision 1.173 for details.
|
1.24 |
| 20-Dec-2007 |
dsl | branches: 1.24.6; 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.23 |
| 12-Dec-2007 |
dsl | compat_file.[ch] are no longer used
|
1.22 |
| 30-Apr-2007 |
dsl | branches: 1.22.8; 1.22.16; 1.22.18; 1.22.20; Rework compat stat() and statvfs() code so that it no longer uses the stackgap.
|
1.21 |
| 10-Mar-2007 |
dsl | branches: 1.21.2; 1.21.4; Use the support routines from kern_syscalls.c instead of rolling our own code.
|
1.20 |
| 09-Feb-2007 |
ad | branches: 1.20.2; Merge newlock2 to head.
|
1.19 |
| 16-Nov-2006 |
christos | __unused removal on arguments; approved by core.
|
1.18 |
| 12-Oct-2006 |
christos | - sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
1.17 |
| 11-Dec-2005 |
christos | branches: 1.17.20; 1.17.22; merge ktrace-lwp.
|
1.16 |
| 13-Sep-2005 |
christos | compat code reorg.
|
1.15 |
| 19-Nov-2003 |
christos | branches: 1.15.16; Don't include malloc.h if you are not going to use it.
|
1.14 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
1.13 |
| 29-Jun-2003 |
fvdl | branches: 1.13.2; Back out the lwp/ktrace changes. They contained a lot of colateral damage, and need to be examined and discussed more.
|
1.12 |
| 28-Jun-2003 |
darrenr | Pass lwp pointers throughtout the kernel, as required, so that the lwpid can be inserted into ktrace records. The general change has been to replace "struct proc *" with "struct lwp *" in various function prototypes, pass the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
|
1.11 |
| 18-Jan-2003 |
thorpej | Merge the nathanw_sa branch.
|
1.10 |
| 13-Nov-2001 |
lukem | add RCSIDs (including regeneration of files as appropriate)
|
1.9 |
| 14-Jun-2001 |
thorpej | branches: 1.9.2; Fix a partial construction problem that can cause race conditions between creation of a file descriptor and close(2) when using kernel assisted threads. What we do is stick descriptors in the table, but mark them as "larval". This causes essentially everything to treat it as a non-existent descriptor, except for fdalloc(), which sees a filled slot so that it won't (incorrectly) allocate it again. When a descriptor is fully constructed, the code that has constructed it marks it as "mature" (which actually clears the "larval" flag), and things continue to work as normal.
While here, gather all the code that gets a descriptor from the table into a fd_getfile() function, and call it, rather than having the same (sometimes incorrect) code copied all over the place.
|
1.8 |
| 09-Apr-2001 |
jdolecek | Change the first arg to fileops fo_stat routine to struct file *, adjust callers and appropriate routines to cope. This makes fo_stat more consistent with rest of fileops routines and also makes the fo_stat match FreeBSD as an added bonus. Discussed with Luke Mewburn on tech-kern@.
|
1.7 |
| 07-Apr-2001 |
jdolecek | Add new 'stat' fileop and call the stat function via f_ops rather than directly. For compat syscalls, also add necessary FILE_USE()/FILE_UNUSE(). Now that soo_stat() gets a proc arg, pass it on to usrreq function.
|
1.6 |
| 30-Mar-2000 |
augustss | branches: 1.6.6; Kill register declarations.
|
1.5 |
| 05-May-1999 |
thorpej | branches: 1.5.2; Add "use counting" to file entries. When closing a file, and it's reference count is 0, wait for use count to drain before finishing the close.
This is necessary in order for multiple processes to safely share file descriptor tables.
|
1.4 |
| 30-Mar-1999 |
wrstuden | branches: 1.4.4; Explicitly mask mode returned in old stat structure to 16 bits. Also correct comment (we're converting from a new to an old struct stat).
|
1.3 |
| 19-Oct-1997 |
mycroft | Copy the whole timespec, not just half of it. Other minor changes.
|
1.2 |
| 16-Oct-1997 |
christos | add stat12 compatibility calls and rename ostat to stat43
|
1.1 |
| 10-Oct-1997 |
fvdl | branches: 1.1.2; Add getdirentries backward compat syscall. Provide common function to signal cookie overflow during emulated getdents and friends.
|
1.1.2.2 |
| 14-Oct-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.1.2.1 |
| 10-Oct-1997 |
thorpej | file vfs_syscalls_12.c was added on branch marc-pcmcia on 1997-10-14 10:21:17 +0000
|
1.4.4.1 |
| 21-Jun-1999 |
thorpej | Sync w/ -current.
|
1.5.2.2 |
| 21-Apr-2001 |
bouyer | Sync with HEAD
|
1.5.2.1 |
| 20-Nov-2000 |
bouyer | Update thorpej_scsipi to -current as of a month ago
|
1.6.6.6 |
| 12-Jul-2002 |
nathanw | No longer need to pull in lwp.h; proc.h pulls it in for us.
|
1.6.6.5 |
| 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.6.6.4 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.6.6.3 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.6.6.2 |
| 09-Apr-2001 |
nathanw | Catch up with -current.
|
1.6.6.1 |
| 05-Mar-2001 |
nathanw | Initial commit of scheduler activations and lightweight process support.
|
1.9.2.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.13.2.5 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.13.2.4 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.13.2.3 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.13.2.2 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.13.2.1 |
| 02-Jul-2003 |
darrenr | Apply the aborted ktrace-lwp changes to a specific branch. This is just for others to review, I'm concerned that patch fuziness may have resulted in some errant code being generated but I'll look at that later by comparing the diff from the base to the branch with the file I attempt to apply to it. This will, at the very least, put the changes in a better context for others to review them and attempt to tinker with removing passing of 'struct lwp' through the kernel.
|
1.15.16.5 |
| 24-Mar-2008 |
yamt | sync with head.
|
1.15.16.4 |
| 21-Jan-2008 |
yamt | sync with head
|
1.15.16.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.15.16.2 |
| 26-Feb-2007 |
yamt | sync with head.
|
1.15.16.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.17.22.2 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.17.22.1 |
| 22-Oct-2006 |
yamt | sync with head
|
1.17.20.2 |
| 30-Jan-2007 |
ad | Remove support for SA. Ok core@.
|
1.17.20.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.20.2.2 |
| 07-May-2007 |
yamt | sync with head.
|
1.20.2.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.21.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.21.2.1 |
| 27-May-2007 |
ad | Sync with head.
|
1.22.20.2 |
| 02-Jan-2008 |
bouyer | Sync with HEAD
|
1.22.20.1 |
| 13-Dec-2007 |
bouyer | Sync with HEAD
|
1.22.18.1 |
| 13-Dec-2007 |
yamt | sync with head.
|
1.22.16.1 |
| 26-Dec-2007 |
ad | Sync with head.
|
1.22.8.1 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.24.6.3 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.24.6.2 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.24.6.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.25.10.1 |
| 27-Jun-2008 |
simonb | Sync with head.
|
1.25.8.3 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.25.8.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.25.8.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.25.6.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.25.2.2 |
| 01-Nov-2008 |
christos | Sync with head.
|
1.25.2.1 |
| 29-Mar-2008 |
christos | Welcome to the time_t=long long dev_t=uint64_t branch.
|
1.26.4.2 |
| 03-Mar-2009 |
skrll | Sync with HEAD.
|
1.26.4.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.28.8.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.28.6.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.29.26.2 |
| 19-Aug-2017 |
snj | Pull up following revision(s) (requested by mrg in ticket #1483): sys/compat/common/vfs_syscalls_12.c: revision 1.34 sys/compat/svr4_32/svr4_32_misc.c: revision 1.78 sys/compat/sunos32/sunos32_misc.c: revision 1.78 sys/compat/linux/common/linux_misc.c: revision 1.239 sys/compat/osf1/osf1_file.c: revision 1.44 sys/compat/common/vfs_syscalls_43.c: revision 1.60 sys/compat/svr4/svr4_misc.c: revision 1.158 sys/compat/ibcs2/ibcs2_misc.c: revision 1.114 sys/compat/linux/common/linux_file64.c: revision 1.59 sys/compat/linux32/common/linux32_dirent.c: revision 1.18 sys/compat/sunos/sunos_misc.c: revision 1.171 Fail, don't panic, on bad dirents from file system. Controllable via puffs from userland. From Ilja Van Sprundel.
|
1.29.26.1 |
| 12-Aug-2017 |
snj | Pull up following revision(s) (requested by mrg in ticket #1469): sys/compat/common/vfs_syscalls_12.c: revision 1.30 sys/compat/common/vfs_syscalls_43.c: revision 1.56 sys/compat/sys/dirent.h: revision 1.3 It is wishful thinking that vn_readdir will return dirent12 structures. -- Fix the compat-4.3 getdirentries call (pre d_type). This is used in NetBSD-0.9. -- add a struct for the 4.3BSD struct direct
|
1.29.20.1 |
| 18-May-2014 |
rmind | sync with head
|
1.29.18.2 |
| 19-Aug-2017 |
snj | Pull up following revision(s) (requested by mrg in ticket #1483): sys/compat/common/vfs_syscalls_12.c: revision 1.34 sys/compat/svr4_32/svr4_32_misc.c: revision 1.78 sys/compat/sunos32/sunos32_misc.c: revision 1.78 sys/compat/linux/common/linux_misc.c: revision 1.239 sys/compat/osf1/osf1_file.c: revision 1.44 sys/compat/common/vfs_syscalls_43.c: revision 1.60 sys/compat/svr4/svr4_misc.c: revision 1.158 sys/compat/ibcs2/ibcs2_misc.c: revision 1.114 sys/compat/linux/common/linux_file64.c: revision 1.59 sys/compat/linux32/common/linux32_dirent.c: revision 1.18 sys/compat/sunos/sunos_misc.c: revision 1.171 Fail, don't panic, on bad dirents from file system. Controllable via puffs from userland. From Ilja Van Sprundel.
|
1.29.18.1 |
| 12-Aug-2017 |
snj | Pull up following revision(s) (requested by mrg in ticket #1469): sys/compat/common/vfs_syscalls_12.c: revision 1.30 sys/compat/common/vfs_syscalls_43.c: revision 1.56 sys/compat/sys/dirent.h: revision 1.3 It is wishful thinking that vn_readdir will return dirent12 structures. -- Fix the compat-4.3 getdirentries call (pre d_type). This is used in NetBSD-0.9. -- add a struct for the 4.3BSD struct direct
|
1.29.16.2 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.29.16.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.29.12.2 |
| 19-Aug-2017 |
snj | Pull up following revision(s) (requested by mrg in ticket #1483): sys/compat/common/vfs_syscalls_12.c: revision 1.34 sys/compat/svr4_32/svr4_32_misc.c: revision 1.78 sys/compat/sunos32/sunos32_misc.c: revision 1.78 sys/compat/linux/common/linux_misc.c: revision 1.239 sys/compat/osf1/osf1_file.c: revision 1.44 sys/compat/common/vfs_syscalls_43.c: revision 1.60 sys/compat/svr4/svr4_misc.c: revision 1.158 sys/compat/ibcs2/ibcs2_misc.c: revision 1.114 sys/compat/linux/common/linux_file64.c: revision 1.59 sys/compat/linux32/common/linux32_dirent.c: revision 1.18 sys/compat/sunos/sunos_misc.c: revision 1.171 Fail, don't panic, on bad dirents from file system. Controllable via puffs from userland. From Ilja Van Sprundel.
|
1.29.12.1 |
| 12-Aug-2017 |
snj | Pull up following revision(s) (requested by mrg in ticket #1469): sys/compat/common/vfs_syscalls_12.c: revision 1.30 sys/compat/common/vfs_syscalls_43.c: revision 1.56 sys/compat/sys/dirent.h: revision 1.3 It is wishful thinking that vn_readdir will return dirent12 structures. -- Fix the compat-4.3 getdirentries call (pre d_type). This is used in NetBSD-0.9. -- add a struct for the 4.3BSD struct direct
|
1.29.6.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.30.10.1 |
| 12-Aug-2017 |
snj | Pull up following revision(s) (requested by mrg in ticket #1479): sys/compat/common/vfs_syscalls_12.c: revision 1.34 sys/rump/kern/lib/libsys_sunos/rump_sunos_compat.c: revision 1.2 sys/compat/svr4_32/svr4_32_misc.c: revision 1.78 sys/compat/sunos32/sunos32_misc.c: revision 1.78 sys/compat/linux/common/linux_misc.c: revision 1.239 sys/compat/osf1/osf1_file.c: revision 1.44 sys/compat/common/vfs_syscalls_43.c: revision 1.60 sys/compat/svr4/svr4_misc.c: revision 1.158 sys/compat/ibcs2/ibcs2_misc.c: revision 1.114 sys/compat/linux/common/linux_file64.c: revision 1.59 sys/compat/linux32/common/linux32_dirent.c: revision 1.18 sys/compat/sunos/sunos_misc.c: revision 1.171 Fail, don't panic, on bad dirents from file system. Controllable via puffs from userland. From Ilja Van Sprundel.
|
1.30.6.1 |
| 12-Aug-2017 |
snj | Pull up following revision(s) (requested by mrg in ticket #1479): sys/compat/common/vfs_syscalls_12.c: revision 1.34 sys/rump/kern/lib/libsys_sunos/rump_sunos_compat.c: revision 1.2 sys/compat/svr4_32/svr4_32_misc.c: revision 1.78 sys/compat/sunos32/sunos32_misc.c: revision 1.78 sys/compat/linux/common/linux_misc.c: revision 1.239 sys/compat/osf1/osf1_file.c: revision 1.44 sys/compat/common/vfs_syscalls_43.c: revision 1.60 sys/compat/svr4/svr4_misc.c: revision 1.158 sys/compat/ibcs2/ibcs2_misc.c: revision 1.114 sys/compat/linux/common/linux_file64.c: revision 1.59 sys/compat/linux32/common/linux32_dirent.c: revision 1.18 sys/compat/sunos/sunos_misc.c: revision 1.171 Fail, don't panic, on bad dirents from file system. Controllable via puffs from userland. From Ilja Van Sprundel.
|
1.30.4.1 |
| 12-Aug-2017 |
snj | Pull up following revision(s) (requested by mrg in ticket #1479): sys/compat/common/vfs_syscalls_12.c: revision 1.34 sys/rump/kern/lib/libsys_sunos/rump_sunos_compat.c: revision 1.2 sys/compat/svr4_32/svr4_32_misc.c: revision 1.78 sys/compat/sunos32/sunos32_misc.c: revision 1.78 sys/compat/linux/common/linux_misc.c: revision 1.239 sys/compat/osf1/osf1_file.c: revision 1.44 sys/compat/common/vfs_syscalls_43.c: revision 1.60 sys/compat/svr4/svr4_misc.c: revision 1.158 sys/compat/ibcs2/ibcs2_misc.c: revision 1.114 sys/compat/linux/common/linux_file64.c: revision 1.59 sys/compat/linux32/common/linux32_dirent.c: revision 1.18 sys/compat/sunos/sunos_misc.c: revision 1.171 Fail, don't panic, on bad dirents from file system. Controllable via puffs from userland. From Ilja Van Sprundel.
|
1.31.4.1 |
| 20-Mar-2017 |
pgoyette | Sync with HEAD
|
1.31.2.2 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
1.31.2.1 |
| 05-Feb-2017 |
skrll | Sync with HEAD
|
1.33.8.3 |
| 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.33.8.2 |
| 10-Dec-2017 |
snj | Pull up following revision(s) (requested by christos in ticket #418): sys/compat/common/vfs_syscalls_12.c: revision 1.35 sys/compat/common/vfs_syscalls_43.c: revision 1.62 Make code look the same, in particular zero out the rest of the directory record.
|
1.33.8.1 |
| 09-Aug-2017 |
snj | Pull up following revision(s) (requested by spz in ticket #193): sys/compat/common/vfs_syscalls_12.c: revision 1.34 sys/rump/kern/lib/libsys_sunos/rump_sunos_compat.c: revision 1.2 sys/compat/svr4_32/svr4_32_misc.c: revision 1.78 sys/compat/sunos32/sunos32_misc.c: revision 1.78 sys/compat/linux/common/linux_misc.c: revision 1.239 sys/compat/osf1/osf1_file.c: revision 1.44 sys/compat/common/vfs_syscalls_43.c: revision 1.60 sys/compat/svr4/svr4_misc.c: revision 1.158 sys/compat/ibcs2/ibcs2_misc.c: revision 1.114 sys/compat/linux/common/linux_file64.c: revision 1.59 sys/compat/linux32/common/linux32_dirent.c: revision 1.18 sys/compat/sunos/sunos_misc.c: revision 1.171 Fail, don't panic, on bad dirents from file system. Controllable via puffs from userland. From Ilja Van Sprundel.
|
1.35.4.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.35.2.3 |
| 22-Sep-2018 |
pgoyette | #include "opt_compat_netbsd.h" for all sources that provide compat code.
|
1.35.2.2 |
| 06-Sep-2018 |
pgoyette | Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
|
1.35.2.1 |
| 31-Mar-2018 |
pgoyette | create the compat_12 module
|
1.37.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.
|