Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932450AbbHZROp (ORCPT ); Wed, 26 Aug 2015 13:14:45 -0400 Received: from e28smtp01.in.ibm.com ([122.248.162.1]:46953 "EHLO e28smtp01.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752194AbbHZROo (ORCPT ); Wed, 26 Aug 2015 13:14:44 -0400 X-Helo: d28dlp02.in.ibm.com X-MailFrom: aneesh.kumar@linux.vnet.ibm.com X-RcptTo: linux-kernel@vger.kernel.org From: "Aneesh Kumar K.V" To: Andrey Ryabinin Cc: Benjamin Herrenschmidt , paulus@samba.org, mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org, LKML Subject: Re: [PATCH V2 00/10] KASan ppc64 support In-Reply-To: References: <1440577578-15813-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> User-Agent: Notmuch/0.17 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Wed, 26 Aug 2015 22:44:35 +0530 Message-ID: <87k2sic6pw.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15082617-4790-0000-0000-00000A011B40 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1440 Lines: 36 Andrey Ryabinin writes: > 2015-08-26 11:26 GMT+03:00 Aneesh Kumar K.V : >> Hi, >> >> This patchset implements kernel address sanitizer for ppc64. >> Since ppc64 virtual address range is divided into different regions, >> we can't have one contigous area for the kasan shadow range. Hence >> we don't support the INLINE kasan instrumentation. With Outline >> instrumentation, we override the shadow_to_mem and mem_to_shadow >> callbacks, so that we map only the kernel linear range (ie, >> region with ID 0xc). For region with ID 0xd and 0xf (vmalloc >> and vmemmap ) we return the address of the zero page. This >> works because kasan doesn't track both vmemmap and vmalloc address. >> >> Known issues: >> * Kasan is not yet enabled for arch/powerpc/kvm >> * kexec hang >> * outline stack and global support >> > > Is there any problem with globals or you just didn't try it yet? > I think it should just work. You need only to add --param > asan-globals=0 to KBUILD_CFLAGS_MODULE > to disable it for modules. I am hitting BUG_ON in early vmalloc code. I still haven't got time to debug it further. Should get to that soon. -aneesh -- 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/