History log of /src/sys/compat/linux32/common/linux32_ioctl.c |
Revision | | Date | Author | Comments |
1.15 |
| 19-Sep-2021 |
thorpej | Add the timerfd syscalls to COMPAT_LINUX and COMPAT_LINUX32.
|
1.14 |
| 23-Aug-2019 |
maxv | branches: 1.14.8; Put the printf under DEBUG_LINUX.
|
1.13 |
| 18-Aug-2009 |
christos | branches: 1.13.38; 1.13.50; 1.13.56; 1.13.64; 1.13.68; add the video ioctls so that the 32 bit skype works with video more commits to come
|
1.12 |
| 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.11 |
| 19-Jun-2008 |
christos | branches: 1.11.2; 1.11.4; an attempt at linux32_ioctl_socket().
|
1.10 |
| 22-Jan-2008 |
jmcneill | branches: 1.10.6; 1.10.10; 1.10.12; 1.10.14; Add ossaudio support for COMPAT_LINUX32, with help from mrg. With this change, audio now works on amd64 with native firefox, nspluginwrapper, and the 32-bit linux flash binaries.
|
1.9 |
| 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.8 |
| 08-Dec-2007 |
dsl | branches: 1.8.4; ANSIfy most of the function definitions in sys/compat (but not ndis). All by the magic of sed ...
|
1.7 |
| 18-Mar-2007 |
dsl | branches: 1.7.8; 1.7.10; 1.7.16; 1.7.18; Change all the NETBSD32PTR64(SCARG(uap, xxx))) to SCARG_P32(uap, xxx).
|
1.6 |
| 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.5 |
| 04-Mar-2007 |
christos | branches: 1.5.2; 1.5.4; 1.5.6; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.4 |
| 13-Sep-2006 |
manu | branches: 1.4.4; 1.4.6; 1.4.10; Jumbo COMPAT_LINUX/COMPAT_LINUX32 bugfix, with the help of Nicolas Joly - Fix shmat return value on amd64: it uses no black magic with retval[0] - Fix integer overflows in sysinfo - Implement sysinfo, mmap2, sched_getparam, sched_getscheduler, mremap, and madvise in COMPAT_LINUX32 - Fix improper types used in setgroups16/getgroups16 - Implement mmap2 for COMPAT_LINUX32 - Ifdef debug messages by DEBUG_LINUX
|
1.3 |
| 25-Aug-2006 |
manu | branches: 1.3.2; 1.3.4; Add support for socket ioctl.
|
1.2 |
| 15-Feb-2006 |
manu | branches: 1.2.2; 1.2.4; 1.2.10; 1.2.16; - Move the BSD to Linux and Linux to BSD termio/termios conversion functions to a header where they can be shared between COMPAT_LINUX and COMPAT_LINUX32 - Add termios ioctl emulation to COMPAT_LINUX32 - Add the getcwd system call to COMPAT_LINUX32/amd64
That makes Linux's bash working with COMPAT_LINUX32.
|
1.1 |
| 09-Feb-2006 |
manu | Add initial (but unfinished) COMPAT_LINUX32 for amd64. This is good enough so that the i386 license manager part of amd64 version of Fluent works.
While I'm here, add SysV IPC to COMPAT_LINUX/amd64
|
1.2.16.6 |
| 04-Feb-2008 |
yamt | sync with head.
|
1.2.16.5 |
| 21-Jan-2008 |
yamt | sync with head
|
1.2.16.4 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.2.16.3 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.2.16.2 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.2.16.1 |
| 15-Feb-2006 |
yamt | file linux32_ioctl.c was added on branch yamt-lazymbuf on 2006-06-21 14:59:27 +0000
|
1.2.10.2 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.2.10.1 |
| 15-Feb-2006 |
simonb | file linux32_ioctl.c was added on branch simonb-timecounters on 2006-04-22 11:38:14 +0000
|
1.2.4.2 |
| 14-Sep-2006 |
yamt | sync with head.
|
1.2.4.1 |
| 03-Sep-2006 |
yamt | sync with head.
|
1.2.2.2 |
| 18-Feb-2006 |
yamt | sync with head.
|
1.2.2.1 |
| 15-Feb-2006 |
yamt | file linux32_ioctl.c was added on branch yamt-uio_vmspace on 2006-02-18 15:39:02 +0000
|
1.3.4.2 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.3.4.1 |
| 25-Aug-2006 |
rpaulo | file linux32_ioctl.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:46:03 +0000
|
1.3.2.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.4.10.1 |
| 04-Sep-2008 |
skrll | Sync with netbsd-4.
|
1.4.6.2 |
| 24-Mar-2007 |
yamt | sync with head.
|
1.4.6.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.4.4.1 |
| 20-Aug-2008 |
bouyer | Pull up following revision(s) (requested by jmcneill in ticket #1051): sys/compat/linux32/common/linux32_ioctl.c: revision 1.10 via patch sys/compat/ossaudio/ossaudiovar.h: revision 1.14 Add ossaudio support for COMPAT_LINUX32, with help from mrg. With this change, audio now works on amd64 with native firefox, nspluginwrapper, and the 32-bit linux flash binaries.
|
1.5.6.2 |
| 29-Mar-2007 |
reinoud | Pullup to -current
|
1.5.6.1 |
| 18-Mar-2007 |
reinoud | First attempt to bring branch in sync with HEAD
|
1.5.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.5.2.1 |
| 10-Apr-2007 |
ad | Sync with head.
|
1.7.18.1 |
| 26-Dec-2007 |
ad | Sync with head.
|
1.7.16.1 |
| 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.7.10.2 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.7.10.1 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.7.8.1 |
| 09-Dec-2007 |
jmcneill | Sync with HEAD.
|
1.8.4.2 |
| 23-Jan-2008 |
bouyer | Sync with HEAD.
|
1.8.4.1 |
| 02-Jan-2008 |
bouyer | Sync with HEAD
|
1.10.14.1 |
| 27-Jun-2008 |
simonb | Sync with head.
|
1.10.12.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.10.10.2 |
| 19-Aug-2009 |
yamt | sync with head.
|
1.10.10.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.10.6.2 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.10.6.1 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.11.4.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.11.2.1 |
| 13-Dec-2008 |
haad | Update haad-dm branch to haad-dm-base2.
|
1.13.68.1 |
| 13-Sep-2019 |
martin | Pull up following revision(s) (requested by maxv in ticket #194):
sys/compat/linux/common/linux_socket.c: revision 1.146 sys/compat/linux/common/linux_socket.c: revision 1.147 sys/compat/linux/common/linux_socket.c: revision 1.148 sys/compat/linux/common/linux_socket.c: revision 1.149 sys/compat/linux/arch/amd64/linux_machdep.c: revision 1.59 sys/compat/linux32/common/linux32_sysinfo.c: revision 1.8 sys/kern/sysv_shm.c: revision 1.138 sys/compat/linux/common/linux_file64.c: revision 1.61 sys/compat/linux/common/linux_file64.c: revision 1.62 sys/compat/netbsd32/netbsd32_compat_43.c: revision 1.58 sys/compat/linux32/common/linux32_dirent.c: revision 1.20 sys/compat/linux32/common/linux32_utsname.c: revision 1.10 sys/compat/linux/common/linux_termios.h: revision 1.22 sys/compat/linux32/common/linux32_termios.c: revision 1.15 sys/compat/linux32/common/linux32_misc.c: revision 1.27 sys/compat/linux32/common/linux32_ioctl.c: revision 1.14 sys/compat/linux/common/linux_statfs.h: revision 1.7 sys/compat/linux/common/linux_ipc.c: revision 1.57 sys/compat/linux/common/linux_fcntl.h: revision 1.18 sys/compat/linux/common/linux_socket.h: revision 1.24 sys/sys/shm.h: revision 1.54 sys/compat/ossaudio/ossaudio.c: revision 1.75 sys/compat/linux32/common/linux32_signal.c: revision 1.20 sys/miscfs/procfs/procfs_linux.c: revision 1.75 sys/compat/linux/common/linux_signal.c: revision 1.81 sys/compat/linux/common/linux_termios.c: revision 1.38 sys/compat/linux/common/linux_misc.c: revision 1.241 sys/compat/linux/common/linux_misc.c: revision 1.242 sys/compat/linux/common/linux_misc.c: revision 1.243 sys/compat/linux/common/linux_misc.c: revision 1.244
Fix info leaks.
Fix stupid bugs in linux_sys_shmctl(): the index could be out of bound (page fault) and there was no proper locking. Maybe we should just remove LINUX_SHM_STAT, like compat_linux32.
Remove printf.
When dealing with an unknown value, set -1, to prevent (harmless) uninitialized accesses later.
Add a default case, don't call sys_ioctl() with an uninitialized 'com' argument.
Fix error handling, returns an errno, not -1.
Put the printf under DEBUG_LINUX.
Hum, don't forget the 'pid' argument, otherwise we're not gonna go very far.
Don't read data from userland directly. This simply does not work on any recent x86 CPU (thanks to SMAP) and all architectures that forbid direct access to userland from the kernel. But I guess no one noticed because no one ever uses compat_linux, right?
Hum, don't pass an mbuf to realloc(). Inspired from copyin32_msg_control().
Fix memory leak.
I don't see the point in having this useless printf, but add a '\n' to it, so that it at least displays useless stuff correctly.
Hum, remove incorrect assignment. Userland could have passed a smaller namelen, and the uninitialized bytes from sb_data were being used later in the network stack.
|
1.13.64.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.13.56.1 |
| 21-Jan-2020 |
martin | Pull up the following, requested by christos in ticket #1487:
sys/compat/common/kern_sig_43.c 1.36 sys/compat/linux/arch/amd64/linux_machdep.c 1.59 sys/compat/linux/common/linux_fcntl.h 1.18 sys/compat/linux/common/linux_file64.c 1.62 sys/compat/linux/common/linux_ipc.c 1.57 sys/compat/linux/common/linux_misc.c 1.243 sys/compat/linux/common/linux_signal.c 1.81 sys/compat/linux/common/linux_socket.c 1.149 sys/compat/linux/common/linux_socket.h 1.24 sys/compat/linux/common/linux_statfs.h 1.7 sys/compat/linux/common/linux_termios.c 1.38 sys/compat/linux/common/linux_termios.h 1.22 sys/compat/linux32/common/linux32_dirent.c 1.20 sys/compat/linux32/common/linux32_ioctl.c 1.14 sys/compat/linux32/common/linux32_misc.c 1.27 sys/compat/linux32/common/linux32_signal.c 1.20 sys/compat/linux32/common/linux32_sysinfo.c 1.8 sys/compat/linux32/common/linux32_termios.c 1.15 sys/compat/linux32/common/linux32_utsname.c 1.10 sys/compat/netbsd32/netbsd32_compat_20.c 1.39 sys/compat/netbsd32/netbsd32_compat_43.c 1.59 sys/compat/netbsd32/netbsd32_compat_50.c 1.44 sys/compat/ossaudio/ossaudio.c 1.75 sys/kern/sysv_shm.c 1.138 sys/miscfs/procfs/procfs_linux.c 1.75 (patch) sys/sys/shm.h 1.54
Fix various info leaks, out of bound access, usage of uninitialized values and direct access to userland variables from kernel space and memory leaks in system calls implemented for the compatibility subsystems.
|
1.13.50.1 |
| 21-Jan-2020 |
martin | Pull up the following, requested by christos in ticket #1720:
sys/compat/common/kern_sig_43.c 1.36 sys/compat/linux/arch/amd64/linux_machdep.c 1.59 sys/compat/linux/common/linux_fcntl.h 1.18 sys/compat/linux/common/linux_file64.c 1.62 sys/compat/linux/common/linux_ipc.c 1.57 sys/compat/linux/common/linux_misc.c 1.243 sys/compat/linux/common/linux_signal.c 1.81 sys/compat/linux/common/linux_socket.c 1.149 (patch) sys/compat/linux/common/linux_socket.h 1.24 sys/compat/linux/common/linux_statfs.h 1.7 sys/compat/linux/common/linux_termios.c 1.38 sys/compat/linux/common/linux_termios.h 1.22 sys/compat/linux32/common/linux32_dirent.c 1.20 sys/compat/linux32/common/linux32_ioctl.c 1.14 sys/compat/linux32/common/linux32_misc.c 1.27 sys/compat/linux32/common/linux32_signal.c 1.20 sys/compat/linux32/common/linux32_sysinfo.c 1.8 sys/compat/linux32/common/linux32_termios.c 1.15 sys/compat/linux32/common/linux32_utsname.c 1.10 sys/compat/netbsd32/netbsd32_compat_20.c 1.39 sys/compat/netbsd32/netbsd32_compat_43.c 1.59 sys/compat/netbsd32/netbsd32_compat_50.c 1.44 sys/compat/ossaudio/ossaudio.c 1.75 sys/kern/sysv_shm.c 1.138 sys/miscfs/procfs/procfs_linux.c 1.75 (patch) sys/sys/shm.h 1.54 (patch)
Fix various info leaks, out of bound access, usage of uninitialized values and direct access to userland variables from kernel space and memory leaks in system calls implemented for the compatibility subsystems.
|
1.13.38.1 |
| 21-Jan-2020 |
martin | Pull up the following, requested by christos in ticket #1720:
sys/compat/common/kern_sig_43.c 1.36 sys/compat/linux/arch/amd64/linux_machdep.c 1.59 sys/compat/linux/common/linux_fcntl.h 1.18 sys/compat/linux/common/linux_file64.c 1.62 sys/compat/linux/common/linux_ipc.c 1.57 sys/compat/linux/common/linux_misc.c 1.243 sys/compat/linux/common/linux_signal.c 1.81 sys/compat/linux/common/linux_socket.c 1.149 (patch) sys/compat/linux/common/linux_socket.h 1.24 sys/compat/linux/common/linux_statfs.h 1.7 sys/compat/linux/common/linux_termios.c 1.38 sys/compat/linux/common/linux_termios.h 1.22 sys/compat/linux32/common/linux32_dirent.c 1.20 sys/compat/linux32/common/linux32_ioctl.c 1.14 sys/compat/linux32/common/linux32_misc.c 1.27 sys/compat/linux32/common/linux32_signal.c 1.20 sys/compat/linux32/common/linux32_sysinfo.c 1.8 sys/compat/linux32/common/linux32_termios.c 1.15 sys/compat/linux32/common/linux32_utsname.c 1.10 sys/compat/netbsd32/netbsd32_compat_20.c 1.39 sys/compat/netbsd32/netbsd32_compat_43.c 1.59 sys/compat/netbsd32/netbsd32_compat_50.c 1.44 sys/compat/ossaudio/ossaudio.c 1.75 sys/kern/sysv_shm.c 1.138 sys/miscfs/procfs/procfs_linux.c 1.75 (patch) sys/sys/shm.h 1.54 (patch)
Fix various info leaks, out of bound access, usage of uninitialized values and direct access to userland variables from kernel space and memory leaks in system calls implemented for the compatibility subsystems.
|
1.14.8.1 |
| 03-Jan-2021 |
thorpej | Handle timerfd ioctls.
|