linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL] objtool changes for v6.3
@ 2023-03-02  8:03 Ingo Molnar
  2023-03-02 18:34 ` pr-tracker-bot
  0 siblings, 1 reply; 3+ messages in thread
From: Ingo Molnar @ 2023-03-02  8:03 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: linux-kernel, Josh Poimboeuf, Peter Zijlstra, Thomas Gleixner,
	Borislav Petkov, Andrew Morton

Linus,

Please pull the latest objtool/core git tree from:

   git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git objtool-core-2023-03-02

   # HEAD: 00c8f01c4e84637c3db76f368b8687cb61f4dd9d objtool: Fix ORC 'signal' propagation

NOTE:

 - We had to perform a rebase of 10 tail commits a week ago & merged in an 
   upstream tree within the merge window [585a78c1f77b], to eliminate
   3 duplicate commits with the Xen tree that are already upstream. (This
   was a cross-tree cooperation mishap we didn't want to cause duplicate
   upstream commits - just in case you are wondering about the merge commit.)

Changes in this cycle were:

 - Shrink 'struct instruction', to improve objtool performance & memory
   footprint.

 - Other maximum memory usage reductions - this makes the build both faster,
   and fixes kernel build OOM failures on allyesconfig and similar configs
   when they try to build the final (large) vmlinux.o.

 - Fix ORC unwinding when a kprobe (INT3) is set on a stack-modifying
   single-byte instruction (PUSH/POP or LEAVE). This requires the
   extension of the ORC metadata structure with a 'signal' field.

 - Misc fixes & cleanups.

 Thanks,

	Ingo

------------------>
Ian Rogers (3):
      objtool: Install libsubcmd in build
      objtool: Properly support make V=1
      objtool: Fix HOSTCC flag usage

Josh Poimboeuf (3):
      x86/unwind/orc: Add 'signal' field to ORC metadata
      x86/entry: Fix unwinding from kprobe on PUSH/POP instruction
      objtool: Fix ORC 'signal' propagation

Miaoqian Lin (1):
      objtool: Fix memory leak in create_static_call_sections()

Michal Kubecek (1):
      objtool: Check that module init/exit function is an indirect call target

Peter Zijlstra (9):
      objtool: Change arch_decode_instruction() signature
      objtool: Make instruction::stack_ops a single-linked list
      objtool: Make instruction::alts a single-linked list
      objtool: Shrink instruction::{type,visited}
      objtool: Remove instruction::reloc
      objtool: Union instruction::{call_dest,jump_table}
      objtool: Fix overlapping alternatives
      x86: Fix FILL_RETURN_BUFFER
      objtool: Remove instruction::list

Thomas Weißschuh (5):
      objtool: Make struct entries[] static and const
      objtool: Make struct check_options static
      objtool: Allocate multiple structures with calloc()
      objtool: Optimize layout of struct symbol
      objtool: Optimize layout of struct special_alt


 arch/x86/entry/entry_64.S               |   9 +-
 arch/x86/include/asm/nospec-branch.h    |   2 +-
 arch/x86/include/asm/orc_types.h        |   4 +-
 arch/x86/include/asm/unwind_hints.h     |  10 +-
 arch/x86/kernel/unwind_orc.c            |   5 +-
 include/linux/objtool.h                 |  11 +-
 tools/arch/x86/include/asm/orc_types.h  |   4 +-
 tools/include/linux/objtool.h           |  11 +-
 tools/objtool/.gitignore                |   1 +
 tools/objtool/Build                     |   2 -
 tools/objtool/Documentation/objtool.txt |   8 +
 tools/objtool/Makefile                  |  66 ++++--
 tools/objtool/arch/powerpc/decode.c     |  22 +-
 tools/objtool/arch/x86/decode.c         | 107 +++++----
 tools/objtool/builtin-check.c           |   2 +-
 tools/objtool/check.c                   | 375 ++++++++++++++++++++------------
 tools/objtool/elf.c                     |  42 ++--
 tools/objtool/include/objtool/arch.h    |   6 +-
 tools/objtool/include/objtool/builtin.h |   2 -
 tools/objtool/include/objtool/cfi.h     |   1 +
 tools/objtool/include/objtool/check.h   |  61 +++---
 tools/objtool/include/objtool/elf.h     |   9 +-
 tools/objtool/include/objtool/objtool.h |   1 -
 tools/objtool/include/objtool/special.h |   2 +-
 tools/objtool/objtool.c                 |   1 -
 tools/objtool/orc_dump.c                |   4 +-
 tools/objtool/orc_gen.c                 |   1 +
 tools/objtool/special.c                 |   6 +-
 28 files changed, 455 insertions(+), 320 deletions(-)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [GIT PULL] objtool changes for v6.3
  2023-03-02  8:03 [GIT PULL] objtool changes for v6.3 Ingo Molnar
@ 2023-03-02 18:34 ` pr-tracker-bot
  0 siblings, 0 replies; 3+ messages in thread
From: pr-tracker-bot @ 2023-03-02 18:34 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Linus Torvalds, linux-kernel, Josh Poimboeuf, Peter Zijlstra,
	Thomas Gleixner, Borislav Petkov, Andrew Morton

The pull request you sent on Thu, 2 Mar 2023 09:03:57 +0100:

> git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git objtool-core-2023-03-02

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/857f1268a591147f7be7509f249dbb3aba6fc65c

Thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [GIT PULL] objtool changes for v6.3
@ 2023-04-27 20:22 Ingo Molnar
  0 siblings, 0 replies; 3+ messages in thread
From: Ingo Molnar @ 2023-04-27 20:22 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: linux-kernel, Josh Poimboeuf, Peter Zijlstra, Thomas Gleixner,
	Borislav Petkov, Andrew Morton


Linus,

Please pull the latest objtool/core git tree from:

   git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git objtool-core-2023-04-27

   # HEAD: 611d4c716db0141cfc436994dc5aff1d69c924ad x86/hyperv: Mark hv_ghcb_terminate() as noreturn

Objtool changes for v6.4:

 - Mark arch_cpu_idle_dead() __noreturn, make all architectures & drivers that did
   this inconsistently follow this new, common convention, and fix all the fallout
   that objtool can now detect statically.

 - Fix/improve the ORC unwinder becoming unreliable due to UNWIND_HINT_EMPTY ambiguity,
   split it into UNWIND_HINT_END_OF_STACK and UNWIND_HINT_UNDEFINED to resolve it.

 - Fix noinstr violations in the KCSAN code and the lkdtm/stackleak code.

 - Generate ORC data for __pfx code

 - Add more __noreturn annotations to various kernel startup/shutdown/panic functions.

 - Misc improvements & fixes.

MERGE NOTES:

With your latest tree there's 3 new conflicts if this tree is pulled:

  arch/x86/include/asm/mshyperv.h
  arch/x86/kernel/head_64.S
  tools/objtool/check.c

For any double-checking there are -tip internal merge resolutions at:

   git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/merge

 Thanks,

	Ingo

------------------>
Guilherme G. Piccoli (1):
      x86/hyperv: Mark hv_ghcb_terminate() as noreturn

Josh Poimboeuf (50):
      alpha/cpu: Expose arch_cpu_idle_dead()'s prototype declaration
      alpha/cpu: Make sure arch_cpu_idle_dead() doesn't return
      arm/cpu: Add unreachable() to arch_cpu_idle_dead()
      arm64/cpu: Mark cpu_die() __noreturn
      csky/cpu: Make sure arch_cpu_idle_dead() doesn't return
      ia64/cpu: Mark play_dead() __noreturn
      loongarch/cpu: Make sure play_dead() doesn't return
      loongarch/cpu: Mark play_dead() __noreturn
      mips/cpu: Expose play_dead()'s prototype definition
      mips/cpu: Make sure play_dead() doesn't return
      mips/cpu: Mark play_dead() __noreturn
      powerpc/cpu: Mark start_secondary_resume() __noreturn
      sh/cpu: Make sure play_dead() doesn't return
      sh/cpu: Mark play_dead() __noreturn
      sh/cpu: Expose arch_cpu_idle_dead()'s prototype definition
      sparc/cpu: Mark cpu_play_dead() __noreturn
      x86/cpu: Make sure play_dead() doesn't return
      x86/cpu: Mark play_dead() __noreturn
      xtensa/cpu: Make sure cpu_die() doesn't return
      xtensa/cpu: Mark cpu_die() __noreturn
      sched/idle: Make sure weak version of arch_cpu_idle_dead() doesn't return
      sched/idle: Mark arch_cpu_idle_dead() __noreturn
      objtool: Add objtool_types.h
      objtool: Use relative pointers for annotations
      objtool: Change UNWIND_HINT() argument order
      x86,objtool: Introduce ORC_TYPE_*
      x86,objtool: Separate unret validation from unwind hints
      x86,objtool: Split UNWIND_HINT_EMPTY in two
      sched: Fix KCSAN noinstr violation
      lkdtm/stackleak: Fix noinstr violation
      Revert "objtool: Support addition to set CFA base"
      objtool: Add stackleak instrumentation to uaccess safe list
      context_tracking: Fix KCSAN noinstr violation
      scripts/objdump-func: Support multiple functions
      objtool: Add WARN_INSN()
      objtool: Add symbol iteration helpers
      objtool: Remove superfluous dead_end_function() check
      objtool: Separate prefix code from stack validation code
      x86/linkage: Fix padding for typed functions
      objtool: Generate ORC data for __pfx code
      init: Mark [arch_call_]rest_init() __noreturn
      init: Mark start_kernel() __noreturn
      x86/head: Mark *_start_kernel() __noreturn
      arm64/cpu: Mark cpu_park_loop() and friends __noreturn
      cpu: Mark panic_smp_self_stop() __noreturn
      cpu: Mark nmi_panic_self_stop() __noreturn
      objtool: Include weak functions in global_noreturns check
      btrfs: Mark btrfs_assertfail() __noreturn
      x86/cpu: Mark {hlt,resume}_play_dead() __noreturn
      scsi: message: fusion: Mark mpt_halt_firmware() __noreturn

Philippe Mathieu-Daudé (1):
      x86/cpu: Expose arch_cpu_idle_dead()'s prototype definition


 Documentation/livepatch/reliable-stacktrace.rst |   2 +-
 MAINTAINERS                                     |   2 +-
 arch/alpha/kernel/process.c                     |   4 +-
 arch/arm/kernel/smp.c                           |   6 +-
 arch/arm64/include/asm/exception.h              |   4 +-
 arch/arm64/include/asm/smp.h                    |   9 +-
 arch/arm64/kernel/entry-common.c                |   2 +-
 arch/arm64/kernel/process.c                     |   2 +-
 arch/arm64/kernel/smp.c                         |  12 +-
 arch/arm64/kernel/traps.c                       |   3 +-
 arch/csky/kernel/smp.c                          |   4 +-
 arch/ia64/kernel/process.c                      |   6 +-
 arch/loongarch/include/asm/smp.h                |   2 +-
 arch/loongarch/kernel/process.c                 |   2 +-
 arch/loongarch/kernel/smp.c                     |   2 +-
 arch/mips/cavium-octeon/smp.c                   |   1 +
 arch/mips/include/asm/smp.h                     |   2 +-
 arch/mips/kernel/process.c                      |   2 +-
 arch/mips/kernel/smp-bmips.c                    |   4 +
 arch/mips/kernel/smp-cps.c                      |   1 +
 arch/mips/loongson64/smp.c                      |   2 +
 arch/parisc/kernel/process.c                    |   2 +-
 arch/powerpc/include/asm/smp.h                  |   2 +-
 arch/powerpc/kernel/setup_64.c                  |   2 +-
 arch/powerpc/kernel/smp.c                       |   2 +-
 arch/riscv/kernel/cpu-hotplug.c                 |   2 +-
 arch/s390/kernel/idle.c                         |   2 +-
 arch/s390/kernel/setup.c                        |   2 +-
 arch/sh/include/asm/smp-ops.h                   |   5 +-
 arch/sh/kernel/idle.c                           |   3 +-
 arch/sparc/include/asm/smp_64.h                 |   2 +-
 arch/sparc/kernel/process_64.c                  |   2 +-
 arch/x86/entry/entry_64.S                       |  26 +-
 arch/x86/hyperv/ivm.c                           |   2 +-
 arch/x86/include/asm/linkage.h                  |   2 +-
 arch/x86/include/asm/mshyperv.h                 |   2 +-
 arch/x86/include/asm/nospec-branch.h            |  14 +-
 arch/x86/include/asm/orc_types.h                |  12 +-
 arch/x86/include/asm/reboot.h                   |   1 -
 arch/x86/include/asm/setup.h                    |   6 +-
 arch/x86/include/asm/smp.h                      |   5 +-
 arch/x86/include/asm/unwind_hints.h             |  18 +-
 arch/x86/kernel/ftrace_64.S                     |   2 +-
 arch/x86/kernel/head32.c                        |   2 +-
 arch/x86/kernel/head64.c                        |   4 +-
 arch/x86/kernel/head_64.S                       |  17 +-
 arch/x86/kernel/process.c                       |   5 +-
 arch/x86/kernel/reboot.c                        |   2 +-
 arch/x86/kernel/relocate_kernel_64.S            |  10 +-
 arch/x86/kernel/smpboot.c                       |   2 +-
 arch/x86/kernel/unwind_orc.c                    |  27 +-
 arch/x86/lib/retpoline.S                        |   6 +-
 arch/x86/platform/pvh/head.S                    |   2 +-
 arch/x86/power/cpu.c                            |   2 +-
 arch/x86/xen/xen-asm.S                          |   4 +-
 arch/x86/xen/xen-head.S                         |   4 +-
 arch/xtensa/include/asm/smp.h                   |   2 +-
 arch/xtensa/kernel/smp.c                        |   4 +-
 drivers/message/fusion/mptbase.c                |   2 +-
 drivers/message/fusion/mptbase.h                |   2 +-
 drivers/misc/lkdtm/stackleak.c                  |   6 +
 fs/btrfs/messages.c                             |   2 +-
 fs/btrfs/messages.h                             |   2 +-
 include/linux/context_tracking.h                |   2 +-
 include/linux/cpu.h                             |   2 +-
 include/linux/objtool.h                         |  81 ++--
 include/linux/objtool_types.h                   |  57 +++
 include/linux/sched/task_stack.h                |   2 +-
 include/linux/smp.h                             |   4 +-
 include/linux/start_kernel.h                    |   6 +-
 init/main.c                                     |   6 +-
 kernel/panic.c                                  |   4 +-
 kernel/sched/idle.c                             |   2 +-
 scripts/objdump-func                            |  34 +-
 scripts/sorttable.h                             |   2 +-
 tools/arch/x86/include/asm/orc_types.h          |  12 +-
 tools/include/linux/objtool.h                   | 200 ----------
 tools/include/linux/objtool_types.h             |  57 +++
 tools/objtool/check.c                           | 477 ++++++++++++------------
 tools/objtool/elf.c                             |   2 +-
 tools/objtool/include/objtool/check.h           |   4 +-
 tools/objtool/include/objtool/elf.h             |   9 +
 tools/objtool/include/objtool/warn.h            |   5 +
 tools/objtool/orc_dump.c                        |  15 +-
 tools/objtool/orc_gen.c                         |  48 ++-
 tools/objtool/sync-check.sh                     |   2 +-
 86 files changed, 644 insertions(+), 686 deletions(-)
 create mode 100644 include/linux/objtool_types.h
 delete mode 100644 tools/include/linux/objtool.h
 create mode 100644 tools/include/linux/objtool_types.h

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-04-27 20:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-02  8:03 [GIT PULL] objtool changes for v6.3 Ingo Molnar
2023-03-02 18:34 ` pr-tracker-bot
2023-04-27 20:22 Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).