Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753955AbdGUKDq (ORCPT ); Fri, 21 Jul 2017 06:03:46 -0400 Received: from mx2.suse.de ([195.135.220.15]:37049 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753388AbdGUKDp (ORCPT ); Fri, 21 Jul 2017 06:03:45 -0400 Date: Fri, 21 Jul 2017 12:03:41 +0200 From: Petr Mladek To: Andy Shevchenko Cc: Ye Xiaolong , Linus Torvalds , Sergey Senozhatsky , Ananth N Mavinakayanahalli , Anil S Keshavamurthy , Masami Hiramatsu , Daniel Micay , Kees Cook , Arnd Bergmann , Mark Rutland , Daniel Axtens , Rasmus Villemoes , Chris Metcalf , Thomas Gleixner , "H. Peter Anvin" , Ingo Molnar , Andrew Morton , LKML , LKP Subject: Re: [lkp-robot] [include/linux/string.h] 6974f0c455: kernel_BUG_at_lib/string.c Message-ID: <20170721100341.GB28857@pathway.suse.cz> References: <20170720014238.GH27396@yexl-desktop> <20170721015941.GB9355@yexl-desktop> <1500628509.29303.161.camel@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1500628509.29303.161.camel@linux.intel.com> 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: 1344 Lines: 41 On Fri 2017-07-21 12:15:09, Andy Shevchenko wrote: > On Fri, 2017-07-21 at 09:59 +0800, Ye Xiaolong wrote: > > Hi, > > > > On 07/19, Linus Torvalds wrote: > > > Hmm. I wonder why the kernel test robot ends up having that annoying > > > line doubling for the dmesg. > > > > > > > Hmm, this line doubling issue should be caused by we set both > > 'earlyprintk=ttyS0,115200' and 'console=ttyS0,115200' in cmdline, > > after I > > remove any of it, this issue is gone, is it an inappropriate setting? > > > > FYI, the whole kernel command line is: > > > > earlyprintk=ttyS0,115200 > > console=ttyS0,115200 > > console=tty0 The order is important here. Early consoles are disabled when the preferred console (last on the command line) is registered. Therefore the following order should fix it: console=tty0 earlyprintk=ttyS0,115200 console=ttyS0,115200 Best Regards, Petr PS: I have recently spent a lot of time trying to understad this part of the code. Unfortunately, it is not easy to improve. The same console might be registered by various aliases. Therefore it is not easy to check which early console match a real one. There are match() functions but they have side effects. It would require some non-trivial redesign. I am working on some partial clean that would make the code easier but it is really hard to avoid regressions.