Re: overlaping printk

From: Ingo Molnar (mingo_at_elte.hu)
Date: 05/20/04

  • Next message: Bartlomiej Zolnierkiewicz: "Re: protecting source code in 2.6"
    Date:	Thu, 20 May 2004 16:03:30 +0200
    To: Ricky Beam <jfbeam@bluetronic.net>
    
    

    * Ricky Beam <jfbeam@bluetronic.net> wrote:

    > It looks like somewhere in the path of release_console_sem() more than
    > one CPU is running the log. [...]

    the problem is this code in printk:

            if (oops_in_progress) {
                    /* If a crash is occurring, make sure we can't deadlock */
                    spin_lock_init(&logbuf_lock);
                    /* And make sure that we print immediately */
                    init_MUTEX(&console_sem);
            }

    so two crashes on two separate CPUs can go on in parallel. The problem
    is not constrained to the serial line - i've seen it on VGA too (albeit
    there it's much more rare).

            Ingo
    -
    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/


  • Next message: Bartlomiej Zolnierkiewicz: "Re: protecting source code in 2.6"

    Relevant Pages

    • Re: overlaping printk
      ... > so two crashes on two separate CPUs can go on in parallel. ... One alternative way would be to use locks with timeouts for these two ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [Ipsec] Issue on input process of Linux native IPsec
      ... as they are not associated with a socket. ... Because your crashes where caused by blindly assuming the sk would never ... I may have even put the printk() in myself and tested. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: lockups with netconsole on e1000 on media insertion
      ... > have to bail out. ... That's why I think your first patch with this warning as well as a fix ... how bad is it to have a printk in a routine that is registered to ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.4.23aa1 ext3 oops
      ... >>After a quick browse of the assembler output the zeroing would appear to ... When that crashes, or if I can get the ... test running on another SMP box I will revert to 2.4.23 + the qla2300 ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Reiser4 lockups (no oops)
      ... seem to get kernel boot messages). ... Machine replies to pings but I can't ... The crashes seem ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)