aboutsummaryrefslogtreecommitdiff
path: root/exec
Commit message (Collapse)AuthorAgeFilesLines
* fix common misspellingsJonathan Neuschäfer2011-08-202-2/+2
| | | | | | * Fix spelling with codespell[1] and manually review it. [1] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
* Add comment about finish being called several timesSamuel Thibault2011-02-141-1/+3
|
* Protect exec from memory faultsSamuel Thibault2010-09-141-6/+16
| | | | | | | * exec/exec.c (load_section): Call i`hurd_safe_copyin' instead of `memcpy'. Handle error case. (check_gzip): Likewise. (check_bzip2): Likewise.
* Fix compressed binaries executionSamuel Thibault2010-09-141-4/+6
| | | | | | | | * exec/exec.c (check_gzip.zipread): Add `n' to `zipread_pos' to fix infinite loop. (check_bzip2.zipread): Likewise. (check_gzip): Set `file_data' and `file_size' fields after calling `finish' instead of before. (check_bzip2): Likewise.
* Fix in-memory mappingSamuel Thibault2010-09-141-2/+7
| | | | | | * exec/exec.c (map): When e->file_data is not NULL, return it plus `posn'. (prepare_in_memory): Call prepare_stream to clear stream positions.
* Fix "make dist" in `exec'.Ludovic Courtès2010-08-011-4/+8
| | | | | | | * exec/Makefile (SRCS): Refer to `$(gzip-sources)' and `$(bzip2-sources)' instead of listing files individually. (gzip-sources, bzip2-sources): New variable. (gzip-objects, bzip2-objects): Derive from the above variables.
* Fix exec shell check for really small filesSamuel Thibault2009-12-261-2/+6
| | | | | | * exec/hashexec.c (check_hashbang): Set `e->error' to 0 before calling map(). On error, check `e->error' instead of `errno', and default `e->error' to ENOEXEC.
* Fix duplicate oldtask port deallocationSamuel Thibault2009-12-211-2/+0
| | | | | | * exec/exec.c (do_exec): Do not deallocate oldtask when newtask != oldtask before the `out:' label since it is done again after it.
* Fixes long-standing random hang of exec.Samuel Thibault2009-08-231-2/+5
| | | | | * exec.c (finish): Set FILE_DATA and MAP_BUFFER members of E to NULL after freeing them.
* Switch to the new ChangeLog style.Thomas Schwinge2009-07-111-1082/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ChangeLog: Wipe out content, and add instructions about how to get it back. * auth/ChangeLog: Remove file. * benchmarks/ChangeLog: Likewise. * boot/ChangeLog: Likewise. * bsdfsck/ChangeLog: Likewise. * config/ChangeLog: Likewise. * console-client/ChangeLog: Likewise. * console/ChangeLog: Likewise. * daemons/ChangeLog: Likewise. * defpager/ChangeLog: Likewise. * doc/ChangeLog: Likewise. * exec/ChangeLog: Likewise. * ext2fs/ChangeLog: Likewise. * fatfs/ChangeLog: Likewise. * fstests/ChangeLog: Likewise. * ftpfs/ChangeLog: Likewise. * hostmux/ChangeLog: Likewise. * hurd/ChangeLog: Likewise. * include/ChangeLog: Likewise. * init/ChangeLog: Likewise. * isofs/ChangeLog: Likewise. * libcons/ChangeLog: Likewise. * libdirmgt/ChangeLog: Likewise. * libdiskfs/ChangeLog: Likewise. * libfshelp/ChangeLog: Likewise. * libftpconn/ChangeLog: Likewise. * libhurdbugaddr/ChangeLog: Likewise. * libihash/ChangeLog: Likewise. * libiohelp/ChangeLog: Likewise. * libnetfs/ChangeLog: Likewise. * libpager/ChangeLog: Likewise. * libpipe/ChangeLog: Likewise. * libports/ChangeLog: Likewise. * libps/ChangeLog: Likewise. * libshouldbeinlibc/ChangeLog: Likewise. * libstore/ChangeLog: Likewise. * libthreads/ChangeLog: Likewise. * libtrivfs/ChangeLog: Likewise. * login/ChangeLog: Likewise. * mach-defpager/ChangeLog: Likewise. * nfs/ChangeLog: Likewise. * nfsd/ChangeLog: Likewise. * pfinet/ChangeLog: Likewise. * pflocal/ChangeLog: Likewise. * proc/ChangeLog: Likewise. * release/ChangeLog: Likewise. * serverboot/ChangeLog: Likewise. * storeio/ChangeLog: Likewise. * sutils/ChangeLog: Likewise. * term/ChangeLog: Likewise. * tmpfs/ChangeLog: Likewise. * trans/ChangeLog: Likewise. * ufs-fsck/ChangeLog: Likewise. * ufs-utils/ChangeLog: Likewise. * ufs/ChangeLog: Likewise. * usermux/ChangeLog: Likewise. * utils/ChangeLog: Likewise.
* 2009-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>Samuel Thibault2009-04-022-3/+8
| | | | | * exec.c (prepare): Call PREPARE_STREAM earlier to permit calling finish_mapping on E even after errors, as is already done in do_exec.
* Update copyright years.Thomas Schwinge2008-07-011-1/+1
|
* * elfcore.c (TIME_VALUE_TO_TIMESPEC): Completely implement instead ofSamuel Thibault2008-06-102-5/+18
| | | | | | casting `time_value *' into `struct timeval *'. (dump_core): Reimplement timeradd instead of casting `time_value *' into `struct timeval *'.
* (check_elf_phdr): Fix typo in last change.Roland McGrath2004-10-231-1/+1
|
* .Roland McGrath2004-10-221-0/+7
|
* 2004-10-22 Roland McGrath <roland@frob.com>Roland McGrath2004-10-221-8/+25
| | | | | | | * exec.c (check_elf_phdr): Return early on setting ENOEXEC. Only touch E->info.elf.phdr_addr once, on the PT_LOAD segment that actually contains the e_phoff location in the file. (do_exec): If E.info.elf.phdr_addr is zero, don't set BOOT->phdr_size.
* (check_elf_phdr): Tweak last change.Roland McGrath2004-09-261-0/+2
|
* .Roland McGrath2004-09-261-0/+8
|
* 2004-09-26 Roland McGrath <roland@frob.com>Roland McGrath2004-09-262-17/+10
| | | | | | | | * priv.h (struct execdata.info.elf): New field `phdr_addr'. * exec.c (check_elf): Set E->info.elf.phdr_addr here from e_phoff. (check_elf_phdr): Don't check for PT_PHDR, remove last two args. (do_exec): Update callers. Set BOOT->phdr_addr and BOOT->phdr_size using info saved by check_elf.
* .Roland McGrath2004-02-111-0/+6
|
* 2004-02-11 Roland McGrath <roland@frob.com>Roland McGrath2004-02-111-21/+27
| | | | | | * exec.c (servercopy): Change signature to avoid casted arguments. Update callers. (do_exec, S_exec_setexecdata): Update callers.
* .Roland McGrath2004-02-101-0/+15
|
* 2004-01-15 Roland McGrath <roland@frob.com>Roland McGrath2004-02-102-2/+23
| | | | | | | * priv.h (struct execdata.info.elf): Add `execstack' flag. * exec.c (check_elf_phdr): Set it according to PT_GNU_STACK's PF_X flag bit. If no PT_GNU_STACK, default to set. (do_exec): If flag is clear, remove execute permission from stack.
* 2004-02-10 Roland McGrath <roland@frob.com>Roland McGrath2004-02-101-10/+10
| | | | | | | | * elfcore.c (dump_core): Include null terminator in note name size, and round up to four byte alignment. (dump_core: write_note): Don't round OFFSET after each partial write. (dump_core): Don't round up to page size before writing notes. Do round up to page size for offset of each PT_LOAD region.
* .Roland McGrath2002-09-171-0/+5
|
* 2002-09-17 Roland McGrath <roland@frob.com>Roland McGrath2002-09-171-8/+21
| | | | | * elfcore.c [i386_THREAD_STATE] (fetch_thread_regset): The two types are not actually identical, must rearrange some members a little.
* .Roland McGrath2002-06-131-0/+4
|
* 2002-06-13 Roland McGrath <roland@frob.com>Roland McGrath2002-06-131-3/+0
| | | | * priv.h (trivfs_protid_t): Type removed (now in trivfs.h).
* .Roland McGrath2002-05-291-0/+6
|
* 2002-05-29 Roland McGrath <roland@frob.com>Roland McGrath2002-05-291-1/+1
| | | | * elfcore.c (dump_core): int -> size_t
* 2002-05-29 Roland McGrath <roland@frob.com>Roland McGrath2002-05-291-9/+12
| | | | * hashexec.c (check_hashbang): Fix fs id port arg in io_identity call.
* (prepare): fix last changeRoland McGrath2002-05-111-4/+1
|
* .Roland McGrath2002-05-101-0/+5
|
* 2002-05-10 Roland McGrath <roland@frob.com>Roland McGrath2002-05-101-11/+12
| | | | | * exec.c (prepare): Do io_stat when io_map fails as for when io_map_cntl fails.
* .Roland McGrath2002-05-031-0/+6
|
* 2002-05-01 Roland McGrath <roland@frob.com>Roland McGrath2002-05-031-0/+28
| | | | | | * elfcore.c [ALPHA_THREAD_STATE] (ELF_MACHINE, fetch_thread_regset, fetch_thread_fpregset): New definitions for Alpha CPU.
* .Roland McGrath2002-04-271-0/+6
|
* 2002-04-27 Roland McGrath <roland@frob.com>Roland McGrath2002-04-274-23/+25
| | | | | | * priv.h: Include <link.h> to get ElfW macro. * priv.h, exec.c, main.c, hostarch.c: Use `ElfW(TYPE)' in place of `Elf32_TYPE' throughout.
* dead file removedRoland McGrath2002-03-111-264/+0
|
* .Roland McGrath2002-03-111-0/+9
|
* 2002-03-11 Roland McGrath <roland@frob.com>Roland McGrath2002-03-111-68/+138
| | | | | | * elfcore.c: New file, used by crash server (../trans) to write ELF core dump files. Thanks to Jon Arney <jarney1@cox.net> for spurring me to write this, and for helping to test and debug it.
* 2002-03-11 Roland McGrath <roland@frob.com>Roland McGrath2002-03-111-2/+2
| | | | | * core.c: File removed. * Makefile (DIST_FILES): Remove core.c from the list.
* (dump_core): Missing munmapRoland McGrath2002-03-111-0/+4
|
* Prototype code to produce the NT_PSINFO note.Roland McGrath2002-03-111-7/+115
|
* Fixed some little bugs in the prototype code.Roland McGrath2002-03-091-17/+16
|
* Untested code.Roland McGrath2002-03-081-88/+326
|
* .Roland McGrath2002-01-021-0/+5
|
* 2002-01-02 Roland McGrath <roland@frob.com>Roland McGrath2002-01-021-1/+5
| | | | | * exec.c (do_exec) [KERN_INVALID_LEDGER]: Pass extra arguments to task_create for OSF variant.
* .Roland McGrath2002-01-021-0/+4
|
* 2002-01-01 Roland McGrath <roland@frob.com>Roland McGrath2002-01-021-0/+2
| | | | * execmutations.h (SERVERCOPY): New macro.