From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by kanga.kvack.org (Postfix) with ESMTP id DA9156B006C for ; Tue, 25 Nov 2014 09:16:51 -0500 (EST) Received: by mail-pa0-f46.google.com with SMTP id lj1so651255pab.33 for ; Tue, 25 Nov 2014 06:16:51 -0800 (PST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com. [210.118.77.12]) by mx.google.com with ESMTPS id re11si1980120pdb.228.2014.11.25.06.16.49 for (version=TLSv1 cipher=RC4-MD5 bits=128/128); Tue, 25 Nov 2014 06:16:50 -0800 (PST) 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 <0NFL00IJDMGKFC80@mailout2.w1.samsung.com> for linux-mm@kvack.org; Tue, 25 Nov 2014 14:19:32 +0000 (GMT) Message-id: <54748F4A.8030003@samsung.com> Date: Tue, 25 Nov 2014 17:16:42 +0300 From: Andrey Ryabinin MIME-version: 1.0 Subject: Re: [PATCH v7 01/12] Add kernel address sanitizer infrastructure. References: <1404905415-9046-1-git-send-email-a.ryabinin@samsung.com> <1416852146-9781-1-git-send-email-a.ryabinin@samsung.com> <1416852146-9781-2-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 Chernenkov Cc: Andrew Morton , Randy Dunlap , Dmitry Vyukov , Konstantin Serebryany , Andrey Konovalov , Yuri Gribov , Konstantin Khlebnikov , Sasha Levin , Christoph Lameter , Joonsoo Kim , Dave Hansen , Andi Kleen , Vegard Nossum , "H. Peter Anvin" , Dave Jones , "x86@kernel.org" , "linux-mm@kvack.org" , LKML , Jonathan Corbet , Michal Marek , Ingo Molnar , Peter Zijlstra On 11/25/2014 03:40 PM, Dmitry Chernenkov wrote: > I'm a little concerned with how enabling/disabling works. If an > enable() is forgotten once, it's disabled forever. If disable() is > forgotten once, the toggle is reversed for the forseable future. MB > check for inequality in kasan_enabled()? like current->kasan_depth >= > 0 (will need a signed int for the field). Do you think it's going to > decrease performance? I think that check in kasan_enabled shouldn't hurt much. But it also doesn't look very useful for me. There are only few user of kasan_disable_local/kasan_enable_local, it's easy to review them. And in future we also shouldn't have a lot of new users of those functions. > > LGTM > > -- 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