#
fb0f38c8 |
| 31-Mar-2005 |
tdeval <tdeval@openbsd.org> |
MMAP(2) malloc, here we go again.
|
#
bcbd370f |
| 11-Aug-2004 |
tdeval <tdeval@openbsd.org> |
Back out to brk(2) version.
The mmap(2) code is cool and it has already uncovered some bugs in other code. But some issues remain on some archs, and we can't afford that for production.
Don't worry
Back out to brk(2) version.
The mmap(2) code is cool and it has already uncovered some bugs in other code. But some issues remain on some archs, and we can't afford that for production.
Don't worry, it will be back soon... I'll make sure of it...
show more ...
|
#
34a0b73f |
| 05-Aug-2004 |
tdeval <tdeval@openbsd.org> |
- Remove the userland data limit check. It's mmap(2)'s job. - When malloc_abort==0 (MALLOC_OPTIONS=a), don't abort in wrterror().
fine deraadt@
|
#
1446e028 |
| 04-Aug-2004 |
tdeval <tdeval@openbsd.org> |
Missing check for NULL.
|
#
a75a3177 |
| 01-Aug-2004 |
tdeval <tdeval@openbsd.org> |
After a long gestation period, here comes our custom version of malloc(3) using mmap(2) instead of sbrk(2). To make a long story short, using mmap(2) in malloc(3) allows us to draw all the benefits f
After a long gestation period, here comes our custom version of malloc(3) using mmap(2) instead of sbrk(2). To make a long story short, using mmap(2) in malloc(3) allows us to draw all the benefits from our mmap(2)'s randomization feature, closing the effort we did for returning memory blocks from random addresses.
Tested for a long time by many, thanks to them. Go for it ! deraadt@
show more ...
|
#
cc11f4d8 |
| 12-Apr-2004 |
tdeval <tdeval@openbsd.org> |
Clean up malloc_active state when aborting. This allows for safe abort handling, without tripping into false recursivity problems.
Ok tedu@, deraadt@
|
#
f50b3310 |
| 19-Feb-2004 |
tdeval <tdeval@openbsd.org> |
Sanity fix. reviewed by deraadt@, tedu@
|
#
da0ee01f |
| 19-Nov-2003 |
tedu <tedu@openbsd.org> |
only whine about recursion once, so we don't get into problems with loops.
|
#
754940eb |
| 16-Oct-2003 |
tedu <tedu@openbsd.org> |
by popular demand, malloc guard pages. insert an unreadable/unwriteable page after each page size allocation to detect overrun. this is somewhat electric fence like, while attempting to be mostly u
by popular demand, malloc guard pages. insert an unreadable/unwriteable page after each page size allocation to detect overrun. this is somewhat electric fence like, while attempting to be mostly usable in production. also, use tdeval's chunk randomization code. enabled with the G option. ok deraadt and co.
show more ...
|
#
d8aa9cc6 |
| 15-Oct-2003 |
tedu <tedu@openbsd.org> |
abort on errors by default. workaround so running out of memory isn't actually an error, A still applies full effect. suggested by phk. ok deraadt@ tdeval@
|
#
460b2023 |
| 02-Oct-2003 |
tedu <tedu@openbsd.org> |
two minor fixes. set errno on recursive calls. ENOMEM suggested by marc@. lock before setting malloc_func, not after. ok cloder@ deraadt@
|
#
90f1fe22 |
| 30-Sep-2003 |
tedu <tedu@openbsd.org> |
full stop. reverse course. remove all periods, so as to be aligned with error messages elsewhere. requested ok deraadt@ henning@
|
#
617aadfc |
| 27-Sep-2003 |
tedu <tedu@openbsd.org> |
remove register. end all sentences with periods. ok deraadt@ henning@ millert@
|
#
14e6b1e9 |
| 04-Aug-2003 |
jfb <jfb@openbsd.org> |
ansify function arguments
ok tdeval@
|
#
b6cd67b3 |
| 19-Jul-2003 |
tdeval <tdeval@openbsd.org> |
- just warn in case of mmap/brk failure - extend_pgdir and malloc_make_chunks return int, not void*
ok tedu@
|
#
1a3529ec |
| 13-Jul-2003 |
otto <otto@openbsd.org> |
Fix two cases where malloc() returns NULL but does not set errno to ENOMEM. ok tdeval@ henning@ millert@
|
#
ef1519a9 |
| 14-May-2003 |
tdeval <tdeval@openbsd.org> |
Unbreak 64-bit archs...
|
#
1a076512 |
| 14-May-2003 |
tdeval <tdeval@openbsd.org> |
Pointer cleaning. ok ian@, tedu@, krw@
|
#
3fbf3714 |
| 14-Jan-2003 |
millert <millert@openbsd.org> |
Add sanity check to prevent int oflow for very large allocations. Also fix a signed vs. unsigned issue while I am at it. Found by Jim Geovedi. OK deraadt@
|
#
9b94bd8d |
| 27-Nov-2002 |
tdeval <tdeval@openbsd.org> |
Honour malloc_junk ('J') with realloc(3), and fix page_dir shrink update.
|
#
fb7d0297 |
| 25-Nov-2002 |
cloder <cloder@openbsd.org> |
Warn if atexit(3) fails. Change some tabs to spaces. Use STDERR_FILENO instead of 2.
OK millert@
|
#
a04bf6e3 |
| 05-Nov-2002 |
marc <marc@openbsd.org> |
thread safe libc -- 2nd try. OK miod@, millert@ Thanks to miod@ for m68k and vax fixes
|
#
7a602fd2 |
| 03-Nov-2002 |
marc <marc@openbsd.org> |
back out previous patch.. there are still some vax/m68k issues
|
#
7d696152 |
| 03-Nov-2002 |
marc <marc@openbsd.org> |
libc changes for thread safety. Tested on: alpha (millert@), i386 (marc@), m68k (millert@ and miod@), powerpc (drahn@ and dhartmei@), sparc (millert@ and marc@), sparc64 (marc@), and vax (millert@ a
libc changes for thread safety. Tested on: alpha (millert@), i386 (marc@), m68k (millert@ and miod@), powerpc (drahn@ and dhartmei@), sparc (millert@ and marc@), sparc64 (marc@), and vax (millert@ and miod@). Thanks to millert@, miod@, and mickey@ for fixes along the way.
show more ...
|
#
042896d6 |
| 27-May-2002 |
deraadt <deraadt@openbsd.org> |
unsigned vs unsigned int
|