Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753835AbaGJOH6 (ORCPT ); Thu, 10 Jul 2014 10:07:58 -0400 Received: from qmta07.emeryville.ca.mail.comcast.net ([76.96.30.64]:33877 "EHLO qmta07.emeryville.ca.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752818AbaGJOH5 (ORCPT ); Thu, 10 Jul 2014 10:07:57 -0400 Date: Thu, 10 Jul 2014 09:07:53 -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 11/21] mm: slub: share slab_err and object_err functions In-Reply-To: <53BE4398.6020509@samsung.com> Message-ID: References: <1404905415-9046-1-git-send-email-a.ryabinin@samsung.com> <1404905415-9046-12-git-send-email-a.ryabinin@samsung.com> <53BE4398.6020509@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 Thu, 10 Jul 2014, Andrey Ryabinin wrote: > On 07/09/14 18:29, Christoph Lameter wrote: > > On Wed, 9 Jul 2014, Andrey Ryabinin wrote: > > > >> Remove static and add function declarations to mm/slab.h so they > >> could be used by kernel address sanitizer. > > > > Hmmm... This is allocator specific. At some future point it would be good > > to move error reporting to slab_common.c and use those from all > > allocators. > > > > I could move declarations to kasan internals, but it will look ugly too. > I also had an idea about unifying SLAB_DEBUG and SLUB_DEBUG at some future. > I can't tell right now how hard it will be, but it seems doable. Well the simple approach is to first unify the reporting functions and then work the way up to higher levels. The reporting functions could also be more generalized to be more useful for multiple checking tools. -- 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/