public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* ptrace "fix" breaks ia64
@ 2004-07-07 18:22 David Mosberger
  2004-07-07 20:47 ` Roland McGrath
  0 siblings, 1 reply; 4+ messages in thread
From: David Mosberger @ 2004-07-07 18:22 UTC (permalink / raw)
  To: roland; +Cc: torvalds, linux-kernel, linux-ia64

Roland,

Peter Chubb found that your recent ptrace change to fix x86-64 access
to the 32-bit vsyscall page breaks ia64.  See:

 http://www.gelato.unsw.edu.au/linux-ia64/0407/10253.html

The problem is due to the fact that the gate page on ia64 really does
live in the kernel-mapped segment (as your original code correctly
assumed).  Furthermore, pgd_offset_k() is different from pgd_offset()
since the kernel-mapped segment gets a full page-directory inside a
single region, whereas user-space regions get only 1/8th of a
page-directory, so it's not OK to use pgd_offset() in lieu of
pgd_offset().

As Peter's mail suggests, we _could_ make pgd_offset() smarter by
automatically redirecting it to pgd_offset_k() when necessary, but
that's not a nice solution because it would slow down everything else
and would kind of defeat the purpose of having separate pgd_offset_k()
and pgd_offset() macros.

I suppose we could have a new macro pgd_offset_gate() or something
along those lines to accommodate platform-differences in where the
gage page lives.

	--david

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

end of thread, other threads:[~2004-07-08  5:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-07 18:22 ptrace "fix" breaks ia64 David Mosberger
2004-07-07 20:47 ` Roland McGrath
2004-07-08  5:15   ` David Mosberger
2004-07-08  5:19   ` David Mosberger

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