Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964887AbdCWN3c (ORCPT ); Thu, 23 Mar 2017 09:29:32 -0400 Received: from foss.arm.com ([217.140.101.70]:56340 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933974AbdCWN3b (ORCPT ); Thu, 23 Mar 2017 09:29:31 -0400 Date: Thu, 23 Mar 2017 13:29:13 +0000 From: Mark Rutland To: Andrey Ryabinin Cc: Andrew Morton , Andrey Konovalov , Alexander Potapenko , Dmitry Vyukov , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] kasan: report only the first error by default Message-ID: <20170323132913.GF9287@leverpostej> References: <20170322160647.32032-1-aryabinin@virtuozzo.com> <20170323114916.29871-1-aryabinin@virtuozzo.com> <20170323124154.GE9287@leverpostej> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 891 Lines: 32 On Thu, Mar 23, 2017 at 04:06:59PM +0300, Andrey Ryabinin wrote: > On 03/23/2017 03:41 PM, Mark Rutland wrote: > > Rather than trying to pick an arbitrarily large number, how about we use > > separate flags to determine whether we're in multi-shot mode, and > > whether a (oneshot) report has been made. > > > > How about the below? > > Yes, it deferentially looks better. > Can you send a patch with a changelog, or do you want me to care of it? Would you be happy to take care of it, along with the fixup you suggested below, as v3? You can add my: Signed-off-by: Mark Rutland Thanks, Mark. > > > > +#include > > #include > > We also need for __setup(). > > > #include > > #include > > @@ -293,6 +294,40 @@ static void kasan_report_error(struct kasan_access_info *info)