diff options
author | Josh Poimboeuf <jpoimboe@redhat.com> | 2019-07-17 20:36:47 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-07-18 21:01:07 +0200 |
commit | c705cecc8431951b4f34178e6b1db51b4a504c43 (patch) | |
tree | ab0c4bca0040ad0a59879bc0953f1babee4279d3 /kernel/utsname.c | |
parent | a7e47f26039c26312a4144c3001b4e9fa886bd45 (diff) | |
download | linux-c705cecc8431951b4f34178e6b1db51b4a504c43.tar.gz linux-c705cecc8431951b4f34178e6b1db51b4a504c43.tar.bz2 linux-c705cecc8431951b4f34178e6b1db51b4a504c43.zip |
objtool: Track original function across branches
If 'insn->func' is NULL, objtool skips some important checks, including
sibling call validation. So if some .fixup code does an invalid sibling
call, objtool ignores it.
Treat all code branches (including alts) as part of the original
function by keeping track of the original func value from
validate_functions().
This improves the usefulness of some clang function fallthrough
warnings, and exposes some additional kernel bugs in the process.
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/505df630f33c9717e1ccde6e4b64c5303135c25f.1563413318.git.jpoimboe@redhat.com
Diffstat (limited to 'kernel/utsname.c')
0 files changed, 0 insertions, 0 deletions