Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


Top White Papers

More on LinuxToday


KernelTrap: Who Owns The Stack?

Apr 27, 2006, 22:45 (0 Talkback[s])

"In a short thread on the lkml, Linux creator Linus Torvalds discussed recently added hacks to prevent gcc from overwriting the argument stack in asmlinkage functions on the x86 platform. The existing fix involves using prevent_tail_call() to prevent the gcc tail call optimization, though Linus notes, 'the problem isn't even really fundamentally tailcalls, that just is the detail that happens to trigger the problem (but I could imagine other situations triggering it _too_.' Tail calls are when the last line of one function returns a call to another function, something commonly optimized by compilers..."

Complete Story

Related Stories: