public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* user-space unaligned accesses
@ 2003-10-08 14:42 Bjorn Helgaas
  2003-10-08 21:46 ` Grant Grundler
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Bjorn Helgaas @ 2003-10-08 14:42 UTC (permalink / raw)
  To: linux-ia64

I got this from somebody at Red Hat.  Anybody want to comment on it?


-------------------------------------------------------
...
The ia64 architecture does a tty_write
on a userspace unaligned access. Not only is this extremenly annoying,
it's also very broken since the tty may well be suspended etc etc.
Doing a printk on such an access by default is very broken already,
lets not make it worse



--- linux/arch/ia64/kernel/unaligned.c~	2003-09-30 11:04:08.000000000 +0200
+++ linux/arch/ia64/kernel/unaligned.c	2003-09-30 11:04:08.000000000 +0200
@@ -1340,12 +1340,6 @@
 			len = sprintf(buf, "%s(%d): unaligned access to 0x%016lx, "
 				      "ip=0x%016lx\n\r", current->comm, current->pid,
 				      ifa, regs->cr_iip + ipsr->ri);
-			/*
-			 * Don't call tty_write_message() if we're in the kernel; we might
-			 * be holding locks...
-			 */
-			if (user_mode(regs))
-				tty_write_message(current->tty, buf);
 			buf[len-1] = '\0';	/* drop '\r' */
 			printk(KERN_WARNING "%s", buf);	/* watch for command names containing %s */
 		}





-------------------------------------------------------


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

end of thread, other threads:[~2003-10-13 23:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-08 14:42 user-space unaligned accesses Bjorn Helgaas
2003-10-08 21:46 ` Grant Grundler
2003-10-08 22:54 ` Bjorn Helgaas
2003-10-08 23:36 ` David Mosberger
2003-10-09 13:53 ` Bjorn Helgaas
2003-10-11 23:22 ` Micah Parrish
2003-10-13 23:56 ` David Mosberger
2003-10-13 23:59 ` Duraid Madina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox