summaryrefslogtreecommitdiffstats
path: root/sys/kern/exec_elf.c
AgeCommit message (Expand)AuthorFilesLines
2020-01-25The ELF NOTE parser would only inspect the first NOTE for 'OpenBSD'.deraadt1-55/+77
2019-12-09typoderaadt1-2/+2
2019-11-29Repurpose the "syscalls must be on a writeable page" mechanism toderaadt1-2/+15
2019-05-13When killing a process, the signal is handled by any thread thatbluhm1-2/+2
2019-05-11wxneeded binaries on wxallowed filesystems were refused execution. We havederaadt1-14/+1
2019-05-09If mallocing the array program header fails, give up on coredumpingguenther1-2/+4
2019-04-20#define ELFROUNDSIZE 4 /* XXX Should it be sizeof(Elf_Word)? */deraadt1-2/+2
2018-12-06Core files with >65535 sections have to use PN_XNUM and a section headerguenther1-8/+65
2018-08-05Decouple unveil from the pledge flags, by adding dedicated unveil flagsbeck1-1/+2
2018-07-20Remove a few leftovers from the days of emulation, which could result inderaadt1-3/+2
2018-07-20Fail if a PT_LOAD segment has a memory size of 0. This prevents a panickettenis1-3/+7
2018-07-10Move from sendsig() to its callers the initsiginfo() calls andguenther1-2/+1
2017-12-30Don't pull in <sys/file.h> just to get fcntl.hguenther1-2/+2
2017-09-07In elf_load_file() to not call free(9) with an uninitialized sizebluhm1-2/+2
2017-03-20Initialize the stack buffer used to build the auxiliary vector to zero tokettenis1-1/+2
2017-03-05Generating a coredump requires walking the map twice; changeguenther1-125/+118
2017-02-11Correct the entry point and base address calculations for anguenther1-2/+4
2017-02-08Remove support for forcing the ELF interpreter to a specific address,guenther1-21/+12
2017-02-08In exec_elf.c: expand ELFNAME(), ELFNAME2(), and ELFNAMEEND() exceptguenther1-78/+77
2017-02-08Move ELF_AUX_ENTRIES from exec_elf.h to exec_elf.c; it's totally internalguenther1-1/+6
2017-02-08Change ELFNAME(read_from)'s buf parameter to be void*, eliminating a castguenther1-9/+8
2017-02-08elf{32,64}_check_brand() isn't used; delete itguenther1-13/+1
2017-02-08Provide size-generic ELF_NO_ADDR in <sys/exec_elf.h> and use that insteadguenther1-11/+11
2017-02-05Since we expect to never do binary compat with other OSes again,guenther1-23/+5
2017-01-21p_comm is the process's command and isn't per thread, so move it fromguenther1-2/+2
2016-11-07Split PID from TID, giving processes a PID unrelated to the TID of theirguenther1-2/+2
2016-10-05Display/test/use the process PID, not the thread's TID, in a few places.guenther1-2/+2
2016-09-12When trying to run an ELF binary marked PT_OPENBSD_WXNEEDED from aschwarze1-5/+6
2016-06-11Since epp->ep_name is a userland pointer, use copyinstr(9) to get a copy okkettenis1-2/+5
2016-06-08Enforce W^X and map W|X segments without X permission initially. Thekettenis1-2/+9
2016-05-30Identify W^X labelled binaries at execve() time based upon WX_OPENBSD_WXNEEDEDderaadt1-1/+19
2016-05-30backout to insert correct commit messagederaadt1-19/+1
2016-05-30*** empty log message ***deraadt1-1/+19
2016-05-10SROP mitigation. sendsig() stores a (per-process ^ &sigcontext) cookiederaadt1-2/+3
2016-02-28Support for running Linux binaries under emulation is going away.naddy1-8/+1
2015-11-02move the pledgenote annotation from `struct proc' to `struct nameidata'semarie1-2/+2
2015-10-28Paranoa: p_pledgenote the NAMEI for ld.so loadingderaadt1-1/+3
2015-09-28Track size of an opaque allocation to pass to free() laterderaadt1-3/+4
2015-04-30Now we use p_filesz - 1 to test for NUL check that p_filesz isjsg1-2/+2
2015-04-30Error out if the PT_INTERP segment isn't NUL terminatedguenther1-1/+3
2015-04-26Require a PT_LOAD segment's p_filesz to be no larger than its p_memsz.guenther1-1/+7
2015-03-30Extend uvm_map_hint() to get an address range as extra arguments, and makemiod1-2/+3
2015-02-10Don't use an uninitialized variable when a PT_LOAD segment withguenther1-11/+10
2015-02-06Raise ELF_RANDOMIZE_LIMIT to 64K, so that programs and libraries canderaadt1-4/+1
2015-01-27Require EFT shared objects have a PT_PHDR entry to be consideredkurt1-5/+11
2015-01-20Move ps_strings "after" the random stackgap. This makes its location akettenis1-2/+2
2014-12-22Make it possible to execute PIE binaries that don't have an PT_INTERP segmentkettenis1-9/+12
2014-12-16primary change: move uvm_vnode out of vnode, keeping only a pointer.tedu1-1/+3
2014-11-16Replace a plethora of historical protection options with justderaadt1-10/+10
2014-11-14prefer sizeof(*ptr) to sizeof(struct) for malloc and freetedu1-2/+2