linux-stable/tools/objtool/include/objtool
Josh Poimboeuf 00c8f01c4e objtool: Fix ORC 'signal' propagation
There have been some recently reported ORC unwinder warnings like:

  WARNING: can't access registers at entry_SYSCALL_64_after_hwframe+0x63/0xcd
  WARNING: stack going in the wrong direction? at __sys_setsockopt+0x2c6/0x5b0 net/socket.c:2271

And a KASAN warning:

  BUG: KASAN: stack-out-of-bounds in unwind_next_frame (arch/x86/include/asm/ptrace.h:136 arch/x86/kernel/unwind_orc.c:455)

It turns out the 'signal' bit isn't getting propagated from the unwind
hints to the ORC entries, making the unwinder confused at times.

Fixes: ffb1b4a410 ("x86/unwind/orc: Add 'signal' field to ORC metadata")
Reported-by: kernel test robot <oliver.sang@intel.com>
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/97eef9db60cd86d376a9a40d49d77bb67a8f6526.1676579666.git.jpoimboe@kernel.org
2023-02-23 09:21:50 +01:00
..
arch.h objtool: Make instruction::stack_ops a single-linked list 2023-02-23 09:20:59 +01:00
builtin.h objtool: Make struct check_options static 2023-02-01 09:15:23 -08:00
cfi.h objtool: Fix ORC 'signal' propagation 2023-02-23 09:21:50 +01:00
check.h objtool: Remove instruction::list 2023-02-23 09:21:44 +01:00
elf.h objtool: Optimize layout of struct symbol 2023-02-01 09:15:24 -08:00
endianness.h objtool: Use target file endianness instead of a compiled constant 2022-11-18 19:00:15 +11:00
objtool.h objtool: Remove instruction::list 2023-02-23 09:21:44 +01:00
special.h objtool: Optimize layout of struct special_alt 2023-02-01 09:15:24 -08:00
warn.h objtool: Add option to print section addresses 2022-04-22 12:32:02 +02:00