All of lore.kernel.org
 help / color / mirror / Atom feed
* unsafe printk
@ 2003-10-17  1:36 Albert Cahalan
  2003-10-17  9:52 ` Pavel Machek
  2003-10-17 12:38 ` Richard B. Johnson
  0 siblings, 2 replies; 4+ messages in thread
From: Albert Cahalan @ 2003-10-17  1:36 UTC (permalink / raw)
  To: linux-kernel mailing list

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.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-10-18  0:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-17  1:36 unsafe printk Albert Cahalan
2003-10-17  9:52 ` Pavel Machek
2003-10-17 23:52   ` Albert Cahalan
2003-10-17 12:38 ` Richard B. Johnson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.