Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | size for free() | 2015-08-29 | 1 | -2/+3 | |
| | |||||
* | Remove some includes include-what-you-use claims don't | 2015-03-14 | 1 | -2/+1 | |
| | | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@ | ||||
* | In exec_setup_stack(), move the stack in the right direction if | 2015-02-16 | 1 | -1/+6 | |
| | | | | MACHINE_STACK_GROWS_UP. | ||||
* | Change the way stackgap_random is applied. Instead of applying it within the | 2015-02-09 | 1 | -1/+10 | |
| | | | | | | fixed stack area of the exec'd image, and risking hitting process limits, should we want to increase stackgap_random, the randomness is applied to the stack region in the process' vmspace. | ||||
* | Raise ELF_RANDOMIZE_LIMIT to 64K, so that programs and libraries can | 2015-02-06 | 1 | -6/+18 | |
| | | | | | | | legitimately use random section variables without execve failures... Because this section is not demand faulted, yield() every page during the fill otherwise the costs are charged poorly. ok tedu matthew | ||||
* | Prefer MADV_* over POSIX_MADV_* in kernel for consistency: the latter | 2014-12-17 | 1 | -5/+4 | |
| | | | | | | doesn't have all the values and therefore can't be used everywhere. ok deraadt@ kettenis@ | ||||
* | primary change: move uvm_vnode out of vnode, keeping only a pointer. | 2014-12-16 | 1 | -1/+3 | |
| | | | | | | objective: vnode.h doesn't include uvm_extern.h anymore. followup changes: include uvm_extern.h or lock.h where necessary. ok and help from deraadt | ||||
* | Use MAP_INHERIT_* for the 'inh' argument to the UMV_MAPFLAG() macro, | 2014-12-15 | 1 | -4/+4 | |
| | | | | | | eliminating the must-be-kept-in-sync UVM_INH_* macros ok deraadt@ tedu@ | ||||
* | convert bcopy to memcpy. ok millert | 2014-12-10 | 1 | -2/+2 | |
| | |||||
* | move arc4random prototype to systm.h. more appropriate for most code | 2014-11-18 | 1 | -3/+1 | |
| | | | | to include that than rdnvar.h. ok deraadt dlg | ||||
* | Delete a comment that was obsoleted by the switch to UVM | 2014-11-16 | 1 | -12/+4 | |
| | | | | vmcmd_map_zero() just returns the result of uvm_map(), so make it a tail call | ||||
* | Replace a plethora of historical protection options with just | 2014-11-16 | 1 | -13/+13 | |
| | | | | | | | PROT_NONE, PROT_READ, PROT_WRITE, and PROT_EXEC from mman.h. PROT_MASK is introduced as the one true way of extracting those bits. Remove UVM_ADV_* wrapper, using the standard names. ok doug guenther kettenis | ||||
* | prefer sizeof(*ptr) to sizeof(struct) for malloc and free | 2014-11-14 | 1 | -4/+4 | |
| | |||||
* | pass size argument to free() | 2014-11-03 | 1 | -3/+3 | |
| | | | | ok doug tedu | ||||
* | use mallocarray where arguments are multipled. ok deraadt | 2014-07-13 | 1 | -2/+2 | |
| | |||||
* | add a size argument to free. will be used soon, but for now default to 0. | 2014-07-12 | 1 | -4/+4 | |
| | | | | after discussions with beck deraadt kettenis. | ||||
* | decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.h | 2014-07-08 | 1 | -2/+1 | |
| | | | | | don't need to be married. ok guenther miod beck jsing kettenis | ||||
* | Use real parameter types for u{dv,vn}_attach() instead of void * | 2014-07-02 | 1 | -2/+2 | |
| | | | | ok guenther | ||||
* | When vmcmd_map_readvn() maps in the page it reads into, it forces | 2014-05-29 | 1 | -3/+3 | |
| | | | | | | | | it to be writable but otherwise uses the correct final permissions. Ergo, it only needs to call uvm_map_protect() if the requested permissions didn't include UVM_PROT_WRITE. ok beck@ | ||||
* | Reduce uvm include madness. Use <uvm/uvm_extern.h> instead of | 2014-03-28 | 1 | -2/+2 | |
| | | | | | | <uvm/uvm.h> if possible and remove double inclusions. ok beck@, mlarkin@, deraadt@ | ||||
* | repair typo talking about a.out | 2013-10-15 | 1 | -3/+2 | |
| | |||||
* | Add support for .openbsd.randomdata sections and PT_OPENBSD_RANDOMIZE | 2012-08-20 | 1 | -1/+26 | |
| | | | | | | | | segments to the kernel, ld (2.15), and ld.so. Tested on alpha, amd64, i386, macppc, and sparc64 (thanks naddy, mpi, and okan!). Idea discussed for some time; committing now for further testing. ok deraadt | ||||
* | ansi with a little knf. ok deraadt jsg | 2011-06-29 | 1 | -28/+15 | |
| | |||||
* | grammar, spelling, and style fixes from bret lambert; | 2006-11-14 | 1 | -2/+2 | |
| | | | | kern_descrip.c change ok deraadt | ||||
* | don't call vn_rdwr() with IO_NODELOCKED when the vnode actually isn't | 2006-07-26 | 1 | -2/+2 | |
| | | | | | | locked; with this diff VFSDEBUG kernels can boot again ok pedro, thib (who came up with the same diff) | ||||
* | fix typo in comment | 2004-11-23 | 1 | -2/+2 | |
| | | | | ok deraadt@ markus@ | ||||
* | vmcmd_map_readvn - don't map the initial mapping with X unless the | 2003-05-09 | 1 | -7/+9 | |
| | | | | | | | final protection has an X. Doesn't really change anything except reducing I$ flushing. niklas@ ok | ||||
* | simplify stack grownups (growndowns are not touched) | 2002-12-19 | 1 | -6/+7 | |
| | |||||
* | Eliminate the use of KERN_SUCCESS outside of uvm/ | 2002-11-06 | 1 | -11/+10 | |
| | | | | | | | | Also uvm_map returns KERN_* codes that are directly mapped to errnos, so we can return them instead of doing some attempt to translation. drahn@ "I see no problem" pval@ "makes sense" | ||||
* | Remove a diagnostic check that I added when reorganizing the code. | 2002-10-07 | 1 | -5/+1 | |
| | | | | | It triggers on ppc and while the check itself is correct, it's better to fix the bug before breaking peoples systems. | ||||
* | Move out the execution of vmcmds into a separate function. | 2002-10-06 | 1 | -3/+36 | |
| | |||||
* | make it compile w/ DEBUG by syncing w/ exec.h; deraadt@ ok | 2002-10-02 | 1 | -2/+4 | |
| | |||||
* | Map stack pages without VM_PROT_EXECUTE. Notice that right now this | 2002-07-21 | 1 | -3/+3 | |
| | | | | doesn't do anything since no pmap implements exec protection yet. | ||||
* | First round of __P removal in sys | 2002-03-14 | 1 | -2/+2 | |
| | |||||
* | UBC was a disaster. It worked very good when it worked, but on some | 2001-12-19 | 1 | -8/+21 | |
| | | | | | | | | | machines or some configurations or in some phase of the moon (we actually don't know when or why) files disappeared. Since we've not been able to track down the problem in two weeks intense debugging and we need -current to be stable, back out everything to a state it had before UBC. We apologise for the inconvenience. | ||||
* | Sync in more uvm changes from NetBSD. | 2001-11-28 | 1 | -29/+14 | |
| | | | | | This time we're getting rid of KERN_* and VM_PAGER_* error codes and use errnos instead. | ||||
* | Merge in the unified buffer cache code as found in NetBSD 2001/03/10. The | 2001-11-27 | 1 | -1/+2 | |
| | | | | | | | code is written mostly by Chuck Silvers <chuq@chuq.com>/<chs@netbsd.org>. Tested for the past few weeks by many developers, should be in a pretty stable state, but will require optimizations and additional cleanups. | ||||
* | Add an alignment argument to uvm_map that specifies an alignment hint | 2001-11-07 | 1 | -4/+4 | |
| | | | | for the virtual address. | ||||
* | Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary. | 2001-11-06 | 1 | -3/+1 | |
| | | | | (Look ma, I might have broken the tree) | ||||
* | remove old vm | 2001-06-27 | 1 | -29/+1 | |
| | |||||
* | KNF | 2001-06-22 | 1 | -28/+27 | |
| | |||||
* | ELF uses more than 5 vmcmds by default, so grow the default vmcmd set size | 2001-02-22 | 1 | -13/+16 | |
| | | | | | | | | | | | to 8. At the same time it seemed like a good idea to avoid to always malloc a new vmcmd array, so put the default sized array into struct exec_vmcmd_set. We might want to make a linked list of vmcmd arrays or exec_vmcmd_sets instead of reallocating them some time in the future, but right now this seems like a waste of time. | ||||
* | Don't bomb when the length of pagedvn vm_cmd is not page aligned. | 2000-11-06 | 1 | -2/+3 | |
| | | | | Other commands were checked and look safe. | ||||
* | Don't use MALLOC/FREE on variable sized allocations. | 2000-09-26 | 1 | -6/+5 | |
| | |||||
* | more stack direction fixes; art@ ok | 1999-11-05 | 1 | -1/+14 | |
| | |||||
* | a new way of mapping in exec for uvm | 1999-02-26 | 1 | -1/+100 | |
| | |||||
* | 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 * ↵ | 1998-07-28 | 1 | -2/+2 | |
| | | | | as its 9th argument so change that and clean up uses of vn_rdwr(). Fixes 549 + more | ||||
* | OpenBSD tags | 1997-02-24 | 1 | -0/+1 | |
| | |||||
* | round RLIMIT_STACK; problem spotted by jfw@jfwhome.funhousecom | 1997-02-14 | 1 | -1/+1 | |
| | |||||
* | use _{NLIST,KERN}_DO_{AOUT,ELF,ECOFF} to select binary types | 1996-12-23 | 1 | -0/+45 | |
| |