summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_exec.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* remove the Linux emulation code, no longer referenced by anythingnaddy2016-03-021-266/+0
|
* emul_native is only used for kernel threads which can't dump core, soguenther2015-05-051-3/+2
| | | | | | | | | | | delete coredump_trad(), uvm_coredump(), cpu_coredump(), struct md_coredump, and various #includes that are superfluous. This leaves compat_linux processes without a coredump callback. If that ability is desired, someone should update it to use coredump_elf32() and verify the results... ok kettenis@
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-3/+3
| | | | after discussions with beck deraadt kettenis.
* Move p_emul and p_sigcode from proc to process.guenther2014-03-261-8/+8
| | | | | | | | | Tweak the handling of ktrace EMUL when changing ktracing: only generate one per process (not one per thread) and pass the correct proc pointer down to the VFS layer. Permit generating of NAMI and CSW records inside ktrace(2) itself. ok deraadt@ millert@
* spelling; from Maxime Villardderaadt2013-12-021-2/+2
|
* memory leak if copystr() fails, from Maxime Villardderaadt2013-12-021-3/+4
|
* Remove a.out support from compat_linux(8).pirofti2013-11-031-377/+1
| | | | | | Tested with the syscall regression test suite from IBM and Opera. Requested by deraadt@.
* Remove the 'OLF method' used for the transition from a.out to ELF andderaadt2012-09-111-5/+2
| | | | | | | for all the compat layers which are now gone. Linux compat still works because it always used another method in any case, and nothing looks at p_os anymore. ok jsing
* Copy the set_tls_base flag when forking.pirofti2012-06-201-1/+2
| | | | | | | | | | This enables the linux_child_return bits that set the TLS base in the newly forked process. Before this, processes that had the flag set would get a null pointer and segfault when trying to access the TLS area. Chased down and fixed by me. Turned into a proper one line diff by guenther@.
* Add futex support for compat/linux.pirofti2011-09-181-1/+9
| | | | | | | | Based on Emmanuel Dreyfus work with additions, tricks and adaptations by me. Lots of help and reviewing by guenther@ and oga@. Okay guenther@.
* Fix possible NULL dereference for emul data. Okay miod@.pirofti2011-04-201-3/+6
|
* Add set_tid_address() syscall. Lots of help from and okay guenther@.pirofti2011-04-051-6/+22
| | | | | | | | | | This is more than a simple syscall.This expands TLS support quite a bit. Also linux_sys_clone() handles CLONE_CHILD_CLEARTID, CLONE_CHILD_SETTID, CLONE_PARENT_SETTID flags as well as the CLONE_SETTLS by doing what set_thread_area() is doing. Next on the list is futex support which should allow compat to cope with newer Linux kernels.
* Fix function argument list.pirofti2011-04-051-45/+16
|
* Make ELF platforms generate ELF core dumps. Somewhat based on code fromkettenis2009-03-051-1/+4
| | | | | | NetBSD. ok kurt@, drahn@, miod@
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* Be more permissive and try to run non-branded non-static binaries if we canmiod2008-06-121-2/+11
| | | | | | find their interpreter, as the linux ld.so name is unique and not likely to be found in another /emul/foo hierarchy; allows Opera to run again. Noticed by sturm@
* Do not attempt to recognize foreign ELF binaries if emulation is disabled;miod2008-06-121-2/+14
| | | | | also recognize modern Linux binaries without branding, but with a ``GNU'' ABI note.
* - replace the remaining MALLOC/FREE -> malloc/free in sys/compatgilles2007-10-301-6/+7
| | | | ok krw@, ok pyr@
* replace the machine dependant bytes-to-clicks macro by the MI ptoa()martin2007-09-011-2/+2
| | | | | | | | version for i386 more architectures and ctob() replacement is being worked on prodded by and ok miod
* redo (w/ proper changes everywhere ;):mickey2006-01-191-2/+2
| | | | | | take interp[MAXPATHLEN] off the stack. from mickey, ok otto while here, switch above from malloc to pool, remove stupid casts tedu@ miod@ ok
* Missing or incorrect header sizes bounds check; ``looks ok'' mickey@miod2005-12-301-1/+4
|
* rework access to emulations slightly in an effort to both merge andtedu2004-04-151-1/+9
| | | | | | separate exec format from emulation. consistent naming of freebsd emuls. not much in the way of functional changes yet. testing and ok deraadt@ and others along the way.
* emulation is now controlled by sysctl. changes:tedu2003-08-211-1/+3
| | | | | | | | | add e_flags to struct emul. this stores on/off and native flags. check for emul enabled in check_exec(). gather all the emuls into a emulsw so a sysctl can find them. create sysctl. move maxhdrsiz calcualation into init_main so it cleans up sys_execve codepath. teach sysctl utility to grok kern.emul hierarchy. requested and ok deraadt@ some comments from mickey@
* add exec/fork/exit hooks per process for compat emulations.tedu2003-06-211-18/+100
| | | | | | | | | | use them to correctly emulate linux brk. update to TNF copyright in linux_exec.c. from netbsd, mostly from a diff by Kurt Miller in pr3318. this should fix java. no regressions in testing by kurt and sturm@. be prepared for "proc size mismatch" -- recompile ps and friends. ok deraadt@
* First round of __P removal in sysmillert2002-03-141-7/+7
|
* New function vn_marktext - mark a vnode as executing a text image.art2001-11-151-3/+3
| | | | Use where VTEXT was set in vnode flags before. Doesn't do anything else (yet).
* Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.miod2001-11-061-2/+2
| | | | (Look ma, I might have broken the tree)
* Unify elf32 and elf64 code with macros. This forced a renamingart2001-09-191-4/+4
| | | | of a few functions from elf32.
* Unnecessary and redundant includes.art2001-08-111-3/+1
|
* Add a macro to initialize the contents of a vmcmd set.art2001-04-011-3/+2
| | | | Correctly initialize the vmcmds in linux_exec.
* seperate -> separate, okay aaron@provos2000-11-101-2/+2
|
* Use round_page(X) instead of roundup(X, NBPG), use PAGE_SIZE instead of NBPG.art1999-11-261-6/+6
|
* include syscallnames only if compiling w/ SYSCALL_DEBUG.mickey1999-11-101-1/+11
| | | | | was already so for native and sunos, the rest was just wasting space on it. niels@ millert@ ok
* include sys/exec.h before sys/exec_elf.hart1999-09-101-2/+2
|
* branding support and freebsd elfderaadt1999-02-101-2/+6
|
* panic prints a newline for you, don't do it in the panic stringmillert1999-01-111-2/+2
|
* Return EINVAL when msg_iovlen or iovcnt <= 0; Make uio_resid unsigned (size_t) and don't return EINVAL if it is < 0 in sys_{read,write}. Remove check for uio_resid < 0 uiomove() now that uio_resid is unsigned and brack remaining panics with #ifdef DIAGNOSTIC. vn_rdwr() must now take a size_t * ↵millert1998-07-281-2/+3
| | | | as its 9th argument so change that and clean up uses of vn_rdwr(). Fixes 549 + more
* Just alter the tag if it is not already setniklas1998-03-061-2/+3
|
* Remember OS tag when running Linux or SVR4 ELF files. KNF.niklas1998-02-221-32/+34
|
* careful with stackgap handling in execve()deraadt1997-06-171-4/+9
|
* use _{NLIST,KERN}_DO_{AOUT,ELF,ECOFF} to select binary typesderaadt1996-12-231-5/+5
|
* Cleanup execpefo1996-08-311-1/+3
|
* Good fixes and changes from latest Net.mickey1996-04-171-1/+10
|
* initial import of NetBSD treederaadt1995-10-181-0/+502