unsafe printk
From: Albert Cahalan (albert_at_users.sf.net)
Date: 10/17/03
- Previous message: Jeff Garzik: "Re: [ANNOUNCE] iSCSI target implementation"
- Next in thread: Pavel Machek: "Re: unsafe printk"
- Reply: Pavel Machek: "Re: unsafe printk"
- Reply: Richard B. Johnson: "Re: unsafe printk"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/
- Previous message: Jeff Garzik: "Re: [ANNOUNCE] iSCSI target implementation"
- Next in thread: Pavel Machek: "Re: unsafe printk"
- Reply: Pavel Machek: "Re: unsafe printk"
- Reply: Richard B. Johnson: "Re: unsafe printk"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|