From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757683AbcJXOYj (ORCPT ); Mon, 24 Oct 2016 10:24:39 -0400 Received: from mail-pf0-f180.google.com ([209.85.192.180]:35499 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750827AbcJXOYh (ORCPT ); Mon, 24 Oct 2016 10:24:37 -0400 Date: Mon, 24 Oct 2016 23:23:31 +0900 From: Sergey Senozhatsky To: Linus Torvalds Cc: Joe Perches , Geert Uytterhoeven , Tetsuo Handa , Linux Kernel Mailing List , Petr Mladek , Sergey Senozhatsky , Sergey Senozhatsky Subject: Re: linux.git: printk() problem Message-ID: <20161024142331.GA415@swordfish> References: <201610122230.DID43237.FSOHFFQOJOtVML@I-love.SAKURA.ne.jp> <1477249607.3561.2.camel@perches.com> <20161024140845.GA626@swordfish> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161024140845.GA626@swordfish> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On (10/23/16 12:46), Linus Torvalds wrote: > > +static void deferred_cont_flush(void) > > +{ > > + static DEFINE_TIMER(timer, flush_timer, 0, 0); > > + > > + if (!cont.len) > > return; > > + mod_timer(&timer, jiffies + HZ/10); > > } > > [..] > > > @@ -2360,6 +2285,8 @@ void console_unlock(void) > > return; > > } > > > > + deferred_cont_flush(); > > + > [ 0.000000] BUG: spinlock bad magic on CPU#0, swapper/0 [ 0.000000] lock: __init_begin+0x1cebc0/0x1da000, .magic: 00000000, .owner: swapper/0, .owner_cpu: 0 [ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.9.0-rc1-next-20161024-dbg-dirty #150 [ 0.000000] ffffffff81803c18 ffffffff81221216 ffffffff8180a540 ffffffff81ac7bc0 [ 0.000000] ffffffff81803c38 ffffffff81081414 ffffffff81ac7bc0 0000000000000046 [ 0.000000] ffffffff81803c58 ffffffff81081444 ffffffff81ac7bc0 ffffffff81737e85 [ 0.000000] Call Trace: [ 0.000000] [] dump_stack+0x4f/0x65 [ 0.000000] [] spin_dump+0x8a/0x8f [ 0.000000] [] spin_bug+0x2b/0x2d [ 0.000000] [] do_raw_spin_unlock+0x22/0x81 [ 0.000000] [] _raw_spin_unlock_irqrestore+0x2c/0x4e [ 0.000000] [] mod_timer+0x266/0x2a0 [ 0.000000] [] deferred_cont_flush+0x2a/0x2c [ 0.000000] [] console_unlock+0x28/0x45c [ 0.000000] [] ? vprintk_emit+0x3a6/0x3c5 [ 0.000000] [] vprintk_emit+0x3af/0x3c5 [ 0.000000] [] vprintk_default+0x1d/0x1f [ 0.000000] [] printk+0x48/0x50 [ 0.000000] [] ? vprintk_default+0x1d/0x1f [ 0.000000] [] e820_print_map+0x4a/0x70 [ 0.000000] [] ? 0xffffffff81000000 [ 0.000000] [] setup_memory_map+0x37/0x3a [ 0.000000] [] setup_arch+0x16d/0x890 [ 0.000000] [] start_kernel+0x59/0x40c [ 0.000000] [] x86_64_start_reservations+0x2a/0x2c [ 0.000000] [] x86_64_start_kernel+0x17a/0x18d [ 0.000000] [] start_cpu+0x5/0x14 [ 0.000000] [] ? start_cpu+0x5/0x14 [ 0.000000] usable -ss