> o Freeing performs only the most basic sanity checks on the > given address. > The second point will probably kill the 'Lazy-Buddy' off for Linux...
It simply requires you keep a second linked list of block information to use in "debug" mode. The current kmalloc is pretty useless at spotting scribbles and mistakes in kfree/kmalloc too.