summaryrefslogtreecommitdiffstats
path: root/samples/trace_printk
diff options
context:
space:
mode:
authorJosh Poimboeuf2019-07-18 03:36:47 +0200
committerThomas Gleixner2019-07-18 21:01:07 +0200
commitc705cecc8431951b4f34178e6b1db51b4a504c43 (patch)
treeab0c4bca0040ad0a59879bc0953f1babee4279d3 /samples/trace_printk
parentobjtool: Add mcsafe_handle_tail() to the uaccess safe list (diff)
downloadkernel-qcow2-linux-c705cecc8431951b4f34178e6b1db51b4a504c43.tar.gz
kernel-qcow2-linux-c705cecc8431951b4f34178e6b1db51b4a504c43.tar.xz
kernel-qcow2-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 'samples/trace_printk')
0 files changed, 0 insertions, 0 deletions