From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by kanga.kvack.org (Postfix) with ESMTP id 47C066B003C for ; Mon, 29 Sep 2014 10:34:50 -0400 (EDT) Received: by mail-pa0-f52.google.com with SMTP id fb1so5636028pad.25 for ; Mon, 29 Sep 2014 07:34:50 -0700 (PDT) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com. [210.118.77.12]) by mx.google.com with ESMTPS id pd4si23224072pdb.173.2014.09.29.07.34.47 for (version=TLSv1 cipher=RC4-MD5 bits=128/128); Mon, 29 Sep 2014 07:34:48 -0700 (PDT) Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NCO0056M3AKI090@mailout2.w1.samsung.com> for linux-mm@kvack.org; Mon, 29 Sep 2014 15:37:32 +0100 (BST) Message-id: <54296C62.2080604@samsung.com> Date: Mon, 29 Sep 2014 18:27:46 +0400 From: Andrey Ryabinin MIME-version: 1.0 Subject: Re: [RFC PATCH v3 13/13] kasan: introduce inline instrumentation References: <1404905415-9046-1-git-send-email-a.ryabinin@samsung.com> <1411562649-28231-1-git-send-email-a.ryabinin@samsung.com> <1411562649-28231-14-git-send-email-a.ryabinin@samsung.com> In-reply-to: Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Dmitry Vyukov , Andrey Ryabinin Cc: LKML , Konstantin Serebryany , Dmitry Chernenkov , Andrey Konovalov , Yuri Gribov , Konstantin Khlebnikov , Sasha Levin , Christoph Lameter , Joonsoo Kim , Andrew Morton , Dave Hansen , Andi Kleen , Vegard Nossum , "H. Peter Anvin" , Dave Jones , x86@kernel.org, "linux-mm@kvack.org" , Michal Marek On 09/29/2014 06:28 PM, Dmitry Vyukov wrote: > On Fri, Sep 26, 2014 at 9:33 PM, Andrey Ryabinin wrote: >> 2014-09-26 21:18 GMT+04:00 Dmitry Vyukov : >>> >>> Yikes! >>> So this works during bootstrap, for user memory accesses, valloc >>> memory, etc, right? >>> >> >> Yes, this works. Userspace memory access in instrumented code will >> produce general protection fault, >> so it won't be unnoticed. > > > Great! > What happens during early bootstrap when shadow is not mapped yet? > Shadow mapped very early. Any instrumented code executes only after shadow mapped. -- 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