Messages in this thread | | | Date | Tue, 22 Dec 2015 12:08:17 -0600 (CST) | From | Christoph Lameter <> | Subject | Re: [kernel-hardening] [RFC][PATCH 6/7] mm: Add Kconfig option for slab sanitization |
| |
On Tue, 22 Dec 2015, Dave Hansen wrote:
> > Why would you use zeros? The point is just to clear the information right? > > The regular poisoning does that. > > It then allows you to avoid the zeroing at allocation time.
Well much of the code is expecting a zeroed object from the allocator and its zeroed at that time. Zeroing makes the object cache hot which is an important performance aspect.
| |