History log of /src/sys/compat/linux32/common/linux32_termios.c |
Revision | | Date | Author | Comments |
1.16 |
| 26-Nov-2021 |
ryo | The changes on compat/linux/common/linux_termios.c should also be applied to compat/linux32/common/linux_termios.c, and reduce diff.
- remove duplicate fd_putfile(). This will be done after "goto out;". - catch up from compat/linux/common/linux_termios.c r1.26 TIOCSPTLCK - catch up from compat/linux/common/linux_termios.c r1.37 (TCOOFF/TCOON) of the TCXONC - catch up from compat/linux/common/linux_termios.c r1.39 FIOCLEX and FIONCLEX
|
1.15 |
| 23-Aug-2019 |
maxv | Add a default case, don't call sys_ioctl() with an uninitialized 'com' argument.
|
1.14 |
| 19-Nov-2008 |
ad | branches: 1.14.42; 1.14.54; 1.14.60; 1.14.68; 1.14.72; 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.13 |
| 04-Jul-2008 |
matthias | branches: 1.13.2; 1.13.4; make LINUX_TCSBRK work. The code is mostly copied from sys/compat/ibcs2/ibcs2_ioctl.c.
|
1.12 |
| 28-Apr-2008 |
martin | branches: 1.12.2; 1.12.4; Remove clause 3 and 4 from TNF licenses
|
1.11 |
| 22-Mar-2008 |
bjs | branches: 1.11.2; 1.11.4; fdputfile -> fd_putfile
|
1.10 |
| 21-Mar-2008 |
ad | Catch up with descriptor handling changes. See kern_descrip.c revision 1.173 for details.
|
1.9 |
| 20-Dec-2007 |
dsl | branches: 1.9.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.8 |
| 13-May-2007 |
dsl | branches: 1.8.8; 1.8.16; 1.8.20; This code is already set for directly calling a files ioctl fn with a kernel buffer - so why not use it when getting the slave pty number.
|
1.7 |
| 26-Mar-2007 |
njoly | Sync with recent compat linux termios changes.
|
1.6 |
| 19-Mar-2007 |
njoly | Fix TIOCGPTN ioctl. Do not use sysioctl() directly, but netbsd32_ioctl() instead.
|
1.5 |
| 18-Mar-2007 |
dsl | Change all the NETBSD32PTR64(SCARG(uap, xxx))) to SCARG_P32(uap, xxx).
|
1.4 |
| 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.3 |
| 04-Mar-2007 |
christos | branches: 1.3.2; 1.3.4; 1.3.6; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.2 |
| 25-Aug-2006 |
manu | branches: 1.2.4; 1.2.10; netbsd32_sys_ioctl was called with improper syscall argument structure, this caused any X11 program to fail because FIONREAD ioctl always returned an error.
|
1.1 |
| 15-Feb-2006 |
manu | branches: 1.1.2; 1.1.4; 1.1.10; 1.1.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.16.6 |
| 24-Mar-2008 |
yamt | sync with head.
|
1.1.16.5 |
| 21-Jan-2008 |
yamt | sync with head
|
1.1.16.4 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.1.16.3 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.1.16.2 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.1.16.1 |
| 15-Feb-2006 |
yamt | file linux32_termios.c was added on branch yamt-lazymbuf on 2006-06-21 14:59:27 +0000
|
1.1.10.2 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.1.10.1 |
| 15-Feb-2006 |
simonb | file linux32_termios.c was added on branch simonb-timecounters on 2006-04-22 11:38:14 +0000
|
1.1.4.1 |
| 03-Sep-2006 |
yamt | sync with head.
|
1.1.2.2 |
| 18-Feb-2006 |
yamt | sync with head.
|
1.1.2.1 |
| 15-Feb-2006 |
yamt | file linux32_termios.c was added on branch yamt-uio_vmspace on 2006-02-18 15:39:02 +0000
|
1.2.10.4 |
| 17-May-2007 |
yamt | sync with head.
|
1.2.10.3 |
| 15-Apr-2007 |
yamt | sync with head.
|
1.2.10.2 |
| 24-Mar-2007 |
yamt | sync with head.
|
1.2.10.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.2.4.2 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.2.4.1 |
| 25-Aug-2006 |
rpaulo | file linux32_termios.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:46:04 +0000
|
1.3.6.2 |
| 29-Mar-2007 |
reinoud | Pullup to -current
|
1.3.6.1 |
| 18-Mar-2007 |
reinoud | First attempt to bring branch in sync with HEAD
|
1.3.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.3.2.2 |
| 27-May-2007 |
ad | Sync with head.
|
1.3.2.1 |
| 10-Apr-2007 |
ad | Sync with head.
|
1.8.20.1 |
| 02-Jan-2008 |
bouyer | Sync with HEAD
|
1.8.16.1 |
| 26-Dec-2007 |
ad | Sync with head.
|
1.8.8.1 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.9.6.4 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.9.6.3 |
| 28-Sep-2008 |
mjf | Sync with HEAD.
|
1.9.6.2 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.9.6.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.11.4.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.11.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.11.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.12.4.1 |
| 18-Jul-2008 |
simonb | Sync with head.
|
1.12.2.1 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.13.4.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.13.2.1 |
| 13-Dec-2008 |
haad | Update haad-dm branch to haad-dm-base2.
|
1.14.72.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.14.68.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.14.60.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.14.54.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.42.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.
|