Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755145AbbDTMbq (ORCPT ); Mon, 20 Apr 2015 08:31:46 -0400 Received: from cantor2.suse.de ([195.135.220.15]:57237 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754418AbbDTMbn (ORCPT ); Mon, 20 Apr 2015 08:31:43 -0400 Date: Mon, 20 Apr 2015 14:33:49 +0200 From: Petr Mladek To: Tejun Heo Cc: akpm@linux-foundation.org, davem@davemloft.net, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Kay Sievers Subject: Re: [PATCH 01/16] printk: guard the amount written per line by devkmsg_read() Message-ID: <20150420123348.GG4368@pathway.suse.cz> References: <1429225433-11946-1-git-send-email-tj@kernel.org> <1429225433-11946-2-git-send-email-tj@kernel.org> <20150420121136.GE4368@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150420121136.GE4368@pathway.suse.cz> 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: 1099 Lines: 28 On Mon 2015-04-20 14:11:36, Petr Mladek wrote: > On Thu 2015-04-16 19:03:38, Tejun Heo wrote: > > devkmsg_read() uses 8k buffer and assumes that the formatted output > > message won't overrun which seems safe given LOG_LINE_MAX, the current > > use of dict and the escaping method being used; however, we're > > planning to use devkmsg formatting wider and accounting for the buffer > > size properly isn't that complicated. > > > > This patch defines CONSOLE_EXT_LOG_MAX as 8192 and updates > > devkmsg_read() so that it limits output accordingly. > > > > Signed-off-by: Tejun Heo > > Reviewed-by: Petr Mladek > > It is just a refactoring and does not modify the current behavior. Ah, to make it clear. It did not modify the behavior except for adding the check for potential buffer overflow. Best Regards, Petr -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/