From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f197.google.com (mail-pf0-f197.google.com [209.85.192.197]) by kanga.kvack.org (Postfix) with ESMTP id 5200C6B0005 for ; Thu, 19 Apr 2018 13:25:47 -0400 (EDT) Received: by mail-pf0-f197.google.com with SMTP id h9so2720151pfn.22 for ; Thu, 19 Apr 2018 10:25:47 -0700 (PDT) Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 125sor1041812pfc.52.2018.04.19.10.25.46 for (Google Transport Security); Thu, 19 Apr 2018 10:25:46 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20180419094847.56737-1-dvyukov@google.com> From: Dmitry Vyukov Date: Thu, 19 Apr 2018 19:25:25 +0200 Message-ID: Subject: Re: [PATCH] KASAN: prohibit KASAN+STRUCTLEAK combination Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: Andrey Ryabinin Cc: Linux-MM , Andrew Morton , kasan-dev , Fengguang Wu , Sergey Senozhatsky , Kees Cook On Thu, Apr 19, 2018 at 7:21 PM, Andrey Ryabinin wrote: > > > On 04/19/2018 12:48 PM, Dmitry Vyukov wrote: > >> --- a/arch/Kconfig >> +++ b/arch/Kconfig >> @@ -464,6 +464,10 @@ config GCC_PLUGIN_LATENT_ENTROPY >> config GCC_PLUGIN_STRUCTLEAK >> bool "Force initialization of variables containing userspace addresses" >> depends on GCC_PLUGINS >> + # Currently STRUCTLEAK inserts initialization out of live scope of >> + # variables from KASAN point of view. This leads to KASAN false >> + # positive reports. Prohibit this combination for now. >> + depends on !KASAN > KASAN_EXTRA Remailed, thanks.