From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by kanga.kvack.org (Postfix) with ESMTP id E98066B0032 for ; Wed, 21 Jan 2015 15:47:43 -0500 (EST) Received: by mail-pa0-f44.google.com with SMTP id et14so55212424pad.3 for ; Wed, 21 Jan 2015 12:47:43 -0800 (PST) Received: from aserp1040.oracle.com (aserp1040.oracle.com. [141.146.126.69]) by mx.google.com with ESMTPS id kw15si9720738pab.218.2015.01.21.12.47.41 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 21 Jan 2015 12:47:42 -0800 (PST) Message-ID: <54C01051.7000107@oracle.com> Date: Wed, 21 Jan 2015 15:47:13 -0500 From: Sasha Levin MIME-Version: 1.0 Subject: Re: [PATCH v9 07/17] mm: slub: add kernel address sanitizer support for slub allocator References: <1404905415-9046-1-git-send-email-a.ryabinin@samsung.com> <1421859105-25253-1-git-send-email-a.ryabinin@samsung.com> <1421859105-25253-8-git-send-email-a.ryabinin@samsung.com> In-Reply-To: <1421859105-25253-8-git-send-email-a.ryabinin@samsung.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Andrey Ryabinin , linux-kernel@vger.kernel.org Cc: Dmitry Chernenkov , Dmitry Vyukov , Konstantin Serebryany , Andrey Konovalov , Yuri Gribov , Konstantin Khlebnikov , Christoph Lameter , Joonsoo Kim , Andrew Morton , Dave Hansen , Andi Kleen , x86@kernel.org, linux-mm@kvack.org, Pekka Enberg , David Rientjes On 01/21/2015 11:51 AM, Andrey Ryabinin wrote: > With this patch kasan will be able to catch bugs in memory allocated > by slub. > Initially all objects in newly allocated slab page, marked as redzone. > Later, when allocation of slub object happens, requested by caller > number of bytes marked as accessible, and the rest of the object > (including slub's metadata) marked as redzone (inaccessible). > > We also mark object as accessible if ksize was called for this object. > There is some places in kernel where ksize function is called to inquire > size of really allocated area. Such callers could validly access whole > allocated memory, so it should be marked as accessible. > > Code in slub.c and slab_common.c files could validly access to object's > metadata, so instrumentation for this files are disabled. This one doesn't apply on -next. Is there a missing commit? Applying: mm: slub: add kernel address sanitizer support for slub allocator fatal: sha1 information is lacking or useless (mm/slub.c). Repository lacks necessary blobs to fall back on 3-way merge. Cannot fall back to three-way merge. Patch failed at 0007 mm: slub: add kernel address sanitizer support for slub allocator When you have resolved this problem run "git am --resolved". If you would prefer to skip this patch, instead run "git am --skip". To restore the original branch and stop patching run "git am --abort". Thanks, Sasha -- 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