diff options
| author | Eric Sandeen <[email protected]> | 2008-07-25 08:45:27 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-07-25 17:53:26 +0000 |
| commit | 585e93ae83b80c874bf4eb50a239027cef5db4af (patch) | |
| tree | b4564c31f5f731f5491fa145fd9ff52c297b6101 /lib/list_debug.c | |
| parent | lzo: use get/put_unaligned_* helpers (diff) | |
| download | kernel-585e93ae83b80c874bf4eb50a239027cef5db4af.tar.gz kernel-585e93ae83b80c874bf4eb50a239027cef5db4af.zip | |
find dynamic stack allocations in checkstack.pl
Currently, checkstack.pl only looks for fixed subtractions from the stack
pointer. However, things like this:
void function(int size)
{
char stackbuster[size << 2];
...
are certainly worth pointing out, I think.
This could perhaps be done more cleanly, and the following patch only
adds "dynamic" REs for x86 and x86_64, but it works:
0x00b0 crypto_cbc_decrypt_inplace [cbc]: Dynamic (%rax)
0x00ad crypto_pcbc_decrypt_inplace [pcbc]: Dynamic (%rax)
0x02f6 crypto_pcbc_encrypt_inplace [pcbc]: Dynamic (%rax)
0x036c _crypto_xcbc_digest_setkey [xcbc]: Dynamic (%rax)
...
(Inspired by Keith Owens' old stack-check script)
Signed-off-by: Eric Sandeen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/list_debug.c')
0 files changed, 0 insertions, 0 deletions
