Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752916AbdGMWuC (ORCPT ); Thu, 13 Jul 2017 18:50:02 -0400 Received: from mail-pg0-f54.google.com ([74.125.83.54]:35430 "EHLO mail-pg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752983AbdGMWuA (ORCPT ); Thu, 13 Jul 2017 18:50:00 -0400 Subject: Re: [PATCH 1/4] kasan: support alloca() poisoning To: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Masahiro Yamada , Michal Marek Cc: linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kbuild@vger.kernel.org, Matthias Kaehlcke , Michael Davidson References: <20170706220114.142438-1-ghackmann@google.com> <20170706220114.142438-2-ghackmann@google.com> <66645c53-de05-8371-ead8-d4e939af60a7@virtuozzo.com> From: Greg Hackmann Message-ID: <39dd8c5c-e606-486a-bcef-b8481c5203a1@google.com> Date: Thu, 13 Jul 2017 15:49:58 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <66645c53-de05-8371-ead8-d4e939af60a7@virtuozzo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 634 Lines: 16 On 07/10/2017 03:30 AM, Andrey Ryabinin wrote: > gcc now supports this too. So I think this patch should enable it. > It's off by default so you'll have to add --param asan-instrument-allocas=1 into cflags > to make it work Thanks, will fix. For now, it looks like I'll need to build gcc from git to test this? >> lib/test_kasan.c | 22 ++++++++++++++++++++++ > > Tests would be better as a separate patch. I was following the precedent in 828347f8f9a5 ("kasan: support use-after-scope detection") which added both at the same time. But I can split the test off into a separate patch if you feel really strongly about it.