Return-Path: Received: from mail-he1eur01on0132.outbound.protection.outlook.com ([104.47.0.132]:36202 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751325AbdLEQeD (ORCPT ); Tue, 5 Dec 2017 11:34:03 -0500 Subject: Re: [PATCH v4 5/5] kasan: added functions for unpoisoning stack variables References: <20171204191735.132544-1-paullawrence@google.com> <20171204191735.132544-6-paullawrence@google.com> From: Andrey Ryabinin Message-ID: Date: Tue, 5 Dec 2017 19:37:31 +0300 MIME-Version: 1.0 In-Reply-To: <20171204191735.132544-6-paullawrence@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Paul Lawrence , Alexander Potapenko , Dmitry Vyukov , Masahiro Yamada Cc: linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kbuild@vger.kernel.org, Matthias Kaehlcke , Michael Davidson , Greg Hackmann On 12/04/2017 10:17 PM, Paul Lawrence wrote: > From: Alexander Potapenko > > As a code-size optimization, LLVM builds since r279383 may > bulk-manipulate the shadow region when (un)poisoning large memory > blocks. This requires new callbacks that simply do an uninstrumented > memset(). > > This fixes linking the Clang-built kernel when using KASAN. > > Signed-off-by: Alexander Potapenko > [ghackmann@google.com: fix memset() parameters, and tweak > commit message to describe new callbacks] > Signed-off-by: Greg Hackmann > Signed-off-by: Paul Lawrence > --- Acked-by: Andrey Ryabinin