lkml.org 
[lkml]   [2015]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4 0/3] Compile-time stack frame pointer validation
On Fri, 22 May 2015, Josh Poimboeuf wrote:

> Hm, alternatives do complicate things a bit. It *is* a false positive,
> but not necessarily because its part of an alternative instruction
> block.
>
> The above code would be patched into memmove(), which is a leaf function
> because it doesn't call any other functions. Leaf functions don't need
> frame pointer logic, so we can ignore them.
>
> If instead the above code were patched into a non-leaf function, we'd
> have to change it to restore the frame pointer before returning.

Is this really only a problem of alternatives? How about
dynamically-enabled tracepoints?

--
Jiri Kosina
SUSE Labs


\
 
 \ /
  Last update: 2015-05-23 00:01    [W:0.062 / U:1.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site