Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932308AbaGIO0N (ORCPT ); Wed, 9 Jul 2014 10:26:13 -0400 Received: from qmta09.emeryville.ca.mail.comcast.net ([76.96.30.96]:34084 "EHLO qmta09.emeryville.ca.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932219AbaGIO0I (ORCPT ); Wed, 9 Jul 2014 10:26:08 -0400 Date: Wed, 9 Jul 2014 09:26:03 -0500 (CDT) From: Christoph Lameter To: Andrey Ryabinin cc: linux-kernel@vger.kernel.org, Dmitry Vyukov , Konstantin Serebryany , Alexey Preobrazhensky , Andrey Konovalov , Yuri Gribov , Konstantin Khlebnikov , Sasha Levin , Michal Marek , Russell King , Thomas Gleixner , Ingo Molnar , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , linux-kbuild@vger.kernel.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, linux-mm@kvack.org Subject: Re: [RFC/PATCH RESEND -next 01/21] Add kernel address sanitizer infrastructure. In-Reply-To: <1404905415-9046-2-git-send-email-a.ryabinin@samsung.com> Message-ID: References: <1404905415-9046-1-git-send-email-a.ryabinin@samsung.com> <1404905415-9046-2-git-send-email-a.ryabinin@samsung.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 On Wed, 9 Jul 2014, Andrey Ryabinin wrote: > + > +Markers of unaccessible bytes could be found in mm/kasan/kasan.h header: > + > +#define KASAN_FREE_PAGE 0xFF /* page was freed */ > +#define KASAN_PAGE_REDZONE 0xFE /* redzone for kmalloc_large allocations */ > +#define KASAN_SLAB_REDZONE 0xFD /* Slab page redzone, does not belong to any slub object */ We call these zones "PADDING". Redzones are associated with an object. Padding is there because bytes are left over, unusable or necessary for alignment. -- 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/