summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_malloc.c
AgeCommit message (Expand)AuthorFilesLines
2019-12-19Convert infinite sleeps to {m,t}sleep_nsec(9).mpi1-2/+2
2019-11-28Delete km_mapblocks from kmemstats and its always-zero column from the ddbguenther1-5/+5
2019-05-15rework the zero warning slightly, and more completely disable until we'retedu1-8/+9
2019-05-09disable stack printing for now since at least arm64 can't print themtedu1-1/+3
2019-05-08print a few warnings when calling free with a zero size.tedu1-3/+14
2018-07-10In free(9) call wakeup() after mtx_leave() consistently.bluhm1-7/+12
2018-07-09Fix trailing whitespaces and too long line.bluhm1-6/+6
2018-07-09Make free(9) MP safe. It was wrong to set ku_indx to 0 after freeingbluhm1-5/+8
2018-01-18While booting it does not make sense to wait for memory, there isbluhm1-1/+7
2018-01-02Fix an off-by-one in the free(9) "passed size was too small" check:guenther1-3/+3
2017-11-14remove MALLOC_DEBUGdlg1-17/+1
2017-07-10make malloc(9) mpsafe by using a mutex instead of splvm.dlg1-32/+47
2017-06-07Assert that the calling CPU is holding the KERNEL_LOCK() in malloc(9)mpi1-1/+7
2015-03-14Remove some includes include-what-you-use claims don'tjsg1-2/+1
2015-02-13Include sys/stdint.h for SIZE_MAX instead of relying on the misplacedmillert1-1/+2
2014-12-10convert bcopy to memcpy. ok millerttedu1-2/+2
2014-11-18move arc4random prototype to systm.h. more appropriate for most codetedu1-3/+1
2014-11-16Replace a plethora of historical protection options with justderaadt1-2/+2
2014-11-06need to calculate correct size before doing the free checks. the biggesttedu1-2/+3
2014-11-06let ramdisks compilederaadt1-2/+5
2014-11-05need to move lock up to prevent more than one malloc. ok guenthertedu1-8/+6
2014-11-05don't use loop variable (i) for not loop things. use a new var.tedu1-4/+5
2014-11-05use memname to print string of type. stolen from deraadttedu1-5/+5
2014-11-05also print type when free size is wrongtedu1-4/+5
2014-11-02tweak free panic messages tootedu1-3/+3
2014-11-02tweak panic messages for consistencytedu1-3/+3
2014-09-14remove uneeded proc.h includesjsg1-2/+1
2014-07-13if the freedsize isn't zero, check that's reasonable. ok becktedu1-2/+7
2014-07-12add a size argument to free. will be used soon, but for now default to 0.tedu1-2/+2
2014-07-10instead of defining two versions of bucketidx, just don't inline for small.tedu1-14/+6
2014-07-10Add mallocarray(9)matthew1-2/+36
2014-07-10pool_debug still needed for non-DIAGNOSTIC kernelsderaadt1-2/+2
2014-07-10hide the biglock thrashing under pool_debug so it can be turned offtedu1-2/+2
2014-06-21you've had 12+ years to update your kernel config.daniel1-5/+1
2014-05-19consistent use of uint32_t for poison valuestedu1-2/+2
2014-04-03if it's ok to wait, it must also be ok to give the kernel lock. do so.tedu1-3/+7
2014-03-28Reduce uvm include madness. Use <uvm/uvm_extern.h> instead ofmpi1-2/+2
2014-01-21bzero -> memsettedu1-3/+3
2013-08-08Uncomment kprintf format attributes for sys/kernsyl1-2/+2
2013-07-04permit free(NULL) to work. ok deraadttedu1-1/+4
2013-05-31open up some races. if pool_debug == 2, force a yield() whenever waitok.tedu1-2/+8
2013-05-03switch the malloc and pool freelists to using xor simpleq.tedu1-11/+13
2013-04-06shuffle around some poison code, prototypes, values...tedu1-13/+18
2013-03-28separate memory poisoning code to a new file and make it usable kernel widetedu1-48/+15
2013-03-26replace kern malloc's hand rolled freelist with simpleq macros.tedu1-65/+31
2013-03-21use PAGE_SHIFT instead of PGSHIFTderaadt1-2/+2
2013-03-15factor out the deadbeef code for legibility.tedu1-37/+51
2013-02-17Comment out recently added __attribute__((__format__(__kprintf__))) annotationsmiod1-2/+2
2013-02-09Add explicit __attribute__ ((__format__(__kprintf__)))) to the functions andmiod1-5/+6
2012-03-30Expand the panic to show the malloc type and size. Okay deraadt@.pirofti1-2/+3