vmsplice exploits, stack protector and Makefiles

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Arjan van de Ven
Date: Tuesday, February 12, 2008 - 10:00 am

Hi,

I just read the excellent LWN writeup of the vmsplice security thing, and that got me
wondering why this attack wasn't stopped by the CONFIG_CC_STACKPROTECTOR option... because
it plain should have been...

some analysis later.. it turns out that the following line in the top level Makefile,
added by you in October 2007, entirely disables CONFIG_CC_STACKPROTECTOR ;(
With this line removed the exploit will be nicely stopped.

# Force gcc to behave correct even for buggy distributions
CFLAGS          += $(call cc-option, -fno-stack-protector)


Now I realize that certain distros have patched gcc to compensate for their lack of distro
wide CFLAGS, and it's great to work around that... but would there be a way to NOT
disable this for CONFIG_CC_STACKPROTECTOR please? It would have made this
exploit not possible for those kernels that enable this feature (and that includes distros
like Fedora)

Greetings,
   Arjan van de Ven

-- 
If you want to reach me at my work email, use arjan@linux.intel.com
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
vmsplice exploits, stack protector and Makefiles, Arjan van de Ven, (Tue Feb 12, 10:00 am)
Re: vmsplice exploits, stack protector and Makefiles, Sam Ravnborg, (Tue Feb 12, 11:50 am)
Re: vmsplice exploits, stack protector and Makefiles, Arjan van de Ven, (Tue Feb 12, 12:08 pm)
Re: vmsplice exploits, stack protector and Makefiles, Sam Ravnborg, (Tue Feb 12, 12:36 pm)
Re: vmsplice exploits, stack protector and Makefiles, Ingo Molnar, (Wed Feb 13, 8:29 am)
Re: vmsplice exploits, stack protector and Makefiles, Linus Torvalds, (Wed Feb 13, 8:53 am)
Re: vmsplice exploits, stack protector and Makefiles, Ingo Molnar, (Wed Feb 13, 9:01 am)
Re: vmsplice exploits, stack protector and Makefiles, Randy Dunlap, (Wed Feb 13, 9:29 am)
Re: vmsplice exploits, stack protector and Makefiles, Ingo Molnar, (Wed Feb 13, 9:48 am)
Re: vmsplice exploits, stack protector and Makefiles, Sam Ravnborg, (Wed Feb 13, 10:16 am)
Re: vmsplice exploits, stack protector and Makefiles, Ingo Molnar, (Wed Feb 13, 11:12 pm)
Re: vmsplice exploits, stack protector and Makefiles, Ingo Molnar, (Wed Feb 13, 11:16 pm)
Re: vmsplice exploits, stack protector and Makefiles, Ingo Molnar, (Thu Feb 14, 12:30 am)
Re: vmsplice exploits, stack protector and Makefiles, Sam Ravnborg, (Thu Feb 14, 12:43 am)
Re: vmsplice exploits, stack protector and Makefiles, Jan Engelhardt, (Thu Feb 14, 5:20 am)