public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* i386 ABI and the stack
@ 2006-06-24  1:37 Albert Cahalan
  2006-06-24  1:47 ` Linus Torvalds
  2006-06-24  1:50 ` H. Peter Anvin
  0 siblings, 2 replies; 8+ messages in thread
From: Albert Cahalan @ 2006-06-24  1:37 UTC (permalink / raw)
  To: linux-kernel, Linus Torvalds, 76306.1226, ak, akpm

I just saw git commit 21528454f6dd18231ae20102f98aa8f51b6ec1b9
go in with this:

+ * Accessing the stack below %esp is always a bug.
+ * The large cushion allows instructions like enter
+ * and pusha to work. ("enter $65535,$31" pushes
+ * 32 pointers and then decrements %esp by 65535.)

Exactly how is an access below %esp a bug if we just added support?
It looks like we now have a 65664-byte red zone on i386, and probably
on x86-64 once the matching patch goes in. (the space reserved by
signal handlers may differ, though perhaps it should not)

This is water under the bridge anyway, because of gcc 2.xx.x bugs.

It seems that we're throwing away performance if we discourage
the compiler from taking advantage of this area to optimize
leaf functions and perhaps improve instruction scheduling.

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

end of thread, other threads:[~2006-06-24 11:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-24  1:37 i386 ABI and the stack Albert Cahalan
2006-06-24  1:47 ` Linus Torvalds
2006-06-24  1:59   ` H. Peter Anvin
2006-06-24  2:11     ` Linus Torvalds
2006-06-24  2:43       ` Albert Cahalan
2006-06-24  5:20         ` H. Peter Anvin
2006-06-24 11:03         ` Arjan van de Ven
2006-06-24  1:50 ` H. Peter Anvin

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