summaryrefslogtreecommitdiff
path: root/sys/kern/kern_exec.c
AgeCommit message (Expand)Author
2023-07-10Add PS_NOBTCFI, a per-process flag indicating that Branch TargetPhilip Guenther
2023-07-06remove during-development special cases for MNT_WXALLOWED and chrome andTheo de Raadt
2023-05-30spellingJonathan Gray
2023-04-24Abuse the wxallowed flag to decide whether we should enforce branch targetMark Kettenis
2023-02-21for process kills due to execve from non-pinned syscall address, exportTheo de Raadt
2023-02-17Validate execve() libc stub location if kernel knows it. (due to ld.soTheo de Raadt
2023-02-10Adjust knote(9) APIVisa Hankala
2023-01-13Since the signal trampoline is now execute-only we no longer write itMark Kettenis
2023-01-07Add {get,set}thrname(2) for putting thread names in the kernel andPhilip Guenther
2023-01-05after a few trap.c were fixed to fault with the right access, theTheo de Raadt
2022-11-23cache ps_auxinfo inside the kernel, to avoid codedump() reading theMoritz Buhl
2022-11-17stack growth from setrlimit was never updated to set UVM_ET_STACK onTheo de Raadt
2022-10-30Simplfity setregs() by passing it the ps_strings and switchingPhilip Guenther
2022-10-21the debug "name" parameter to uvm_map_immutable() is no longer neededTheo de Raadt
2022-10-21sigaltstack() was adapted to work on mimmutable regions (an unfortunateTheo de Raadt
2022-10-12The sigaltstack() MAP_STACK re-map mechanism is incompatible with immutableTheo de Raadt
2022-10-08The stack can also be marked immutable, because we expect no sane programTheo de Raadt
2022-10-08The signal trampoline and timekeep regions can be marked immutable atTheo de Raadt
2022-10-07Add mimmutable(2) system call which locks the permissions (PROT_*) ofTheo de Raadt
2022-08-14remove unneeded includes in sys/kernJonathan Gray
2022-02-22Start using new _MAXCOMLEN (a proper string expanded to 24 bytesTheo de Raadt
2022-02-07Delete STACKGAPLEN: this exec-time allocation at the top of thePhilip Guenther
2021-12-09We only have one syscall table: inline sysent/SYS_MAXSYSCALL andPhilip Guenther
2021-12-07Delete the last emulation callbacks: we're Just ELF, so declarePhilip Guenther
2021-12-07Continue to delete emulation support: we only have one sigcode andPhilip Guenther
2021-12-07Continue to delete emulation support: since we're Just ELF, the sizePhilip Guenther
2021-12-06Start to delete emulation support: since we're Just ELF, makePhilip Guenther
2021-03-16handle theoretical case of sigfillsz not being pow2-sized on someTheo de Raadt
2021-03-12Kill SINGLE_PTRACE and use SINGLE_SUSPEND which has almost the same semanticMartin Pieuchot
2021-03-08Revert commitid: AZrsCSWEYDm7XWuv;Claudio Jeker
2021-03-08Kill SINGLE_PTRACE and use SINGLE_SUSPEND which has almost the same semantic.Martin Pieuchot
2020-10-15_exit(2), execve(2): tweak per-process interval timer cancellationcheloha
2020-10-15_exit(2), execve(2): cancel per-process interval timers safelycheloha
2020-07-11timekeep_sz now already includes the round_page() adjustment; ok kettenis@Christian Weisgerber
2020-07-07small typoTheo de Raadt
2020-07-06Wire down the timekeep page. If we don't do this, the pagedaemon mayMark Kettenis
2020-07-06Add support for timeconting in userland.Paul Irofti
2020-02-15Consistently perform atomic writes to the ps_flags field of structanton
2019-12-11Replace p_xstat with ps_xexit and ps_xsigPhilip Guenther
2019-12-01comply with POSIX and make execve() return EACCES for directoriesChristian Weisgerber
2019-11-29Repurpose the "syscalls must be on a writeable page" mechanism toTheo de Raadt
2019-11-05Kill uvm_deallocate(9) and use uvm_unmap() directly.Martin Pieuchot
2019-08-02per-process itimers: itimerval -> itimerspeccheloha
2019-07-15Do not relock fdp in fdrelease(). This prevents unnecessary lockingVisa Hankala
2019-06-21Make resource limit access MP-safe. So far, the copy-on-write sharingVisa Hankala
2019-06-01Revert to using the SCHED_LOCK() to protect time accounting.Martin Pieuchot
2019-05-31Use a per-process mutex to protect time accounting instead of SCHED_LOCK().Martin Pieuchot
2019-02-08Fix stack info leak in execve(2). There are 2x4 bytes of paddingAlexander Bluhm
2018-10-30If we execute a #!shell binary, the shell is an integral part of theTheo de Raadt
2018-08-05Decouple unveil from the pledge flags, by adding dedicated unveil flagsBob Beck