login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
February
»
28
Re: Wanted: simple, safe x86 stack overflow detection
view
thread
Previous message: [
thread
] [
date
] [author]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Bill Irwin
Subject:
Re: Wanted: simple, safe x86 stack overflow detection
Date: Wednesday, February 28, 2007 - 4:20 pm
On Wed, Feb 28, 2007 at 09:41:44PM +0100, Andi Kleen wrote:
quoted text
> Likely already too late then -- if critical state is overwritten > you crashed before. Also a lot of stack intensive codes > relatively large unused holes so it might miss the canary completely > Anyways if you want a crash on context switch in the non > hole case you can probably get it by just rearranging thread_info a bit. > e.g. put preempt_count first. Any corruption of that will lead > to schedule complaining. > Don't think it is worth it though. > I suppose one could have a CONFIG_DEBUG_STACK_OVERFLOW that gets > the stacks from vmalloc which would catch any overflow with its > guard pages. This is you would need to change __pa() to handle > that too because there might be still some drivers that do > DMA on stack addresses. Would be somewhat ugly but doable. > But I have my doubts it is worth it again -- in my experience static > analysis works well enough to trace them down and > there are not that many anyways.
I don't know about the rest of the world, but halting the system in the case of memory corruption sounds like an extremely good idea to me. -- wli -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [author]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Wanted: simple, safe x86 stack overflow detection
, Chuck Ebbert
, (Wed Feb 28, 7:27 am)
Re: Wanted: simple, safe x86 stack overflow detection
, Thiago Galesi
, (Wed Feb 28, 9:31 am)
Re: Wanted: simple, safe x86 stack overflow detection
, Andi Kleen
, (Wed Feb 28, 1:41 pm)
Re: Wanted: simple, safe x86 stack overflow detection
, Bill Irwin
, (Wed Feb 28, 4:20 pm)
Re: Wanted: simple, safe x86 stack overflow detection
, Jan Engelhardt
, (Wed Feb 28, 4:36 pm)
Re: Wanted: simple, safe x86 stack overflow detection
, Bill Irwin
, (Wed Feb 28, 4:45 pm)
Re: Wanted: simple, safe x86 stack overflow detection
, Bill Irwin
, (Sat Mar 3, 6:50 pm)
Re: Wanted: simple, safe x86 stack overflow detection
, Arnd Bergmann
, (Sun Mar 4, 6:18 pm)
Re: Wanted: simple, safe x86 stack overflow detection
, Andi Kleen
, (Mon Mar 5, 5:39 am)
Re: Wanted: simple, safe x86 stack overflow detection
, Chuck Ebbert
, (Tue Mar 6, 11:59 am)
Re: Wanted: simple, safe x86 stack overflow detection
, Hugh Dickins
, (Tue Mar 6, 12:43 pm)
Re: Wanted: simple, safe x86 stack overflow detection
, Bill Irwin
, (Tue Mar 6, 1:06 pm)
Re: Wanted: simple, safe x86 stack overflow detection
, Bill Irwin
, (Tue Mar 6, 1:34 pm)
Re: Wanted: simple, safe x86 stack overflow detection
, Arjan van de Ven
, (Tue Mar 6, 9:28 pm)
Re: Wanted: simple, safe x86 stack overflow detection
, Bill Irwin
, (Tue Mar 6, 11:44 pm)
Re: Wanted: simple, safe x86 stack overflow detection
, Arjan van de Ven
, (Wed Mar 7, 5:34 am)
Re: Wanted: simple, safe x86 stack overflow detection
, Bill Irwin
, (Wed Mar 7, 7:48 am)
Re: Wanted: simple, safe x86 stack overflow detection
, Arjan van de Ven
, (Wed Mar 7, 8:04 am)
Re: Wanted: simple, safe x86 stack overflow detection
, Avi Kivity
, (Thu Mar 8, 12:43 am)
Re: Wanted: simple, safe x86 stack overflow detection
, Eric W. Biederman
, (Mon Mar 19, 1:53 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Fortier,Vincent [Montreal]
2.6.21.5 june 30th to july 1st date hang?
Jeff Dike
[ PATCH 2/6 ] UML - Formatting fixes around os_{read_write}_file callers
Liam Girdwood
[PATCH 07/13] regulator: regulator test harness
Oleg Nesterov
Re: Getting the new RxRPC patches upstream
Stefan Seyfried
Re: 2.6.19-rc5: grub is much slower resuming from suspend-to-disk than in 2.6.18
linux-netdev
:
Arnaud Ebalard
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b58019f0
Jan Engelhardt
Re: [PATCH iptables] extension: add xt_cpu match
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Sebastian Andrzej Siewior
[PATCH 8/8] net/emergency: remove locking from reycling pool if emergncy pools are...
David Miller
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2
git
:
Jakub Narebski
Re: git on MacOSX and files with decomposed utf-8 file names
Brandon Casey
Re: Thunderbird and patches (was Re: [PATCH v2] Enable setting attach as the def...
Christian Couder
[PATCH 1/3] rev-parse: add test script for "--verify"
Ramkumar Ramachandra
Re: [GSoC update] git-remote-svn: The final one
Junio C Hamano
Re: git-rm isn't the inverse action of git-add
openbsd-misc
:
Joachim Schipper
Re: UVC Webcams
Florin Andrei
SOLVED [was: firewall is very slow, something's wrong]
Todd Alan Smith
Re: Microsoft gets the Most Secure Operating Systems award
Neal Hogan
Re: Need Advice: Thinkpad T60 or T61?
Sam Fourman Jr.
Re: Real men don't attack straw men
git-commits-head
:
Linux Kernel Mailing List
ACPI: Disable ARB_DISABLE on platforms where it is not needed
Linux Kernel Mailing List
m68knommu: add read_barrier_depends() and irqs_disabled_flags()
Linux Kernel Mailing List
[MTD] Add mtd panic_write function pointer
Linux Kernel Mailing List
[ARM] pxa: remove duplicate select statements from Kconfig
Linux Kernel Mailing List
mlx4_core: Don't read reserved fields in mlx4_QUERY_ADAPTER()
Colocation donated by:
Syndicate