unsafe printk

From: Albert Cahalan (albert_at_users.sf.net)
Date: 10/17/03

  • Next message: Davide Libenzi: "Re: Transparent compression in the FS"
    To: linux-kernel mailing list <linux-kernel@vger.kernel.org>
    Date:	16 Oct 2003 21:36:18 -0400
    
    

    Suppose I name an executable this:
    "\n<0>Oops: EIP=0"

    That comes out as a KERN_EMERG log message,
    hitting the console and maybe a pager even.

    There seem to be a number of places in the
    kernel that printk current->comm without
    concern for what it may contain.

    Escape codes and non-ASCII can make for some
    interesting log messages as well. Terminals
    may have some programmable keys or answerback
    messages. So one day root is using grep on
    the log files, and they program the answerback
    string to contain a "\r\nrm -r /\r\n"...

    BTW, the 0x9b character is often an escape.

    -
    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: Davide Libenzi: "Re: Transparent compression in the FS"

    Relevant Pages

    • Re: dma ripping
      ... but when I get the log message "cdrom: ... It still rips but ... I get silence - it will rip the track OK, as in read through the correct ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Sony DSC-F505V USB broken in linux-2.6.0
      ... kernel: SCSI device sda: 126848 512-byte hdwr sectors ... What is missing in 2.6.0 is the 2.4.21 log message: ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [ltp] Re: ACPI Hibernate and Suspend Strange behavior 2.6.7/-mm1
      ... > I wonder why the system has got such a high affinity to IRQ 11. ... The BIOS default setting is to have all PCI interrupts on 11. ... here's a log message from the system when it tries to come ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • RE: psmouse synchronization loss under load
      ... trackpoint) jumps around and clicks wildly on the desktop.... ... The log message is identical. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: unsafe printk
      ... > That comes out as a KERN_EMERG log message, ... Terminals ... When do you have a heart between your knees? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)