Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755393AbbLVQZF (ORCPT ); Tue, 22 Dec 2015 11:25:05 -0500 Received: from resqmta-ch2-08v.sys.comcast.net ([69.252.207.40]:35483 "EHLO resqmta-ch2-08v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752770AbbLVQZD (ORCPT ); Tue, 22 Dec 2015 11:25:03 -0500 Date: Tue, 22 Dec 2015 10:25:00 -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: <567964F3.2020402@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> 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: 1024 Lines: 22 On Tue, 22 Dec 2015, Dave Hansen wrote: > On 12/21/2015 07:40 PM, Laura Abbott wrote: > > + The tradeoff is performance impact. The noticible impact can vary > > + and you are advised to test this feature on your expected workload > > + before deploying it > > What if instead of writing SLAB_MEMORY_SANITIZE_VALUE, we wrote 0's? > That still destroys the information, but it has the positive effect of > allowing a kzalloc() call to avoid zeroing the slab object. It might > mitigate some of the performance impact. We already write zeros in many cases or the object is initialized in a different. No one really wants an uninitialized object. The problem may be that a freed object is having its old content until reused. Which is something that poisoning deals with. -- 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/