From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752610AbbICIrJ (ORCPT ); Thu, 3 Sep 2015 04:47:09 -0400 Received: from mail-la0-f48.google.com ([209.85.215.48]:35820 "EHLO mail-la0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752296AbbICIrH (ORCPT ); Thu, 3 Sep 2015 04:47:07 -0400 Subject: Re: [PATCH 3/4] kasan: Don't use kasan shadow pointer in generic functions To: "Aneesh Kumar K.V" , akpm@linux-foundation.org References: <1441266863-5435-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <1441266863-5435-3-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org From: Andrey Ryabinin Message-ID: <55E80910.20406@gmail.com> Date: Thu, 3 Sep 2015 11:47:12 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <1441266863-5435-3-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/03/2015 10:54 AM, Aneesh Kumar K.V wrote: > We can't use generic functions like print_hex_dump to access kasan > shadow region. This require us to setup another kasan shadow region > for the address passed (kasan shadow address). Most architecture won't > be able to do that. s/Most architecture/Some architectures At least ARM/ARM64/x86 are able to do that. > Hence make a copy of the shadow region row and > pass that to generic functions. > > Signed-off-by: Aneesh Kumar K.V > --- > mm/kasan/report.c | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) Anyway, for this patch: Reviewed-by: Andrey Ryabinin