History log of /src/sys/compat/linux32/common/linux32_misc.c |
Revision | | Date | Author | Comments |
1.34 |
| 25-Nov-2021 |
ryo | add support COMPAT_LINUX32 for aarch64
|
1.33 |
| 20-Sep-2021 |
thorpej | Add preadv(2) and pwritev(2) system calls to COMPAT_LINUX and COMPAT_LINUX32.
|
1.32 |
| 20-Sep-2021 |
thorpej | Add the eventfd system calls to COMPAT_LINUX and COMPAT_LINUX32.
|
1.31 |
| 19-Sep-2021 |
thorpej | Remove redundant linux32_to_native_timespec() prototype.
|
1.30 |
| 03-May-2020 |
thorpej | branches: 1.30.2; Always clear FUTEX_PRIVATE_FLAG for Linux processes. NetBSD-native futexes exist in different namespace depending on FUTEX_PRIVATE_FLAG. This appears not to be the case in Linux, and some futex users will mix private and non- private ops on the same futex object. Provide a convenience wrapper that puts this logic in one place witn a comment explaining why.
While here, move the Linux futex wrapper out of its own file and plop it in linux_misc.c, which is where it lives in the linux32 module.
|
1.29 |
| 29-Apr-2020 |
thorpej | Oops, fix a silly mistake in the Linux futex syscall stubs -- we also copy in the timeout for FUTEX_WAIT_BITSET.
|
1.28 |
| 26-Apr-2020 |
thorpej | Add a NetBSD native futex implementation, mostly written by riastradh@. Map the COMPAT_LINUX futex calls to the native ones.
|
1.27 |
| 23-Aug-2019 |
maxv | Hum, don't forget the 'pid' argument, otherwise we're not gonna go very far.
|
1.26 |
| 10-Apr-2017 |
dholland | branches: 1.26.6; 1.26.14; 1.26.18; Return value pointers should be the last argument.
|
1.25 |
| 22-Nov-2014 |
njoly | branches: 1.25.2; 1.25.4; 1.25.6; Add ppoll(2) for compat linux32.
|
1.24 |
| 09-Nov-2014 |
maxv | Do not uselessly include <sys/malloc.h>.
|
1.23 |
| 18-Nov-2013 |
chs | branches: 1.23.4; implement the *at() syscalls. bring the unimplemented syscall list up to date.
|
1.22 |
| 18-Nov-2011 |
christos | branches: 1.22.10; 1.22.14; add sigtimedwait support
|
1.21 |
| 02-Nov-2010 |
chs | branches: 1.21.8; personality() now interprets its parameter as having the base personality type in the low byte and various flags in the upper bytes. for now just mask off the flags to make sure the base type is one we accept. store the current personality in the emuldata so that we can return the expected value for PER_QUERY.
|
1.20 |
| 02-Nov-2010 |
chs | implement the following syscalls for linux32: truncate64 ftruncate64 profil ioperm iopl setdomainname modify_ldt statfs64 fstatfs64
note that iopl(), ioperm() and modify_ldt() just call the respective 64-bit handlers, which don't do anything yet.
|
1.19 |
| 07-Jul-2010 |
chs | many changes for COMPAT_LINUX: - update the linux syscall table for each platform. - support new-style (NPTL) linux pthreads on all platforms. clone() with CLONE_THREAD uses 1 process with many LWPs instead of separate processes. - move the contents of sys__lwp_setprivate() into a new lwp_setprivate() and use that everywhere. - update linux_release[] and linux32_release[] to "2.6.18". - adjust placement of emul fork/exec/exit hooks as needed and adjust other emul code to match. - convert all struct emul definitions to use named initializers. - change the pid allocator to allow multiple pids to refer to the same proc. - remove a few fields from struct proc that are no longer needed. - disable the non-functional "vdso" code in linux32/amd64, glibc works fine without it. - fix a race in the futex code where we could miss a wakeup after a requeue operation. - redo futex locking to be a little more efficient.
|
1.18 |
| 24-Nov-2009 |
njoly | branches: 1.18.2; 1.18.4; Update personality(2) to match Linux definition where the argument is an unsigned long.
|
1.17 |
| 05-Jun-2009 |
njoly | Add fstatfs syscall.
|
1.16 |
| 20-Jan-2009 |
njoly | branches: 1.16.2; Add basic support for linux32 personality(2) syscall.
|
1.15 |
| 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.14 |
| 12-Nov-2008 |
njoly | Add missing sys/syscall.h include for SYS_ptrace definition.
|
1.13 |
| 12-Nov-2008 |
ad | Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
|
1.12 |
| 18-Jun-2008 |
njoly | branches: 1.12.2; 1.12.4; 1.12.6; linux32_sys_ptrace() fixes. - Add opt_ptrace.h include to activate syscall. - Convert to use sys_ptrace() instead of netbsd32_ptrace(). - Do not use arch specific call for now.
|
1.11 |
| 16-Jun-2008 |
christos | an attempt at ptrace32
|
1.10 |
| 28-Apr-2008 |
martin | branches: 1.10.2; 1.10.4; Remove clause 3 and 4 from TNF licenses
|
1.9 |
| 20-Dec-2007 |
dsl | branches: 1.9.6; 1.9.8; 1.9.10; 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 |
| 30-Apr-2007 |
dsl | branches: 1.7.2; 1.7.8; 1.7.10; 1.7.18; Rework compat stat() and statvfs() code so that it no longer uses the stackgap.
|
1.6 |
| 22-Apr-2007 |
dsl | Change the way that emulations locate files within the emulation root to avoid having to allocate space in the 'stackgap' - which is very LWP unfriendly. The additional code for non-emulation namei() is trivial, the reduction for the emulations is massive. The vnode for a processes emulation root is saved in the cwdi structure during process exec. If the emulation root the TRYEMULROOT flag are set, namei() will do an initial search for absolute pathnames in the emulation root, if that fails it will retry from the normal root. ".." at the emulation root will always go to the real root, even in the middle of paths and when expanding symlinks. Absolute symlinks found using absolute paths in the emulation root will be relative to the emulation root (so /usr/lib/xxx.so -> /lib/xxx.so links inside the emulation root don't need changing). If the root of the emulation would be returned (for an emulation lookup), then the real root is returned instead (matching the behaviour of emul_lookup, but being a cheap comparison here) so that programs that scan "../.." looking for the root dircetory don't loop forever. The target for symbolic links is no longer mangled (it used to get the CHECK_ALT_xxx() treatment, so could get /emul/xxx prepended). CHECK_ALT_xxx() are no more. Most of the change is deleting them, and adding TRYEMULROOT to the flags to NDINIT(). A lot of the emulation system call stubs could now be deleted.
|
1.5 |
| 11-Apr-2007 |
njoly | branches: 1.5.4; - Add compat amd64 linux32 statfs support, adapted from PR/35956. - Move bsd_to_linux_statfs() function to its own file to be shared between both linux compats.
ok by manu.
|
1.4 |
| 13-Sep-2006 |
manu | branches: 1.4.4; 1.4.8; This file was not used anymore
|
1.3 |
| 23-Jul-2006 |
ad | branches: 1.3.4; 1.3.6; Use the LWP cached credentials where sane.
|
1.2 |
| 14-May-2006 |
elad | branches: 1.2.6; integrate kauth.
|
1.1 |
| 09-Feb-2006 |
manu | branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.10; 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.1.10.3 |
| 01-Jun-2006 |
kardel | Sync with head.
|
1.1.10.2 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.1.10.1 |
| 09-Feb-2006 |
simonb | file linux32_misc.c was added on branch simonb-timecounters on 2006-04-22 11:38:14 +0000
|
1.1.8.1 |
| 24-May-2006 |
tron | Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
|
1.1.6.2 |
| 10-Mar-2006 |
elad | generic_authorize() -> kauth_authorize_generic().
|
1.1.6.1 |
| 08-Mar-2006 |
elad | Adapt to kernel authorization KPI.
|
1.1.4.3 |
| 14-Sep-2006 |
yamt | sync with head.
|
1.1.4.2 |
| 11-Aug-2006 |
yamt | sync with head
|
1.1.4.1 |
| 24-May-2006 |
yamt | sync with head.
|
1.1.2.2 |
| 18-Feb-2006 |
yamt | sync with head.
|
1.1.2.1 |
| 09-Feb-2006 |
yamt | file linux32_misc.c was added on branch yamt-uio_vmspace on 2006-02-18 15:39:02 +0000
|
1.2.6.5 |
| 21-Jan-2008 |
yamt | sync with head
|
1.2.6.4 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.2.6.3 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.2.6.2 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.2.6.1 |
| 14-May-2006 |
yamt | file linux32_misc.c was added on branch yamt-lazymbuf on 2006-06-21 14:59:27 +0000
|
1.3.6.2 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.3.6.1 |
| 23-Jul-2006 |
rpaulo | file linux32_misc.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:46:03 +0000
|
1.3.4.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.4.8.1 |
| 09-Jun-2007 |
ad | Sync with head.
|
1.4.4.2 |
| 07-May-2007 |
yamt | sync with head.
|
1.4.4.1 |
| 15-Apr-2007 |
yamt | sync with head.
|
1.5.4.2 |
| 20-Apr-2007 |
bouyer | Pull up following revision(s) (requested by njoly in ticket #582): sys/compat/linux32/common/linux32_types.h: revision 1.4 via patch sys/compat/linux32/arch/amd64/syscalls.master: revision 1.14 via patch sys/compat/linux/common/linux_statfs.h: revision 1.1 via patch sys/compat/linux/common/linux_misc.c: revision 1.170 via patch sys/compat/linux32/common/linux32_misc.c: revision 1.5 via patch sys/compat/linux32/files.linux32: revision 1.4 via patch - Add compat amd64 linux32 statfs support, adapted from PR/35956. - Move bsd_to_linux_statfs() function to its own file to be shared between both linux compats.
|
1.5.4.1 |
| 11-Apr-2007 |
bouyer | file linux32_misc.c was added on branch netbsd-4 on 2007-04-20 20:26:03 +0000
|
1.7.18.1 |
| 26-Dec-2007 |
ad | 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.7.2.2 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.7.2.1 |
| 30-Apr-2007 |
mjf | file linux32_misc.c was added on branch mjf-ufs-trans on 2007-07-11 20:04:23 +0000
|
1.8.4.1 |
| 02-Jan-2008 |
bouyer | Sync with HEAD
|
1.9.10.5 |
| 11-Aug-2010 |
yamt | sync with head.
|
1.9.10.4 |
| 11-Mar-2010 |
yamt | sync with head
|
1.9.10.3 |
| 20-Jun-2009 |
yamt | sync with head
|
1.9.10.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.9.10.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.9.8.2 |
| 17-Jun-2008 |
yamt | sync with head.
|
1.9.8.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.9.6.3 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.9.6.2 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.9.6.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.10.4.2 |
| 27-Jun-2008 |
simonb | Sync with head.
|
1.10.4.1 |
| 18-Jun-2008 |
simonb | Sync with head.
|
1.10.2.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.12.6.1 |
| 18-Mar-2015 |
snj | Pull up following revision(s) (requested by joerg in ticket #1149): sys/compat/linux32/arch/amd64/syscalls.master: revisions 1.52, 1.53 via patch sys/compat/linux32/common/linux32_misc.c: revision 1.17 via patch sys/compat/linux32/common/linux32_stat.c: revision 1.14-1.16 via patch Fix inverted lst_ino/__lst_ino assignment in linux32_from_stat(). -- Cleanup (no functional changes). Kill some unneeded variables and return stattement. Rename linux32_from_stat() to better bsd_to_linux32_stat64(). Fix some types. Add stat/lstat/fstat syscalls. -- Add fstatfs syscall.
|
1.12.4.2 |
| 03-Mar-2009 |
skrll | Sync with HEAD.
|
1.12.4.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.12.2.1 |
| 13-Dec-2008 |
haad | Update haad-dm branch to haad-dm-base2.
|
1.16.2.1 |
| 23-Jul-2009 |
jym | Sync with HEAD.
|
1.18.4.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.18.2.2 |
| 06-Nov-2010 |
uebayasi | Sync with HEAD.
|
1.18.2.1 |
| 17-Aug-2010 |
uebayasi | Sync with HEAD.
|
1.21.8.2 |
| 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.21.8.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.22.14.1 |
| 18-May-2014 |
rmind | sync with head
|
1.22.10.2 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.22.10.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.23.4.2 |
| 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.23.4.1 |
| 17-Jan-2015 |
martin | branches: 1.23.4.1.6; Pull up following revision(s) (requested by maxv in ticket #427): sys/compat/svr4/svr4_schedctl.c: revision 1.8 sys/netinet/tcp_timer.c: revision 1.88 sys/miscfs/genfs/layer_vfsops.c: revision 1.45 sys/compat/svr4/svr4_ioctl.c: revision 1.37 sys/ufs/chfs/chfs_vfsops.c: revision 1.14 sys/miscfs/fdesc/fdesc_vfsops.c: revision 1.91 sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.30 sys/compat/common/kern_time_50.c: revision 1.28 sys/netinet6/ip6_forward.c: revision 1.74 sys/miscfs/umapfs/umap_vnops.c: revision 1.57 sys/compat/svr4/svr4_fcntl.c: revision 1.74 distrib/sets/lists/comp/mi: revision 1.1931 sys/netinet6/udp6_output.c: revision 1.46 sys/fs/puffs/puffs_compat.c: revision 1.3 sys/fs/udf/udf_rename.c: revision 1.11 sys/compat/svr4/svr4_filio.c: revision 1.24 sys/fs/udf/udf_rename.c: revision 1.12 sys/netinet/tcp_usrreq.c: revision 1.202 sys/miscfs/umapfs/umap_subr.c: revision 1.29 sys/compat/linux/common/linux_fadvise64.c: revision 1.3 sys/netinet/if_atm.c: revision 1.34 sys/miscfs/procfs/procfs_subr.c: revision 1.106 sys/miscfs/genfs/layer_subr.c: revision 1.37 sys/netinet/tcp_sack.c: revision 1.30 sys/compat/freebsd/freebsd_misc.c: revision 1.33 sys/compat/freebsd/freebsd_file.c: revision 1.33 sys/ufs/chfs/chfs_vnode.c: revision 1.12 sys/compat/svr4/svr4_ttold.c: revision 1.34 sys/compat/linux/common/linux_file.c: revision 1.114 sys/compat/linux/arch/mips/linux_machdep.c: revision 1.43 sys/compat/linux/common/linux_signal.c: revision 1.76 sys/compat/common/compat_util.c: revision 1.46 sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.18 sys/compat/svr4/svr4_sockio.c: revision 1.36 sys/compat/linux/arch/arm/linux_machdep.c: revision 1.32 sys/compat/svr4/svr4_signal.c: revision 1.66 sys/kern/kern_exec.c: revision 1.410 sys/fs/puffs/puffs_vfsops.c: revision 1.115 sys/compat/svr4/svr4_exec_elf64.c: revision 1.15 sys/compat/linux/arch/i386/linux_machdep.c: revision 1.159 sys/compat/linux/arch/alpha/linux_machdep.c: revision 1.50 sys/compat/linux32/common/linux32_misc.c: revision 1.24 sys/netinet/in_pcb.c: revision 1.153 sys/sys/malloc.h: revision 1.116 sys/compat/common/if_43.c: revision 1.9 share/man/man9/Makefile: revision 1.380 sys/netinet/tcp_vtw.c: revision 1.12 sys/miscfs/umapfs/umap_vfsops.c: revision 1.95 sys/ufs/ext2fs/ext2fs_vfsops.c: revision 1.186 sys/compat/common/uipc_syscalls_43.c: revision 1.46 sys/ufs/ext2fs/ext2fs_vnops.c: revision 1.115 sys/fs/puffs/puffs_msgif.c: revision 1.97 sys/compat/svr4/svr4_ipc.c: revision 1.27 sys/compat/linux/common/linux_exec.c: revision 1.117 sys/ufs/ext2fs/ext2fs_readwrite.c: revision 1.66 sys/netinet/tcp_output.c: revision 1.179 sys/compat/svr4/svr4_termios.c: revision 1.28 sys/fs/udf/udf_strat_bootstrap.c: revision 1.4 sys/fs/puffs/puffs_subr.c: revision 1.67 sys/fs/puffs/puffs_node.c: revision 1.36 sys/miscfs/overlay/overlay_vnops.c: revision 1.21 sys/fs/cd9660/cd9660_node.c: revision 1.34 sys/netinet/raw_ip.c: revision 1.146 sys/sys/mallocvar.h: revision 1.13 sys/miscfs/overlay/overlay_vfsops.c: revision 1.63 share/man/man9/malloc.9: revision 1.50 sys/netinet6/dest6.c: revision 1.18 sys/compat/linux/common/linux_uselib.c: revision 1.33 sys/compat/linux/common/linux_socket.c: revision 1.120 share/man/man9/malloc.9: revision 1.51 sys/netinet/tcp_subr.c: revision 1.257 sys/compat/linux/common/linux_socketcall.c: revision 1.45 sys/compat/linux/common/linux_fadvise64_64.c: revision 1.3 sys/compat/freebsd/freebsd_ipc.c: revision 1.17 sys/compat/linux/common/linux_misc_notalpha.c: revision 1.109 sys/compat/linux/arch/alpha/linux_pipe.c: revision 1.17 sys/netinet6/in6_pcb.c: revision 1.132 sys/netinet6/in6_ifattach.c: revision 1.94 sys/compat/svr4/svr4_exec_elf32.c: revision 1.15 sys/miscfs/nullfs/null_vfsops.c: revision 1.90 sys/fs/cd9660/cd9660_util.c: revision 1.12 sys/compat/linux/arch/powerpc/linux_machdep.c: revision 1.48 sys/compat/freebsd/freebsd_exec_elf32.c: revision 1.20 sys/miscfs/procfs/procfs_vfsops.c: revision 1.94 sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.28 sys/compat/linux/common/linux_sched.c: revision 1.67 sys/compat/linux/common/linux_exec_aout.c: revision 1.67 sys/compat/linux/common/linux_pipe.c: revision 1.67 sys/compat/linux/common/linux_llseek.c: revision 1.34 sys/compat/linux/arch/mips/linux_ptrace.c: revision 1.10 Do not uselessly include <sys/malloc.h>. Cleanup: - remove struct kmembuckets (dead) - correctly deadify MALLOC_XX - remove MALLOC_DEFINE_LIMIT and MALLOC_JUSTDEFINE_LIMIT (dead) - remove malloc_roundup(), malloc_type_setlimit(), MALLOC_DEFINE_LIMIT() and MALLOC_JUSTDEFINE_LIMIT() from man 9 malloc New sentence, new line. Bump date for previous. Obsolete malloc_roundup(9), malloc_type_setlimit(9) and MALLOC_DEFINE_LIMIT(9) man pages.
|
1.23.4.1.6.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.25.6.1 |
| 21-Apr-2017 |
bouyer | Sync with HEAD
|
1.25.4.1 |
| 26-Apr-2017 |
pgoyette | Sync with HEAD
|
1.25.2.1 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
1.26.18.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.26.14.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.26.6.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.30.2.3 |
| 03-Jan-2021 |
thorpej | Add preadv(2) and pwritev(2).
|
1.30.2.2 |
| 17-Dec-2020 |
thorpej | Remove a redundant prototype.
|
1.30.2.1 |
| 16-Dec-2020 |
thorpej | Add eventfd glue to COMPAT_LINUX32.
|