Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755349AbbLVSIU (ORCPT ); Tue, 22 Dec 2015 13:08:20 -0500 Received: from resqmta-ch2-08v.sys.comcast.net ([69.252.207.40]:34690 "EHLO resqmta-ch2-08v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755206AbbLVSIT (ORCPT ); Tue, 22 Dec 2015 13:08:19 -0500 Date: Tue, 22 Dec 2015 12:08:17 -0600 (CST) From: Christoph Lameter X-X-Sender: cl@east.gentwo.org To: Dave Hansen cc: kernel-hardening@lists.openwall.com, Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Laura Abbott , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Kees Cook Subject: Re: [kernel-hardening] [RFC][PATCH 6/7] mm: Add Kconfig option for slab sanitization In-Reply-To: <56798851.60906@intel.com> Message-ID: References: <1450755641-7856-1-git-send-email-laura@labbott.name> <1450755641-7856-7-git-send-email-laura@labbott.name> <567964F3.2020402@intel.com> <567986E7.50107@intel.com> <56798851.60906@intel.com> Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 644 Lines: 16 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/