diff options
author | 2021-02-25 15:20:18 +0000 | |
---|---|---|
committer | 2021-02-25 15:20:18 +0000 | |
commit | 19aed9fc1bc211bc77ba2c7c4b875067ff9ef027 (patch) | |
tree | 7583b34fee0e3dabf4f9fa261a3d1c68307c1964 /lib/libc/stdlib/malloc.3 | |
parent | split off the large module documentations, so that port-modules is less of (diff) | |
download | wireguard-openbsd-19aed9fc1bc211bc77ba2c7c4b875067ff9ef027.tar.xz wireguard-openbsd-19aed9fc1bc211bc77ba2c7c4b875067ff9ef027.zip |
- Make use of the fact that we know how the chunks are aligned, and
write 8 bytes at the time by using a uint64_t pointer. For an
allocation a max of 4 such uint64_t's are written spread over the
allocation. For pages sized and larger, the first page is junked in
such a way.
- Delayed free of a small chunk checks the corresponiding way.
- Pages ending up in the cache are validated upon unmapping or re-use.
In snaps for a while
Diffstat (limited to 'lib/libc/stdlib/malloc.3')
-rw-r--r-- | lib/libc/stdlib/malloc.3 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3 index 0c7574034bd..c27f965d0a7 100644 --- a/lib/libc/stdlib/malloc.3 +++ b/lib/libc/stdlib/malloc.3 @@ -30,9 +30,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: malloc.3,v 1.126 2019/09/14 13:16:50 otto Exp $ +.\" $OpenBSD: malloc.3,v 1.127 2021/02/25 15:20:18 otto Exp $ .\" -.Dd $Mdocdate: September 14 2019 $ +.Dd $Mdocdate: February 25 2021 $ .Dt MALLOC 3 .Os .Sh NAME @@ -619,7 +619,7 @@ or reallocate an unallocated pointer was made. .It Dq chunk is already free There was an attempt to free a chunk that had already been freed. -.It Dq use after free +.It Dq write after free A chunk has been modified after it was freed. .It Dq modified chunk-pointer The pointer passed to |