linux-brain/tools/objtool
Josh Poimboeuf c818b2face objtool: Move objtool_file struct off the stack
commit 0c671812f1 upstream.

Objtool uses over 512k of stack, thanks to the hash table embedded in
the objtool_file struct.  This causes an unnecessarily large stack
allocation and breaks users with low stack limits.

Move the struct off the stack.

Fixes: 042ba73fe7 ("objtool: Add several performance improvements")
Reported-by: Vassili Karpov <moosotc@gmail.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/df92dcbc4b84b02ffa252f46876df125fb56e2d7.1552954176.git.jpoimboe@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-03-27 14:13:03 +09:00
..
Documentation objtool: sync up with the 4.14.47 version of objtool 2018-06-05 10:28:57 +02:00
arch/x86 objtool: header file sync-up 2018-06-05 10:28:58 +02:00
.gitignore objtool: update .gitignore file 2018-06-26 08:08:05 +08:00
Build objtool: sync up with the 4.14.47 version of objtool 2018-06-05 10:28:57 +02:00
Makefile Kbuild: fix # escaping in .cmd files for future Make 2018-07-11 16:26:45 +02:00
arch.h objtool: sync up with the 4.14.47 version of objtool 2018-06-05 10:28:57 +02:00
builtin-check.c objtool: sync up with the 4.14.47 version of objtool 2018-06-05 10:28:57 +02:00
builtin-orc.c objtool: sync up with the 4.14.47 version of objtool 2018-06-05 10:28:57 +02:00
builtin.h objtool: sync up with the 4.14.47 version of objtool 2018-06-05 10:28:57 +02:00
cfi.h objtool: sync up with the 4.14.47 version of objtool 2018-06-05 10:28:57 +02:00
check.c objtool: Move objtool_file struct off the stack 2019-03-27 14:13:03 +09:00
check.h objtool: sync up with the 4.14.47 version of objtool 2018-06-05 10:28:57 +02:00
elf.c objtool: Fix segfault in .cold detection with -ffunction-sections 2018-12-17 09:38:32 +01:00
elf.h objtool: Support GCC 8's cold subfunctions 2018-06-05 10:28:57 +02:00
objtool.c objtool: sync up with the 4.14.47 version of objtool 2018-06-05 10:28:57 +02:00
orc.h objtool: sync up with the 4.14.47 version of objtool 2018-06-05 10:28:57 +02:00
orc_dump.c objtool: sync up with the 4.14.47 version of objtool 2018-06-05 10:28:57 +02:00
orc_gen.c objtool: sync up with the 4.14.47 version of objtool 2018-06-05 10:28:57 +02:00
special.c objtool: sync up with the 4.14.47 version of objtool 2018-06-05 10:28:57 +02:00
special.h objtool: Add tool to perform compile-time stack metadata validation 2016-02-29 08:35:12 +01:00
sync-check.sh objtool: sync up with the 4.14.47 version of objtool 2018-06-05 10:28:57 +02:00
warn.h objtool: sync up with the 4.14.47 version of objtool 2018-06-05 10:28:57 +02:00