On Fri, Apr 26, 2019 at 5:24 PM Christopher Lameter <cl@xxxxxxxxx> wrote: > > Hmmmm.... Maybe its better to zero on free? That way you dont need to > initialize the allocations. You could even check if someone mucked with > the object during allocation. As mentioned somewhere in the neighboring threads, Kees requested the options to initialize on both allocation and free, because we'll need this functionality for memory tagging someday. > This is a replication of some of the > inherent debugging facilities in the allocator though. I'm curious, how often do people use SL[AU]B poisoning and redzones these days? Guess those should be superseded by KASAN already? I agree it makes sense to reuse the existing debugging code, but on the other hand we probably want to keep the initialization fast enough to be used in production. > Re: poison_fn, it wasn't a good idea, so I'll be dropping it. -- Alexander Potapenko Software Engineer Google Germany GmbH Erika-Mann-Straße, 33 80636 München Geschäftsführer: Paul Manicle, Halimah DeLaine Prado Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg