History log of /src/sys/compat/sunos32/sunos32_ioctl.c |
Revision | | Date | Author | Comments |
1.36 |
| 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.35 |
| 23-Apr-2019 |
msaitoh | branches: 1.35.2; KNF. No functional change.
|
1.34 |
| 11-Dec-2015 |
mlelstv | branches: 1.34.10; 1.34.18; PR 50517 bad switch
|
1.33 |
| 08-Dec-2015 |
christos | Replace DIOCGPART -> DIOCGPARTINFO which returns the data needed instead of pointers.
|
1.32 |
| 26-Sep-2015 |
christos | rename sun ioctls
|
1.31 |
| 05-Sep-2014 |
nakayama | branches: 1.31.2; Fix previous. There is no uap.
|
1.30 |
| 05-Sep-2014 |
matt | Try not to use f_data, use f_{vnode,socket,pipe,mqueue,kqueue,ksem} to get a correctly typed pointer.
|
1.29 |
| 29-May-2008 |
mrg | branches: 1.29.42; remove clause #3 from my license where there are no other copyright holders involved.
|
1.28 |
| 21-Mar-2008 |
ad | branches: 1.28.2; 1.28.4; 1.28.6; Catch up with descriptor handling changes. See kern_descrip.c revision 1.173 for details.
|
1.27 |
| 05-Jan-2008 |
dsl | branches: 1.27.6; Use FILE_LOCK() and FILE_UNLOCK(). Attempt to fix all the code paths so that the 'fp' returned by fd_getfile() isn't left locked, and is always unlocked (and ref-counted) before doing anything that might sleep.
|
1.26 |
| 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.25 |
| 08-Dec-2007 |
dsl | branches: 1.25.4; ANSIfy most of the function definitions in sys/compat (but not ndis). All by the magic of sed ...
|
1.24 |
| 04-Dec-2007 |
dsl | Remove all the __P
|
1.23 |
| 01-Jun-2007 |
hannken | branches: 1.23.6; 1.23.8; 1.23.14; 1.23.16; Fallout from last commit:
OSIOCGIFADDR -> OOSIOCGIFADDR OSIOCGIFDSTADDR -> OOSIOCGIFDSTADDR OSIOCGIFNETMASK -> OOSIOCGIFNETMASK
Sparc64 compiles again.
|
1.22 |
| 29-May-2007 |
christos | Add a sockaddr_storage member to "struct ifreq" maintaining backwards compatibility with the older ioctls. This avoids stack smashing and abuse of "struct sockaddr" when ioctls placed "struct sockaddr_foo's" that were longer than "struct sockaddr". XXX: Some of the emulations might be broken; I tried to add code for them but I did not test them.
|
1.21 |
| 12-May-2007 |
dsl | Split the fcntl locking code out from its copyin/out. Use to avoid all the stackgap stuff in compat code.
|
1.20 |
| 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.19 |
| 04-Mar-2007 |
christos | branches: 1.19.2; 1.19.4; 1.19.6; fix fallout from caddr_t changes.
|
1.18 |
| 04-Mar-2007 |
christos | Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.17 |
| 09-Feb-2007 |
ad | branches: 1.17.2; Merge newlock2 to head.
|
1.16 |
| 11-Dec-2005 |
christos | branches: 1.16.20; merge ktrace-lwp.
|
1.15 |
| 31-May-2005 |
christos | branches: 1.15.2; - add const - fix shadowed variables
|
1.14 |
| 25-Apr-2004 |
matt | Constify the speedtab arrays
|
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 |
| 29-Jun-2003 |
martin | struct proc * -> struct lwp *
|
1.11 |
| 21-Mar-2003 |
dsl | Change 'data' argument to fo_ioctl and fo_fcntl from 'caddr_t' to 'void *'. Avoids a lot of casting and removes the need for some line breaks. Removed a load of (caddr_t) casts from calls to copyin/copyout as well. (approved by christos - he has a plan to remove caddr_t...)
|
1.10 |
| 18-Jan-2003 |
thorpej | Merge the nathanw_sa branch.
|
1.9 |
| 04-Jan-2003 |
wiz | Spell output with two ts.
|
1.8 |
| 16-Mar-2002 |
christos | make the stackgap_{init,alloc} functions MP friendly (i.e. pass struct proc * in, instead of using curproc). While there add an optional size argument to stackgap_init.
|
1.7 |
| 13-Nov-2001 |
lukem | add RCSIDs (including regeneration of files as appropriate)
|
1.6 |
| 14-Jun-2001 |
thorpej | branches: 1.6.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.5 |
| 04-Jun-2001 |
mrg | fix lint exposed by GCC 3.0 20010604 (prerelease).
|
1.4 |
| 30-May-2001 |
mrg | use _KERNEL_OPT.
|
1.3 |
| 05-Feb-2001 |
mrg | branches: 1.3.2; 1.3.4; s/long/netbsd32_long/ in various places. call netbsd32_fcntl, not sys_fcntl.
|
1.2 |
| 04-Feb-2001 |
mrg | we don't #include ../sunos/sunos_ioctl.c anymore...sigh
|
1.1 |
| 02-Feb-2001 |
mrg | initial support for sunos binaries running on a 64 bit sparc64 kernel. some programs work, many do not yet.
|
1.3.4.6 |
| 07-Jan-2003 |
thorpej | Sync with HEAD.
|
1.3.4.5 |
| 23-Aug-2002 |
petrov | lwpfication
|
1.3.4.4 |
| 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.3.4.3 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.3.4.2 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.3.4.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.3.2.2 |
| 11-Feb-2001 |
bouyer | Sync with HEAD.
|
1.3.2.1 |
| 05-Feb-2001 |
bouyer | file sunos32_ioctl.c was added on branch thorpej_scsipi on 2001-02-11 19:14:31 +0000
|
1.6.2.2 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.6.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 |
| 26-Aug-2004 |
skrll | Adapt to branch.
sparc64 GENERIC compiles.
|
1.13.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.15.2.6 |
| 24-Mar-2008 |
yamt | sync with head.
|
1.15.2.5 |
| 21-Jan-2008 |
yamt | sync with head
|
1.15.2.4 |
| 07-Dec-2007 |
yamt | sync with head
|
1.15.2.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.15.2.2 |
| 26-Feb-2007 |
yamt | sync with head.
|
1.15.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.16.20.1 |
| 30-Jan-2007 |
ad | Remove support for SA. Ok core@.
|
1.17.2.3 |
| 17-May-2007 |
yamt | sync with head.
|
1.17.2.2 |
| 24-Mar-2007 |
yamt | sync with head.
|
1.17.2.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.19.6.1 |
| 18-Mar-2007 |
reinoud | First attempt to bring branch in sync with HEAD
|
1.19.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.19.2.3 |
| 09-Jun-2007 |
ad | Sync with head.
|
1.19.2.2 |
| 27-May-2007 |
ad | Sync with head.
|
1.19.2.1 |
| 10-Apr-2007 |
ad | Sync with head.
|
1.23.16.2 |
| 26-Dec-2007 |
ad | Sync with head.
|
1.23.16.1 |
| 08-Dec-2007 |
ad | Sync with head.
|
1.23.14.3 |
| 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.23.14.2 |
| 27-Dec-2007 |
mjf | Sync with HEAD.
|
1.23.14.1 |
| 08-Dec-2007 |
mjf | Sync with HEAD.
|
1.23.8.1 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.23.6.1 |
| 09-Dec-2007 |
jmcneill | Sync with HEAD.
|
1.25.4.2 |
| 08-Jan-2008 |
bouyer | Sync with HEAD
|
1.25.4.1 |
| 02-Jan-2008 |
bouyer | Sync with HEAD
|
1.27.6.2 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.27.6.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.28.6.3 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.28.6.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.28.6.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.28.4.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.28.2.1 |
| 04-Jun-2008 |
yamt | sync with head
|
1.29.42.1 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.31.2.1 |
| 27-Dec-2015 |
skrll | Sync with HEAD (as of 26th Dec)
|
1.34.18.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.34.10.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.35.2.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.
|