[GIT PULL] objtool/urgent for 5.8

From: Borislav Petkov
Date: Sun Jun 28 2020 - 10:12:56 EST


Hi Linus,

please pull three fixes from peterz suppressing KCOV instrumentation in
noinstr sections.

Thx.

---

The following changes since commit b3a9e3b9622ae10064826dccb4f7a52bd88c7407:

Linux 5.8-rc1 (2020-06-14 12:45:04 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/objtool_urgent_for_5.8_rc3

for you to fetch changes up to 0f1441b44e823a74f3f3780902a113e07c73fbf6:

objtool: Fix noinstr vs KCOV (2020-06-18 17:36:33 +0200)

----------------------------------------------------------------
Peter Zijlstra says:

Address KCOV vs noinstr. There is no function attribute to selectively
suppress KCOV instrumentation, instead teach objtool to NOP out the
calls in noinstr functions.

This cures a bunch of KCOV crashes (as used by syzcaller).

----------------------------------------------------------------
Peter Zijlstra (3):
objtool: Clean up elf_write() condition
objtool: Provide elf_write_{insn,reloc}()
objtool: Fix noinstr vs KCOV

arch/x86/Kconfig | 2 +-
tools/objtool/arch.h | 2 ++
tools/objtool/arch/x86/decode.c | 18 +++++++++++
tools/objtool/arch/x86/include/arch_elf.h | 6 ++++
tools/objtool/check.c | 23 +++++++++++++-
tools/objtool/elf.c | 53 +++++++++++++++++++++++++++++--
tools/objtool/elf.h | 12 +++++--
tools/objtool/orc_gen.c | 2 +-
8 files changed, 109 insertions(+), 9 deletions(-)
create mode 100644 tools/objtool/arch/x86/include/arch_elf.h

--
Regards/Gruss,
Boris.

SUSE Software Solutions Germany GmbH, GF: Felix ImendÃrffer, HRB 36809, AG NÃrnberg