History log of /openbsd-src/lib/libc/stdlib/malloc.c (Results 126 – 150 of 297)
Revision Date Author Comments
# bd5a3f73 05-Jan-2015 tedu <tedu@openbsd.org>

rename kern enter/exit macros to malloc enter/leave to better reflect
what's going on.


# ba7eaa68 18-Aug-2014 tedu <tedu@openbsd.org>

a small tweak to improve malloc in multithreaded programs. we don't need
to hold the malloc lock across mmap syscalls in all cases. dropping it
allows another thread to access the existing chunk cach

a small tweak to improve malloc in multithreaded programs. we don't need
to hold the malloc lock across mmap syscalls in all cases. dropping it
allows another thread to access the existing chunk cache if necessary.
could be improved to be a bit more aggressive, but i've been testing this
simple diff for some time now with good results.

show more ...


# 7901769c 09-Jul-2014 tedu <tedu@openbsd.org>

reduce obvious dependency on global g_pool by moving to local aliases
ok otto


# 02c66c2f 27-Jun-2014 deraadt <deraadt@openbsd.org>

extra evil spaces snuck in over the last while


# 9ef1c033 27-Jun-2014 otto <otto@openbsd.org>

Move to a smaller rbytes buffer and skip a random part. Not to
improve the random stream itself (it doesn't), but to introduce
noise in the arc4random calling pattern. Thanks to matthew@ who
pointed

Move to a smaller rbytes buffer and skip a random part. Not to
improve the random stream itself (it doesn't), but to introduce
noise in the arc4random calling pattern. Thanks to matthew@ who
pointed out bias in a previous diff, ok deraadt@ matthew@

show more ...


# 772d1f21 02-Jun-2014 otto <otto@openbsd.org>

move random bytes buffer to be part of mmaped pages; ok tedu@


# 5664ccb3 26-May-2014 otto <otto@openbsd.org>

move all stats collecting under MALLOC_STATS; ok krw@


# 1a45b961 21-May-2014 otto <otto@openbsd.org>

fix MALLOC_STATS (not compiled in by default); ok tedu@


# 2ad2a20b 18-May-2014 tedu <tedu@openbsd.org>

factor out a bit of the chunk index code and use it to make sure that a
freed chunk is actually freeable immediately. catch more errors.
hints/ok otto


# c42849b1 12-May-2014 tedu <tedu@openbsd.org>

change to having four freelists per size, to reduce another source of
deterministic behavior. four selected because it's more than three, less
than five. i.e., no particular reason.


# 2b3e6975 10-May-2014 otto <otto@openbsd.org>

fix MALLOC_STATS code that was broken in rev 1.159, not compiled in by default


# 91c2a707 08-May-2014 deraadt <deraadt@openbsd.org>

move reallocarray() to a seperate file so that -portable applications
can avoid reinventing the wheel
ok guenther schwarze


# 5c0e18fb 07-May-2014 halex <halex@openbsd.org>

comment style fix

ok crickets@


# 733d6510 01-May-2014 tedu <tedu@openbsd.org>

nibbles aren't enough random, use bytes. does a better job of picking
a free chunk at random and may allow to increase delayed chunk array.
ok otto


# 636799c1 23-Apr-2014 tedu <tedu@openbsd.org>

remove Z option and default to something halfway to J.
we always junk small chunks now, and the first part of pages,
but only after free. J still does the old thing. j disables everything.
Consider e

remove Z option and default to something halfway to J.
we always junk small chunks now, and the first part of pages,
but only after free. J still does the old thing. j disables everything.
Consider experimental as we evaluate performance in the real world.
ok otto

show more ...


# 7ce2332b 23-Apr-2014 espie <espie@openbsd.org>

explain a bit more what's going on for stupid me.
okay otto@


# 457cbe4d 23-Apr-2014 otto <otto@openbsd.org>

Better, cleaner hash function that computes the same on be and le archs.
Should improve sparc64 and other be archs. ok matthew@ miod@


# 7e25e286 22-Apr-2014 tedu <tedu@openbsd.org>

change mallocarray to reallocarray. useful in a few more situations.
malloc can, as always, be emulated via realloc(NULL).
ok deraadt


# e1603b91 21-Apr-2014 deraadt <deraadt@openbsd.org>

Introducing: void *mallocarray(size_t nmemb, size_t size);
Like calloc(), except without the cleared-memory gaurantee
ok beck guenther, discussed for more than a year...


# 35549626 14-Apr-2014 otto <otto@openbsd.org>

print pid in error messages; ok reyk@


# 347c6422 03-Apr-2014 schwarze <schwarze@openbsd.org>

Update Copyright notice; ok otto@ beck@ deraadt@.
This is merely a by-product of figuring out the amount of phk@ code
contained herein; i'm not planning to hack on this file.


# eaca8be6 25-Mar-2014 beck <beck@openbsd.org>

Poul-Henning Kamp informed me he is allright with this licensing change.


# 1c6b2265 12-Nov-2013 deraadt <deraadt@openbsd.org>

avoid arithetic on void *
ok guenther otto


# 7fc588d7 22-Dec-2012 otto <otto@openbsd.org>

Fix bug in random offset introduced in rev 1.143; random range was
expanded, but not enough due to precedence error. Spotted by Thorsten Glaser.


# 73d5595f 02-Nov-2012 djm <djm@openbsd.org>

Add a new malloc option 'U' => "Free unmap" that does the guarding/
unmapping of freed allocations without disabling chunk randomisation
like the "Freeguard" ('F') option does. Make security 'S' opti

Add a new malloc option 'U' => "Free unmap" that does the guarding/
unmapping of freed allocations without disabling chunk randomisation
like the "Freeguard" ('F') option does. Make security 'S' option
use 'U' and not 'F'.

Rationale: guarding with no chunk randomisation is great for debugging
use-after-free, but chunk randomisation offers better defence against
"heap feng shui" style attacks that depend on carefully constructing a
particular heap layout so we should leave this enabled when requesting
security options.

show more ...


12345678910>>...12