summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_mmap.c
AgeCommit message (Expand)Author
2020-10-07Do not release the KERNEL_LOCK() when mmap(2)ing files.Martin Pieuchot
2020-10-04Recent changes for PROT_NONE pages to not count against resource limits,Theo de Raadt
2020-03-04Do not count pages mapped as PROT_NONE against the RLIMIT_DATA limit.Mark Kettenis
2019-11-29Repurpose the "syscalls must be on a writeable page" mechanism toTheo de Raadt
2019-11-28Remove end of line whitespace.Mike Larkin
2019-11-27Add dummy msyscall(2) system call which is currently a noop. This willTheo de Raadt
2019-06-21Make resource limit access MP-safe. So far, the copy-on-write sharingVisa Hankala
2019-05-11move the noise about W^X mapping failure inside the sysctl kern.wxabortTheo de Raadt
2019-04-02BOGO_PC is an invalid userland address, which indicates kbind() is nowTheo de Raadt
2019-03-01New mmap(2) flag: MAP_CONCEAL.cheloha
2019-01-11mincore() is a relic from the past, exposing physical machine informationTheo de Raadt
2019-01-10Make mincore lie. The nature of shared memory means it can spy on whatTed Unangst
2018-08-15Push back the kernel lock in sys_mmap(2) a little bit more now thatMark Kettenis
2018-04-27Move FREF() inside fd_getfile().Martin Pieuchot
2018-04-12Implement MAP_STACK option for mmap(). Synchronous faults (pagefault andTheo de Raadt
2018-03-27Make sure that programs violating a pledge(2) promise or some memoryMartin Pieuchot
2018-02-19Remove almost unused `flags' argument of suser().Martin Pieuchot
2018-02-11Can mask MAP_STACK by name rather than numberTheo de Raadt
2018-01-15mask out (ie. ignore) the bit which will be MAP_STACK in the future,Theo de Raadt
2018-01-02Stop assuming <sys/file.h> will pull in fcntl.h when _KERNEL is defined.Philip Guenther
2017-11-30__MAP_NOFAULT doesn't make sense with anon mappings, so return EINVAL ifPhilip Guenther
2017-01-21p_comm is the process's command and isn't per thread, so move it fromPhilip Guenther
2016-10-05Display/test/use the process PID, not the thread's TID, in a few places.Philip Guenther
2016-09-16move the uvm_map_addr RB tree from RB macros to the RBT functionsDavid Gwynne
2016-08-18uvm_wxcheck() should only abort the process if kern.wxabort is set.Theo de Raadt
2016-08-08W^X violations are only permitted for binaries marked "wxneeded" onTheo de Raadt
2016-07-13Since mappings established using __MAP_NOFAULT will be converted into anonymousMark Kettenis
2016-07-13Revert previous; the __MAP_NOFAULT test is inverted and the commit message isMark Kettenis
2016-07-13Since mappings established using __MAP_NOFAIL will be converted into anonymousMark Kettenis
2016-06-08Dereference p_p once rather than 4 times.Theo de Raadt
2016-06-08hppa & mips64 now can do the full W^X check. (Make sure you haveTheo de Raadt
2016-06-04If a process trips the W^X violation check, abort it unless it cameStuart Henderson
2016-06-02Prevent vsize_t underflow when checking RLIMIT_DATA, which made theIngo Schwarze
2016-06-01Delete the kernel compat bits for old mmap() MAP_OLD* flagsPhilip Guenther
2016-05-30Identify W^X labelled binaries at execve() time based upon WX_OPENBSD_WXNEEDEDTheo de Raadt
2016-05-30backout to insert correct commit messageTheo de Raadt
2016-05-30*** empty log message ***Theo de Raadt
2016-05-27W^X violations are no longer permitted by default. A kernel log messageTheo de Raadt
2016-05-11remove hppa64 port, which we never got going beyond broken single users.Theo de Raadt
2016-03-29Remove dead assignments and now unused variables.Charles Longeau
2016-03-09remove vaxismsTheo de Raadt
2015-11-11Remove the superfluous typedef uvm_flag_t (unsigned int). Also, fix anmmcc
2015-11-01refactor pledge_*_check and pledge_fail functionsSebastien Marie
2015-10-09Rename tame() to pledge(). This fairly interface has evolved to be moreTheo de Raadt
2015-09-30implement new "prot_exec" tame(2) request:Sebastien Marie
2015-09-28the kernel lock is no longer needed in the fixed case since uvm_mapTed Unangst
2015-09-28add a flag to indicate to uvm_map that it should unmap to make space.Ted Unangst
2015-09-26matthew noticed there's a race where we are using the kernel lock to tieTed Unangst
2015-09-23Corect a kbind comment to describe the version that was settled on: no oldPhilip Guenther
2015-09-06sizes for free(); ok semarieTheo de Raadt