diff options
author | Josh Poimboeuf <jpoimboe@redhat.com> | 2020-04-01 21:23:29 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-04-14 13:24:22 +0300 |
commit | b296695298d8632d8b703ac25fe70be34a07c0d9 (patch) | |
tree | 8ce418b7ccf51ec2dde50bfbb4d18560299ae255 /arch/x86/include/asm/mmu_context.h | |
parent | b401efc120a399dfda1f4d2858a4de365c9b08ef (diff) | |
download | linux-b296695298d8632d8b703ac25fe70be34a07c0d9.tar.xz |
objtool: Make BP scratch register warning more robust
If func is NULL, a seg fault can result.
This is a theoretical issue which was found by Coverity, ID: 1492002
("Dereference after null check").
Fixes: c705cecc8431 ("objtool: Track original function across branches")
Reported-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/afc628693a37acd287e843bcc5c0430263d93c74.1585761021.git.jpoimboe@redhat.com
Diffstat (limited to 'arch/x86/include/asm/mmu_context.h')
0 files changed, 0 insertions, 0 deletions