Skip to contentSkip to conversation

objtool/urgent for 5.8

GIT PULL Merged Borislav Petkov 2 participants 2 messages Jun 28, 2020

lore
Share & tools
lore
#0 lore raw

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
Signature · 4 lines
Regards/Gruss,
    Boris.

SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg
merge bot Merged
#1 lore raw
The pull request you sent on Sun, 28 Jun 2020 16:12:45 +0200:

The pull request you sent on Sun, 28 Jun 2020 16:12:45 +0200:

Quoted 1 line

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

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/7ecb59a56666506ebb1197f89ca7d587bd83309e

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.wiki.kernel.org/userdoc/prtracker