login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2009
»
November
»
24
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to detect GCC messing with mcount prologue
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Andrew Haley
Subject:
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to detect GCC messing with mcount prologue
Date: Tuesday, November 24, 2009 - 10:12 am
H. Peter Anvin wrote:
quoted text
> On 11/24/2009 07:46 AM, Andrew Haley wrote: >>> Yes, a lot. The difference is that -maccumulate-outgoing-args allocates >>> space for arguments of the callee with most arguments in the prologue, using >>> subtraction from sp, then to pass arguments uses movl XXX, 4(%esp) etc. >>> and the stack pointer doesn't usually change within the function (except for >>> alloca/VLAs). >>> With -mno-accumulate-outgoing-args args are pushed using push instructions >>> and stack pointer is constantly changing. >> Alright. So, it is possible in theory for gcc to generate code that >> only uses -maccumulate-outgoing-args when it needs to realign SP. >> And, therefore, we could have a nice option for the kernel: one with >> (mostly) good code density and never generates the bizarre code >> sequence in the prologue. > > If we're changing gcc anyway, then let's add the option of intercepting > the function at the point where the machine state is well-defined by > ABI, which is before the function stack frame is set up.
Hmm. On the x86 I suppose we could just inject a naked call instruction, but not all aeches allow us to call anything before we've saved the return address. Or are you talking x86 only? Andrew. --
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:
Re: [patch for 2.6.32? 1/3] hrtimers: remove the "timer_st ...
, Thomas Gleixner
, (Wed Nov 18, 12:30 pm)
[tip:timers/urgent] hrtimer: Fix /proc/timer_list regression
, tip-bot for Feng Tang
, (Wed Nov 18, 1:24 pm)
Re: [tip:timers/urgent] hrtimer: Fix /proc/timer_list regr ...
, Ingo Molnar
, (Thu Nov 19, 12:20 am)
Re: [tip:timers/urgent] hrtimer: Fix /proc/timer_list regr ...
, Thomas Gleixner
, (Thu Nov 19, 3:05 am)
BUG: function graph tracer function frame assumptions
, Thomas Gleixner
, (Thu Nov 19, 7:30 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Thomas Gleixner
, (Thu Nov 19, 8:37 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Andrew Haley
, (Thu Nov 19, 8:44 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, H. Peter Anvin
, (Thu Nov 19, 8:45 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Richard Guenther
, (Thu Nov 19, 8:49 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Richard Guenther
, (Thu Nov 19, 8:52 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, H. Peter Anvin
, (Thu Nov 19, 8:54 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Richard Guenther
, (Thu Nov 19, 8:57 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Steven Rostedt
, (Thu Nov 19, 9:02 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Thomas Gleixner
, (Thu Nov 19, 9:06 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, H. Peter Anvin
, (Thu Nov 19, 9:11 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Steven Rostedt
, (Thu Nov 19, 9:12 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Andrew Haley
, (Thu Nov 19, 9:17 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Frederic Weisbecker
, (Thu Nov 19, 9:19 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Thomas Gleixner
, (Thu Nov 19, 9:43 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Andi Kleen
, (Thu Nov 19, 10:37 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Linus Torvalds
, (Thu Nov 19, 10:39 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Thomas Gleixner
, (Thu Nov 19, 10:51 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Steven Rostedt
, (Thu Nov 19, 10:59 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Richard Guenther
, (Thu Nov 19, 11:03 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Andrew Haley
, (Thu Nov 19, 11:20 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Andrew Haley
, (Thu Nov 19, 11:22 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Thomas Gleixner
, (Thu Nov 19, 11:31 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Steven Rostedt
, (Thu Nov 19, 11:33 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Andrew Pinski
, (Thu Nov 19, 11:36 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Andrew Haley
, (Thu Nov 19, 11:36 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, H. Peter Anvin
, (Thu Nov 19, 11:37 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Linus Torvalds
, (Thu Nov 19, 11:38 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Thomas Gleixner
, (Thu Nov 19, 11:39 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Linus Torvalds
, (Thu Nov 19, 11:41 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Linus Torvalds
, (Thu Nov 19, 11:43 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Ingo Molnar
, (Thu Nov 19, 11:47 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Linus Torvalds
, (Thu Nov 19, 11:54 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Thomas Gleixner
, (Thu Nov 19, 12:01 pm)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Steven Rostedt
, (Thu Nov 19, 12:06 pm)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, David Daney
, (Thu Nov 19, 12:10 pm)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Steven Rostedt
, (Thu Nov 19, 12:28 pm)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Frederic Weisbecker
, (Thu Nov 19, 12:46 pm)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, H. Peter Anvin
, (Thu Nov 19, 12:50 pm)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Ingo Molnar
, (Thu Nov 19, 12:50 pm)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Kai Tietz
, (Thu Nov 19, 12:54 pm)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Frederic Weisbecker
, (Thu Nov 19, 1:05 pm)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Steven Rostedt
, (Thu Nov 19, 1:05 pm)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Linus Torvalds
, (Thu Nov 19, 1:06 pm)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Steven Rostedt
, (Thu Nov 19, 1:10 pm)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Steven Rostedt
, (Thu Nov 19, 1:17 pm)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Frederic Weisbecker
, (Thu Nov 19, 1:25 pm)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Frederic Weisbecker
, (Thu Nov 19, 1:28 pm)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Thomas Gleixner
, (Thu Nov 19, 1:36 pm)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Linus Torvalds
, (Thu Nov 19, 1:36 pm)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Steven Rostedt
, (Thu Nov 19, 1:44 pm)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Jeff Law
, (Thu Nov 19, 2:05 pm)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Jeff Law
, (Thu Nov 19, 2:12 pm)
[PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to detec ...
, Steven Rostedt
, (Thu Nov 19, 10:23 pm)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, Steven Rostedt
, (Thu Nov 19, 10:32 pm)
[PATCH] gcc mcount-nofp was Re: BUG: GCC-4.4.x changes the ...
, Andi Kleen
, (Fri Nov 20, 2:57 am)
[tip:timers/urgent] hrtimer: Fix /proc/timer_list regression
, tip-bot for Feng Tang
, (Fri Nov 20, 3:30 am)
Re: [PATCH] gcc mcount-nofp was Re: BUG: GCC-4.4.x changes ...
, Steven Rostedt
, (Fri Nov 20, 5:34 am)
Re: [tip:timers/urgent] hrtimer: Fix /proc/timer_list regr ...
, Heiko Carstens
, (Fri Nov 20, 7:19 am)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, Steven Rostedt
, (Fri Nov 20, 10:00 am)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, H. Peter Anvin
, (Fri Nov 20, 10:13 am)
Re: [PATCH] gcc mcount-nofp was Re: BUG: GCC-4.4.x changes ...
, H. Peter Anvin
, (Fri Nov 20, 12:06 pm)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, Andrew Haley
, (Fri Nov 20, 12:35 pm)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, Steven Rostedt
, (Fri Nov 20, 12:46 pm)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, H. Peter Anvin
, (Fri Nov 20, 12:49 pm)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, Ingo Molnar
, (Sun Nov 22, 2:05 am)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, H.J. Lu
, (Sun Nov 22, 2:38 am)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, Andrew Haley
, (Sun Nov 22, 10:20 am)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, H.J. Lu
, (Sun Nov 22, 4:30 pm)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Jakub Jelinek
, (Mon Nov 23, 2:16 am)
Re: BUG: GCC-4.4.x changes the function frame on some func ...
, Thomas Gleixner
, (Mon Nov 23, 2:51 am)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, Andrew Haley
, (Tue Nov 24, 7:43 am)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, Thomas Gleixner
, (Tue Nov 24, 7:55 am)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, Jakub Jelinek
, (Tue Nov 24, 8:06 am)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, Andrew Haley
, (Tue Nov 24, 8:32 am)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, Jakub Jelinek
, (Tue Nov 24, 8:36 am)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, Andrew Haley
, (Tue Nov 24, 8:46 am)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, H. Peter Anvin
, (Tue Nov 24, 9:38 am)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, Andrew Haley
, (Tue Nov 24, 10:12 am)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, Steven Rostedt
, (Tue Nov 24, 10:30 am)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, H. Peter Anvin
, (Tue Nov 24, 12:55 pm)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, Thomas Gleixner
, (Wed Nov 25, 8:29 am)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, Ingo Molnar
, (Wed Nov 25, 8:44 am)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, Thomas Gleixner
, (Wed Nov 25, 8:53 am)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, Ingo Molnar
, (Wed Nov 25, 9:25 am)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, Jakub Jelinek
, (Wed Nov 25, 9:44 am)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, H. Peter Anvin
, (Wed Nov 25, 1:05 pm)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, H. Peter Anvin
, (Wed Nov 25, 1:12 pm)
Re: [PATCH][GIT PULL][v2.6.32] tracing/x86: Add check to d ...
, Andrew Haley
, (Wed Nov 25, 2:00 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 041/196] kobject: add kobject_init_and_add function
Lukas Hejtmanek
Re: Another libata error related to OCZ SSD
Greg Kroah-Hartman
[PATCH 023/196] MCP_UCB1200: Convert from class_device to device
Florian Fainelli
Re: System clock runs too fast after 2.6.27 -> 2.6.28.1 upgrade
Christoph Lameter
[patch 1/4] mmu_notifier: Core code
git
:
Johannes Schindelin
Re: [PATCH 1/2] Add strbuf_initf()
John Bito
[EGIT] Push to GitHub caused corruption
Jakub Narebski
Re: [PATCH 0/2] gitweb: patch view
Junio C Hamano
Re: [PATCH] When a remote is added but not fetched, tell the user.
Andy Parkins
Re: [RFC] Submodules in GIT
git-commits-head
:
Linux Kernel Mailing List
ahci: Workaround HW bug for SB600/700 SATA controller PMP support
Linux Kernel Mailing List
V4L/DVB (11086): au0828: rename macro for currently non-function VBI support
Linux Kernel Mailing List
ceph: client types
Linux Kernel Mailing List
ceph: on-wire types
Linux Kernel Mailing List
crypto: chainiv - Use kcrypto_wq instead of keventd_wq
linux-netdev
:
Andrew Morton
Re: [Bugme-new] [Bug 14969] New: b44: WOL does not work in suspended state
Giuseppe CAVALLARO
Re: [PATCH 03/13] stmmac: add the new Header file for stmmac platform data
Taku Izumi
[PATCH 3/3] ixgbe: add registers etc. printout code just before resetting adapters
Eric Dumazet
rps: some comments
Thomas Gleixner
Re: [RFC PATCH 02/12] On Tue, 23 Sep 2008, David Miller wrote:
openbsd-misc
:
Stephan Andreas
problems with login after xlock in OpenBSD release 4.7
pmc
Make A Change. Alcoholism and Drug Addiction Treatment
ropers
Re: what exactly is enc0?
Fuad NAHDI
Re: What does your environment look like?
Matthew Szudzik
Typo on OpenBSD 4.4 CD Set
Colocation donated by:
Syndicate