From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932666AbcEQQFd (ORCPT ); Tue, 17 May 2016 12:05:33 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34891 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932606AbcEQQFb (ORCPT ); Tue, 17 May 2016 12:05:31 -0400 Date: Tue, 17 May 2016 09:05:29 -0700 From: Tejun Heo To: Sergey Senozhatsky Cc: Calvin Owens , "Paul E. McKenney" , Andrew Morton , David Howells , Pranith Kumar , David Woodhouse , Johannes Weiner , Ard Biesheuvel , Petr Mladek , Vasily Averin , Thierry Reding , Geliang Tang , Ivan Delalande , linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [RFC][PATCH] printk: Add option to append kernel version to the dict Message-ID: <20160517160529.GB4775@htj.duckdns.org> References: <51047c0f6e86abcb9ee13f60653b6946f8fcfc99.1463172791.git.calvinowens@fb.com> <20160515063643.GA817@swordfish> <20160516220252.GA2281534@devbig337.prn1.facebook.com> <20160517144257.GA582@swordfish> <20160517135128.GA4775@htj.duckdns.org> <20160517154310.GC582@swordfish> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160517154310.GC582@swordfish> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 18, 2016 at 12:43:10AM +0900, Sergey Senozhatsky wrote: > > Given that most of the messages are written minding typical console > > widths, whether for editing or outputting, I don't think that's a > > practical concern. We're not talking about appending kilobytes worth > > of additional information here. > > hm, I'd probably agree. any chance printk(KERN_CONT) can cause any problems? > for example, Plain printk messages are capped at around 1k (LONG_LINE_MAX) while extended messages can grow upto 8k in size. Because extended messages are escaped, plain message can theoretically be blown upto 4k but that still leaves us with 4k buffer. Direct extended messages can use more but given that our only usages are for tagging some metadata, that's only a theoretical possibility at this point. So, I don't think we have anything to worry about at this point. Thanks. -- tejun