From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751570AbdBBQNc (ORCPT ); Thu, 2 Feb 2017 11:13:32 -0500 Received: from mx2.suse.de ([195.135.220.15]:39238 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750777AbdBBQNb (ORCPT ); Thu, 2 Feb 2017 11:13:31 -0500 Date: Thu, 2 Feb 2017 17:13:27 +0100 From: Petr Mladek To: Steven Rostedt Cc: Sergey Senozhatsky , Sergey Senozhatsky , Andrew Morton , Linus Torvalds , Jan Kara , Tejun Heo , Calvin Owens , Ingo Molnar , Peter Zijlstra , Andy Lutomirski , Peter Hurley , linux-kernel@vger.kernel.org Subject: Re: [PATCHv7 5/8] printk: report lost messages in printk safe/nmi contexts Message-ID: <20170202161327.GH23754@pathway.suse.cz> References: <20161227141611.940-1-sergey.senozhatsky@gmail.com> <20161227141611.940-6-sergey.senozhatsky@gmail.com> <20170201113700.5b464143@gandalf.local.home> <20170202020257.GB1954@jagdpanzerIV.localdomain> <20170202093409.3d7f617e@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170202093409.3d7f617e@gandalf.local.home> 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 On Thu 2017-02-02 09:34:09, Steven Rostedt wrote: > On Thu, 2 Feb 2017 11:02:57 +0900 > Sergey Senozhatsky wrote: > > > On (02/01/17 11:37), Steven Rostedt wrote: > > > This looks fine, but I'm curious if you tested it. That is, added a > > > bunch of printks to overflow the buffer. IIRC, I did it to the original > > > nmi code. If you haven't you may want to just to make sure it works. I > > > can also test it too if I get some time. I have tested it and actually found a bug. I was lucky because it was a cornercase. It is already fixed upstream by the commit 4a998e322abc935e ("printk/NMI: fix up handling of the full nmi log buffer"). > Please note how you tested it in your change log. It's not really a > requirement, and you don't really have to do it. But it helps people > have warm fuzzies about the code. I'm trying to do this in the future > in my own work too. Goot to know. Best Regards, Petr