From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ob0-f177.google.com (mail-ob0-f177.google.com [209.85.214.177]) by kanga.kvack.org (Postfix) with ESMTP id D66C56B0254 for ; Fri, 26 Feb 2016 12:08:35 -0500 (EST) Received: by mail-ob0-f177.google.com with SMTP id dm2so82800230obb.2 for ; Fri, 26 Feb 2016 09:08:35 -0800 (PST) Received: from mail-oi0-x235.google.com (mail-oi0-x235.google.com. [2607:f8b0:4003:c06::235]) by mx.google.com with ESMTPS id w133si11956562oif.121.2016.02.26.09.08.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Feb 2016 09:08:35 -0800 (PST) Received: by mail-oi0-x235.google.com with SMTP id m82so65961826oif.1 for ; Fri, 26 Feb 2016 09:08:35 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <1456461361-4345-1-git-send-email-iamjoonsoo.kim@lge.com> Date: Sat, 27 Feb 2016 02:08:35 +0900 Message-ID: Subject: Re: [PATCH v2] mm/slub: support left redzone From: Joonsoo Kim Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Andrey Ryabinin Cc: Andrew Morton , Christoph Lameter , Pekka Enberg , David Rientjes , "linux-mm@kvack.org" , LKML , Joonsoo Kim 2016-02-27 1:47 GMT+09:00 Andrey Ryabinin : > 2016-02-26 7:36 GMT+03:00 : >> From: Joonsoo Kim >> >> SLUB already has a redzone debugging feature. But it is only positioned >> at the end of object (aka right redzone) so it cannot catch left oob. >> Although current object's right redzone acts as left redzone of next >> object, first object in a slab cannot take advantage of this effect. This >> patch explicitly adds a left red zone to each object to detect left oob >> more precisely. >> > > So why for each object? Can't we have left redzone only for the first object? It's easier to implement and less code churn than allowing left redzone only for the first object. Thanks. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org