login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
July
»
17
Re: KVM overflows the stack
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Dave Hansen <dave@...>
To: Avi Kivity <avi@...>
Cc: linux-kernel@vger.kernel.org <linux-kernel@...>, kvm-devel <kvm@...>, Anthony N. Liguori [imap] <aliguori@...>
Subject:
Re: KVM overflows the stack
Date: Thursday, July 17, 2008 - 2:14 am
On Thu, 2008-07-17 at 08:52 +0300, Avi Kivity wrote:
quoted text
> Dave Hansen wrote: > > Avi, how would you like this fixed? I'd be happy to prepare some > > patches. Do you have a particular approach that you think we should > > use? Just make the big objects dynamically allocated? > > > > Yes, things like kvm_lapic_state are way too big to be on the stack. > There's an additional problem here, that apparently your gcc (which > version?) doesn't fold objects in a switch statement into the same stack > slot:
$ gcc -v gcc version 3.4.6 (Ubuntu 3.4.6-6ubuntu5)
quoted text
> switch (...) { > case x: { > struct medium a; > ... > } > case y: > struct medium b; > ... > } > }; > > These could be solved either by stack allocation, or by moving into > functions marked noinline. Whichever is easier.
Did you mean dynamic allocation? :) -- Dave --
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:
kvm causing memory corruption? ~2.6.25-rc6
, Dave Hansen
, (Tue Mar 25, 5:12 pm)
Re: [kvm-devel] kvm causing memory corruption? ~2.6.25-rc6
, Avi Kivity
, (Wed Mar 26, 5:50 am)
Re: [kvm-devel] kvm causing memory corruption? ~2.6.25-rc6
, Dave Hansen
, (Wed Mar 26, 12:52 pm)
Re: [kvm-devel] kvm causing memory corruption? ~2.6.25-rc6
, Avi Kivity
, (Wed Mar 26, 12:58 pm)
Re: [kvm-devel] kvm causing memory corruption? ~2.6.25-rc6
, Dave Hansen
, (Wed Mar 26, 1:16 pm)
Re: [kvm-devel] kvm causing memory corruption? ~2.6.25-rc6
, Avi Kivity
, (Thu Mar 27, 5:36 am)
Re: [kvm-devel] kvm causing memory corruption? ~2.6.25-rc6
, Dave Hansen
, (Thu Mar 27, 11:50 am)
Re: [kvm-devel] kvm causing memory corruption? ~2.6.25-rc6
, Avi Kivity
, (Thu Mar 27, 11:53 am)
Re: [kvm-devel] kvm causing memory corruption? ~2.6.25-rc6
, Dave Hansen
, (Thu Mar 27, 12:30 pm)
Re: [kvm-devel] kvm causing memory corruption? ~2.6.25-rc6
, Avi Kivity
, (Thu Mar 27, 6:10 am)
Re: [kvm-devel] kvm causing memory corruption? ~2.6.25-rc6
, Dave Hansen
, (Thu Mar 27, 10:55 am)
Re: [kvm-devel] kvm causing memory corruption? ~2.6.25-rc6
, Avi Kivity
, (Thu Mar 27, 10:59 am)
Re: kvm causing memory corruption? now 2.6.26-rc4
, Dave Hansen
, (Mon Jun 2, 6:30 pm)
Re: kvm causing memory corruption? now 2.6.26-rc4
, Avi Kivity
, (Wed Jun 4, 9:42 am)
Re: kvm causing memory corruption? now 2.6.26-rc4
, Dave Hansen
, (Fri Jun 6, 3:41 am)
Re: kvm causing memory corruption? now 2.6.26-rc4
, Avi Kivity
, (Thu Jun 12, 9:10 am)
Re: kvm causing memory corruption? now 2.6.26-rc8
, Dave Hansen
, (Tue Jul 15, 2:57 pm)
Re: kvm causing memory corruption? now 2.6.26
, Dave Hansen
, (Wed Jul 16, 5:44 pm)
Re: kvm causing memory corruption? now 2.6.26
, Avi Kivity
, (Thu Jul 17, 1:38 am)
KVM overflows the stack
, Dave Hansen
, (Wed Jul 16, 6:48 pm)
Re: KVM overflows the stack
, Dave Hansen
, (Thu Jul 17, 2:27 am)
Re: KVM overflows the stack
, Avi Kivity
, (Thu Jul 17, 1:52 am)
[PATCH] update kvm's anon_inodes.c for r/o bind mounts
, Dave Hansen
, (Thu Jul 17, 2:45 am)
Re: [PATCH] update kvm's anon_inodes.c for r/o bind mounts
, Avi Kivity
, (Sat Jul 19, 3:33 am)
Re: KVM overflows the stack
, Dave Hansen
, (Thu Jul 17, 2:14 am)
Re: KVM overflows the stack
, Avi Kivity
, (Thu Jul 17, 2:42 am)
Re: KVM overflows the stack
, Roland Dreier
, (Thu Jul 17, 2:08 am)
Re: KVM overflows the stack
, Dave Hansen
, (Thu Jul 17, 10:06 am)
Re: KVM overflows the stack
, Avi Kivity
, (Thu Jul 17, 10:15 am)
Re: kvm causing memory corruption? now 2.6.26-rc4
, Dave Hansen
, (Mon Jun 16, 2:07 pm)
Re: kvm causing memory corruption? now 2.6.26-rc4
, Dave Hansen
, (Mon Jun 2, 8:59 pm)
Re: [kvm-devel] kvm causing memory corruption? ~2.6.25-rc6
, Dave Hansen
, (Thu Mar 27, 12:30 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Thomas Gleixner
Re: Linux 2.6.21-rc1
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
James Bottomley
[Ksummit-2008-discuss] Fixing the Kernel Janitors project
James Morris
Re: LSM conversion to static interface
git
:
linux-netdev
:
Natalie Protasevich
[BUG] New Kernel Bugs
Christoph Hellwig
Re: [PATCH 06/32] IGET: Mark iget() and read_inode() as being obsolete [try #2]
Linus Torvalds
Re: [GIT]: Networking
Jarek Poplawski
[PATCH take 2] pkt_sched: Protect gen estimators under est_lock.
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
505 guests
online.
Syndicate