Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | MALLOC_STATS tweaks, by default not compiled in | 2016-11-04 | 1 | -13/+29 | |
| | |||||
* | small tweak to also check canaries if F is in effect | 2016-11-03 | 1 | -3/+5 | |
| | |||||
* | remove some old option letters and also make P non-settable. It has | 2016-10-31 | 1 | -24/+6 | |
| | | | | | been the default for ages, and I see no valid reason to be able to disable it. ok natano@ | ||||
* | include float.h for the LDBL_MAX_EXP cpp test in floatio.h | 2016-10-30 | 2 | -2/+4 | |
| | |||||
* | Pages in the malloc cache are either reused quickly or unmapped | 2016-10-28 | 1 | -14/+1 | |
| | | | | | | quickly. In both cases it does not make sense to set hints on them. So remove that option, which is just a remainder of old times when malloc used to hold on to pages. ok stefan@ | ||||
* | For consistency, allow symlinkat(2) in the same way as symlink(2); | 2016-10-27 | 1 | -4/+5 | |
| | | | | | | no need to wait until the first program using it breaks... "could make sense" semarie@ (and thanks for the cluestick) OK deraadt@ | ||||
* | $OpenBSD$ | 2016-10-22 | 3 | -0/+3 | |
| | |||||
* | - fix MALLOC_STATS compile | 2016-10-22 | 1 | -3/+6 | |
| | | | | - redundant cast is redundant | ||||
* | fix some void * arithmetic by casting | 2016-10-21 | 1 | -4/+4 | |
| | |||||
* | and recommit with fixed GC | 2016-10-21 | 1 | -103/+112 | |
| | |||||
* | backout for now; flag combination GC is not ok | 2016-10-20 | 1 | -110/+103 | |
| | |||||
* | avoid sentence splicing; | 2016-10-20 | 1 | -2/+2 | |
| | |||||
* | canary corruption message changed a bit | 2016-10-20 | 1 | -5/+5 | |
| | |||||
* | Also place canaries in > page sized objects (if C is in effect); ok tb@ | 2016-10-20 | 1 | -103/+110 | |
| | |||||
* | Remove the save_errno dance inside strerror_r(3). It is from the | 2016-10-19 | 1 | -5/+3 | |
| | | | | | time when we had national language support. OK millert@ | ||||
* | Use the reentrant strerror_r() instead of strerror() to expand %m. | 2016-10-19 | 1 | -10/+5 | |
| | | | | | Previously, syslog_r() would avoid calling strerror() since the latter is not reentrant. OK bluhm@ | ||||
* | note that SO_REUSEADDR is restricted to callers with the same uid or root; | 2016-10-19 | 1 | -4/+5 | |
| | | | | | | | while there, super-user -> superuser for internal consistency; diff from kirill miazine, tweaked by myself; ok deraadt millert guenther | ||||
* | Avoid generate SIGTTOU when restoring the terminal mode. If we get | 2016-10-18 | 1 | -1/+5 | |
| | | | | | | | | | SIGTTOU it means the process is not in the foreground process group which, in most cases, means that the shell has taken control of the tty. Requiring the user the fg the process in this case doesn't make sense and can result in both SIGTSTP and SIGTTOU being sent which can lead to the process being suspended again immediately after being brought into the foreground. | ||||
* | Roll back uintptr_t cast changes after discussions with tedu, otto and | 2016-10-16 | 3 | -24/+7 | |
| | | | | | | | | | | | | | others. C11 6.5.6.9 says: When two pointers are subtracted, both shall point to elements of the same array object, or one past the last element of the array object; the result is the difference of the subscripts of the two array elements. In these cases the objects are arrays of char so the result is defined, and we believe that the report is based on a compiler incorrectly trapping on defined behaviour. | ||||
* | Wrap _malloc_init() so internal calls go directly | 2016-10-15 | 2 | -2/+6 | |
| | | | | | prodded by otto@ ok kettenis@ otto@ | ||||
* | Cast pointers to uintptr_t to avoid potential signedness errors. | 2016-10-14 | 3 | -7/+24 | |
| | | | | | Based on patch from yuanjie.huang at windriver.com via OpenSSH bz#2608, with & ok millert, ok deraadt. | ||||
* | 0xd0 -> 0xdb; ok deraadt@ millert@ tedu@ | 2016-10-14 | 1 | -3/+3 | |
| | |||||
* | optimize canary code a bit by storing offset of sizes table instead of | 2016-10-12 | 1 | -5/+7 | |
| | | | | recomputing it all the time | ||||
* | make clear the length printed is the requested length | 2016-10-08 | 1 | -3/+3 | |
| | |||||
* | sort; | 2016-10-07 | 1 | -5/+5 | |
| | |||||
* | introduce a sysctl to hijack dns sockets. when set to a port number, | 2016-10-07 | 1 | -2/+6 | |
| | | | | | | | all dns socket connections will be redirected to localhost:port. this could be a sockopt on the listening socket, but sysctl is an easier interface to work with right now. ok deraadt | ||||
* | rss limit is no longer enforced. noticed by Raimo Niskanen | 2016-10-07 | 1 | -5/+3 | |
| | |||||
* | grammar fix previous; | 2016-10-07 | 1 | -2/+2 | |
| | |||||
* | document "chunk canary corrupted" error | 2016-10-07 | 1 | -2/+7 | |
| | |||||
* | stray tab | 2016-10-07 | 1 | -2/+2 | |
| | |||||
* | Beter implementation of chunk canaries: store size in chunk meta data | 2016-10-07 | 1 | -61/+63 | |
| | | | | instead of chunk itself; does not change actual allocated size; ok tedu@ | ||||
* | Use the userspace-visible thread register directly in __cerror instead | 2016-10-04 | 1 | -6/+8 | |
| | | | | | | | of indirecting through __errno(). Register naming tweaks and clang testing by patrick@ and jsg@ ok kettenis@ | ||||
* | Make read(2) return EISDIR on directories. | 2016-09-30 | 1 | -4/+6 | |
| | | | | | | | | | | | Years ago Theo made read(2) return 0 on directories, instead of dumping the directory content. Another behavior is allowed as an extension by POSIX, returning an EISDIR error, as used on a few other systems. This behavior is deemed more useful as it helps spotting errors. This implies that it might break some setups. Ports bulk builds by ajacoutot@ and naddy@, ok millert@ bluhm@ naddy@ deraadt@ | ||||
* | use the same template for describing securelevel interaction; | 2016-09-28 | 1 | -11/+15 | |
| | |||||
* | document kern.allowkmem; ok deraadt | 2016-09-28 | 1 | -2/+10 | |
| | |||||
* | sigsetmask() and sigblock() are no longer used by any setjmp implementation | 2016-09-26 | 2 | -5/+3 | |
| | | | | | so the internal hidden names are unused; switch to PROTO_DEPRECATED() and drop the DEF_WEAK()s | ||||
* | Fix matching when all of user, host and domain are specified. | 2016-09-24 | 1 | -10/+8 | |
| | | | | OK guenther@ | ||||
* | s/alloctaed/allocated/ in comment | 2016-09-23 | 1 | -2/+2 | |
| | |||||
* | Switch from calling obsolete sig{block,setmask} to directly using the | 2016-09-22 | 3 | -76/+42 | |
| | | | | | | | | sigprocmask syscall. abort() can't return, so simplify the call, and use the internal name to avoid the PLT. no-return observation by Miod Vallat, testing by aoyama@ | ||||
* | m88k switched to RELRO | 2016-09-22 | 1 | -6/+0 | |
| | |||||
* | Simplify __cerror now that %r27 is always the TCB pointer. | 2016-09-22 | 3 | -54/+40 | |
| | | | | | | | Don't need a PLT relocation for __cerror. Move macros for doing internal aliases in ASM from SYS.h to DEFS.h __cerror tweaks by Miod Vallat, testing by aoyama@ | ||||
* | no more KERN_ARND; ok deraadt | 2016-09-21 | 1 | -10/+2 | |
| | |||||
* | Delete casts to off_t and size_t that are implied by assignments | 2016-09-21 | 35 | -114/+106 | |
| | | | | | | | or prototypes. Ditto for some of the char* and void* casts too. verified no change to instructions on ILP32 (i386) and LP64 (amd64) ok natano@ abluhm@ deraadt@ millert@ | ||||
* | gmtime_r() should return NULL on failure, not the struct tm * result | 2016-09-19 | 1 | -3/+2 | |
| | | | | parameter that was passed in. From Carlin Bingham. | ||||
* | move page junking tp unmap(), right before we stick the region in the cache; | 2016-09-18 | 1 | -6/+6 | |
| | | | | ok tedu@ | ||||
* | Use unified syntax such that this compiles with both gcc and clang. | 2016-09-18 | 1 | -2/+4 | |
| | | | | ok jsg@ | ||||
* | unbreak the build by including stddef.h for the definition of NULL | 2016-09-18 | 1 | -1/+2 | |
| | | | | fix suggested by and ok guenther@ | ||||
* | Add an interface to find the ARM.exidx table for use by the ARM EHABI unwinder. | 2016-09-17 | 5 | -2/+88 | |
| | | | | | | Makes exceptions work in C++ code work again om armv7. ok guenther@ | ||||
* | Restore warnings about multiple process waiting on same fd | 2016-09-17 | 2 | -4/+16 | |
| | | | | | requested by mpf@ ok deraadt tedu@ | ||||
* | spelling; from Frank Schoep | 2016-09-13 | 1 | -4/+4 | |
| |