* [GIT PULL] objtool changes for v5.10
@ 2020-10-13 8:26 Ingo Molnar
2020-10-13 9:43 ` Stephen Rothwell
2020-10-14 17:37 ` [GIT PULL] " pr-tracker-bot
0 siblings, 2 replies; 7+ messages in thread
From: Ingo Molnar @ 2020-10-13 8:26 UTC (permalink / raw)
To: Linus Torvalds
Cc: linux-kernel, Peter Zijlstra, Josh Poimboeuf, Thomas Gleixner,
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-2020-10-13
# HEAD: 2486baae2cf6df73554144d0a4e40ae8809b54d4 objtool: Allow nested externs to enable BUILD_BUG()
objtool changes for v5.10:
- Most of the changes are cleanups and reorganization to make the objtool code
more arch-agnostic. This is in preparation for non-x86 support.
Fixes:
- KASAN fixes.
- Handle unreachable trap after call to noreturn functions better.
- Ignore unreachable fake jumps.
- Misc smaller fixes & cleanups.
Thanks,
Ingo
------------------>
Ilie Halip (1):
objtool: Ignore unreachable trap after call to noreturn functions
Jann Horn (1):
objtool: Permit __kasan_check_{read,write} under UACCESS
Julien Thierry (16):
objtool: Move object file loading out of check()
objtool: Move ORC logic out of check()
objtool: Skip ORC entry creation for non-text sections
objtool: Define 'struct orc_entry' only when needed
objtool: Group headers to check in a single list
objtool: Make sync-check consider the target architecture
objtool: Move macros describing structures to arch-dependent code
objtool: Abstract alternative special case handling
objtool: Make relocation in alternative handling arch dependent
objtool: Rename frame.h -> objtool.h
objtool: Only include valid definitions depending on source file type
objtool: Make unwind hint definitions available to other architectures
objtool: Decode unwind hint register depending on architecture
objtool: Remove useless tests before save_reg()
objtool: Ignore unreachable fake jumps
objtool: Handle calling non-function symbols in other sections
Raphael Gault (1):
objtool: Refactor jump table code to support other architectures
Vasily Gorbik (1):
objtool: Allow nested externs to enable BUILD_BUG()
MAINTAINERS | 1 +
arch/x86/include/asm/nospec-branch.h | 2 +-
arch/x86/include/asm/orc_types.h | 34 ----
arch/x86/include/asm/unwind_hints.h | 56 ++-----
arch/x86/kernel/kprobes/core.c | 2 +-
arch/x86/kernel/kprobes/opt.c | 2 +-
arch/x86/kernel/reboot.c | 2 +-
arch/x86/kernel/unwind_orc.c | 11 +-
arch/x86/kvm/svm/svm.c | 2 +-
arch/x86/kvm/vmx/nested.c | 2 +-
arch/x86/kvm/vmx/vmx.c | 2 +-
arch/x86/xen/enlighten_pv.c | 2 +-
drivers/gpu/drm/vmwgfx/vmwgfx_msg.c | 3 +-
include/linux/frame.h | 35 ----
include/linux/objtool.h | 129 +++++++++++++++
kernel/bpf/core.c | 2 +-
kernel/kexec_core.c | 2 +-
tools/arch/x86/include/asm/orc_types.h | 34 ----
tools/include/linux/objtool.h | 129 +++++++++++++++
tools/objtool/Makefile | 6 +-
tools/objtool/arch.h | 4 +
tools/objtool/arch/x86/Build | 1 +
tools/objtool/arch/x86/decode.c | 37 +++++
tools/objtool/arch/x86/include/arch_special.h | 20 +++
tools/objtool/arch/x86/special.c | 145 ++++++++++++++++
tools/objtool/builtin-check.c | 15 +-
tools/objtool/builtin-orc.c | 27 ++-
tools/objtool/check.c | 230 ++++++--------------------
tools/objtool/check.h | 9 +-
tools/objtool/objtool.c | 30 ++++
tools/objtool/objtool.h | 6 +-
tools/objtool/orc_dump.c | 9 +-
tools/objtool/orc_gen.c | 8 +-
tools/objtool/special.c | 48 +-----
tools/objtool/special.h | 10 ++
tools/objtool/sync-check.sh | 32 +++-
tools/objtool/weak.c | 6 +-
37 files changed, 685 insertions(+), 410 deletions(-)
delete mode 100644 include/linux/frame.h
create mode 100644 include/linux/objtool.h
create mode 100644 tools/include/linux/objtool.h
create mode 100644 tools/objtool/arch/x86/include/arch_special.h
create mode 100644 tools/objtool/arch/x86/special.c
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [GIT PULL] objtool changes for v5.10
2020-10-13 8:26 [GIT PULL] objtool changes for v5.10 Ingo Molnar
@ 2020-10-13 9:43 ` Stephen Rothwell
2020-10-13 10:10 ` Ingo Molnar
2020-10-14 17:37 ` [GIT PULL] " pr-tracker-bot
1 sibling, 1 reply; 7+ messages in thread
From: Stephen Rothwell @ 2020-10-13 9:43 UTC (permalink / raw)
To: Ingo Molnar
Cc: Linus Torvalds, linux-kernel, Peter Zijlstra, Josh Poimboeuf,
Thomas Gleixner, Andrew Morton, Vasily Gorbik, Jiri Olsa
[-- Attachment #1: Type: text/plain, Size: 1739 bytes --]
Hi Ingo,
On Tue, 13 Oct 2020 10:26:25 +0200 Ingo Molnar <mingo@kernel.org> wrote:
>
> Ilie Halip (1):
> objtool: Ignore unreachable trap after call to noreturn functions
>
> Jann Horn (1):
> objtool: Permit __kasan_check_{read,write} under UACCESS
>
> Julien Thierry (16):
> objtool: Move object file loading out of check()
> objtool: Move ORC logic out of check()
> objtool: Skip ORC entry creation for non-text sections
> objtool: Define 'struct orc_entry' only when needed
> objtool: Group headers to check in a single list
> objtool: Make sync-check consider the target architecture
> objtool: Move macros describing structures to arch-dependent code
> objtool: Abstract alternative special case handling
> objtool: Make relocation in alternative handling arch dependent
> objtool: Rename frame.h -> objtool.h
> objtool: Only include valid definitions depending on source file type
> objtool: Make unwind hint definitions available to other architectures
> objtool: Decode unwind hint register depending on architecture
> objtool: Remove useless tests before save_reg()
> objtool: Ignore unreachable fake jumps
> objtool: Handle calling non-function symbols in other sections
>
> Raphael Gault (1):
> objtool: Refactor jump table code to support other architectures
>
> Vasily Gorbik (1):
> objtool: Allow nested externs to enable BUILD_BUG()
This seems to be missing
https://lore.kernel.org/lkml/patch-1.thread-251403.git-2514037e9477.your-ad-here.call-01602244460-ext-7088@work.hours/
or did that get sent in a previous pull request?
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [GIT PULL] objtool changes for v5.10
2020-10-13 9:43 ` Stephen Rothwell
@ 2020-10-13 10:10 ` Ingo Molnar
2020-10-13 10:38 ` [GIT PULL v2] " Ingo Molnar
0 siblings, 1 reply; 7+ messages in thread
From: Ingo Molnar @ 2020-10-13 10:10 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Linus Torvalds, linux-kernel, Peter Zijlstra, Josh Poimboeuf,
Thomas Gleixner, Andrew Morton, Vasily Gorbik, Jiri Olsa
* Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> Hi Ingo,
>
> On Tue, 13 Oct 2020 10:26:25 +0200 Ingo Molnar <mingo@kernel.org> wrote:
> >
> > Ilie Halip (1):
> > objtool: Ignore unreachable trap after call to noreturn functions
> >
> > Jann Horn (1):
> > objtool: Permit __kasan_check_{read,write} under UACCESS
> >
> > Julien Thierry (16):
> > objtool: Move object file loading out of check()
> > objtool: Move ORC logic out of check()
> > objtool: Skip ORC entry creation for non-text sections
> > objtool: Define 'struct orc_entry' only when needed
> > objtool: Group headers to check in a single list
> > objtool: Make sync-check consider the target architecture
> > objtool: Move macros describing structures to arch-dependent code
> > objtool: Abstract alternative special case handling
> > objtool: Make relocation in alternative handling arch dependent
> > objtool: Rename frame.h -> objtool.h
> > objtool: Only include valid definitions depending on source file type
> > objtool: Make unwind hint definitions available to other architectures
> > objtool: Decode unwind hint register depending on architecture
> > objtool: Remove useless tests before save_reg()
> > objtool: Ignore unreachable fake jumps
> > objtool: Handle calling non-function symbols in other sections
> >
> > Raphael Gault (1):
> > objtool: Refactor jump table code to support other architectures
> >
> > Vasily Gorbik (1):
> > objtool: Allow nested externs to enable BUILD_BUG()
>
> This seems to be missing
>
> https://lore.kernel.org/lkml/patch-1.thread-251403.git-2514037e9477.your-ad-here.call-01602244460-ext-7088@work.hours/
>
> or did that get sent in a previous pull request?
No, that fix is still missing, thanks for the reminder. I overlooked it
thinking that it's a tooling patch - but this needs to be paired with:
2486baae2cf6: ("objtool: Allow nested externs to enable BUILD_BUG()")
I'll send a v2 pull request in an hour or two.
Thanks,
Ingo
^ permalink raw reply [flat|nested] 7+ messages in thread
* [GIT PULL v2] objtool changes for v5.10
2020-10-13 10:10 ` Ingo Molnar
@ 2020-10-13 10:38 ` Ingo Molnar
2020-10-14 17:37 ` pr-tracker-bot
2020-10-15 0:44 ` Stephen Rothwell
0 siblings, 2 replies; 7+ messages in thread
From: Ingo Molnar @ 2020-10-13 10:38 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Linus Torvalds, linux-kernel, Peter Zijlstra, Josh Poimboeuf,
Thomas Gleixner, Andrew Morton, Vasily Gorbik, Jiri Olsa
* Ingo Molnar <mingo@kernel.org> wrote:
> > This seems to be missing
> >
> > https://lore.kernel.org/lkml/patch-1.thread-251403.git-2514037e9477.your-ad-here.call-01602244460-ext-7088@work.hours/
> >
> > or did that get sent in a previous pull request?
>
> No, that fix is still missing, thanks for the reminder. I overlooked it
> thinking that it's a tooling patch - but this needs to be paired with:
>
> 2486baae2cf6: ("objtool: Allow nested externs to enable BUILD_BUG()")
>
> I'll send a v2 pull request in an hour or two.
Linus,
Please pull the latest objtool/core git tree from:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git objtool-core-2020-10-13
# HEAD: ab0a40ea88204e1291b56da8128e2845fec8ee88 perf build: Allow nested externs to enable BUILD_BUG() usage
objtool changes for v5.10:
- Most of the changes are cleanups and reorganization to make the objtool code
more arch-agnostic. This is in preparation for non-x86 support.
Fixes:
- KASAN fixes.
- Handle unreachable trap after call to noreturn functions better.
- Ignore unreachable fake jumps.
- Misc smaller fixes & cleanups.
Thanks,
Ingo
------------------>
Ilie Halip (1):
objtool: Ignore unreachable trap after call to noreturn functions
Jann Horn (1):
objtool: Permit __kasan_check_{read,write} under UACCESS
Julien Thierry (16):
objtool: Move object file loading out of check()
objtool: Move ORC logic out of check()
objtool: Skip ORC entry creation for non-text sections
objtool: Define 'struct orc_entry' only when needed
objtool: Group headers to check in a single list
objtool: Make sync-check consider the target architecture
objtool: Move macros describing structures to arch-dependent code
objtool: Abstract alternative special case handling
objtool: Make relocation in alternative handling arch dependent
objtool: Rename frame.h -> objtool.h
objtool: Only include valid definitions depending on source file type
objtool: Make unwind hint definitions available to other architectures
objtool: Decode unwind hint register depending on architecture
objtool: Remove useless tests before save_reg()
objtool: Ignore unreachable fake jumps
objtool: Handle calling non-function symbols in other sections
Raphael Gault (1):
objtool: Refactor jump table code to support other architectures
Vasily Gorbik (2):
objtool: Allow nested externs to enable BUILD_BUG()
perf build: Allow nested externs to enable BUILD_BUG() usage
MAINTAINERS | 1 +
arch/x86/include/asm/nospec-branch.h | 2 +-
arch/x86/include/asm/orc_types.h | 34 ----
arch/x86/include/asm/unwind_hints.h | 56 ++-----
arch/x86/kernel/kprobes/core.c | 2 +-
arch/x86/kernel/kprobes/opt.c | 2 +-
arch/x86/kernel/reboot.c | 2 +-
arch/x86/kernel/unwind_orc.c | 11 +-
arch/x86/kvm/svm/svm.c | 2 +-
arch/x86/kvm/vmx/nested.c | 2 +-
arch/x86/kvm/vmx/vmx.c | 2 +-
arch/x86/xen/enlighten_pv.c | 2 +-
drivers/gpu/drm/vmwgfx/vmwgfx_msg.c | 3 +-
include/linux/frame.h | 35 ----
include/linux/objtool.h | 129 +++++++++++++++
kernel/bpf/core.c | 2 +-
kernel/kexec_core.c | 2 +-
tools/arch/x86/include/asm/orc_types.h | 34 ----
tools/include/linux/objtool.h | 129 +++++++++++++++
tools/objtool/Makefile | 6 +-
tools/objtool/arch.h | 4 +
tools/objtool/arch/x86/Build | 1 +
tools/objtool/arch/x86/decode.c | 37 +++++
tools/objtool/arch/x86/include/arch_special.h | 20 +++
tools/objtool/arch/x86/special.c | 145 ++++++++++++++++
tools/objtool/builtin-check.c | 15 +-
tools/objtool/builtin-orc.c | 27 ++-
tools/objtool/check.c | 230 ++++++--------------------
tools/objtool/check.h | 9 +-
tools/objtool/objtool.c | 30 ++++
tools/objtool/objtool.h | 6 +-
tools/objtool/orc_dump.c | 9 +-
tools/objtool/orc_gen.c | 8 +-
tools/objtool/special.c | 48 +-----
tools/objtool/special.h | 10 ++
tools/objtool/sync-check.sh | 32 +++-
tools/objtool/weak.c | 6 +-
tools/perf/Makefile.config | 2 +-
38 files changed, 686 insertions(+), 411 deletions(-)
delete mode 100644 include/linux/frame.h
create mode 100644 include/linux/objtool.h
create mode 100644 tools/include/linux/objtool.h
create mode 100644 tools/objtool/arch/x86/include/arch_special.h
create mode 100644 tools/objtool/arch/x86/special.c
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [GIT PULL v2] objtool changes for v5.10
2020-10-13 10:38 ` [GIT PULL v2] " Ingo Molnar
@ 2020-10-14 17:37 ` pr-tracker-bot
2020-10-15 0:44 ` Stephen Rothwell
1 sibling, 0 replies; 7+ messages in thread
From: pr-tracker-bot @ 2020-10-14 17:37 UTC (permalink / raw)
To: Ingo Molnar
Cc: Stephen Rothwell, Linus Torvalds, linux-kernel, Peter Zijlstra,
Josh Poimboeuf, Thomas Gleixner, Andrew Morton, Vasily Gorbik,
Jiri Olsa
The pull request you sent on Tue, 13 Oct 2020 12:38:31 +0200:
> git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git objtool-core-2020-10-13
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/6873139ed078bfe0341d4cbb69e5af1b323bf532
Thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [GIT PULL] objtool changes for v5.10
2020-10-13 8:26 [GIT PULL] objtool changes for v5.10 Ingo Molnar
2020-10-13 9:43 ` Stephen Rothwell
@ 2020-10-14 17:37 ` pr-tracker-bot
1 sibling, 0 replies; 7+ messages in thread
From: pr-tracker-bot @ 2020-10-14 17:37 UTC (permalink / raw)
To: Ingo Molnar
Cc: Linus Torvalds, linux-kernel, Peter Zijlstra, Josh Poimboeuf,
Thomas Gleixner, Andrew Morton
The pull request you sent on Tue, 13 Oct 2020 10:26:25 +0200:
> git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git objtool-core-2020-10-13
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/ab0a40ea88204e1291b56da8128e2845fec8ee88
Thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [GIT PULL v2] objtool changes for v5.10
2020-10-13 10:38 ` [GIT PULL v2] " Ingo Molnar
2020-10-14 17:37 ` pr-tracker-bot
@ 2020-10-15 0:44 ` Stephen Rothwell
1 sibling, 0 replies; 7+ messages in thread
From: Stephen Rothwell @ 2020-10-15 0:44 UTC (permalink / raw)
To: Ingo Molnar
Cc: Linus Torvalds, linux-kernel, Peter Zijlstra, Josh Poimboeuf,
Thomas Gleixner, Andrew Morton, Vasily Gorbik, Jiri Olsa
[-- Attachment #1: Type: text/plain, Size: 725 bytes --]
Hi Ingo,
On Tue, 13 Oct 2020 12:38:31 +0200 Ingo Molnar <mingo@kernel.org> wrote:
>
> * Ingo Molnar <mingo@kernel.org> wrote:
>
> > > This seems to be missing
> > >
> > > https://lore.kernel.org/lkml/patch-1.thread-251403.git-2514037e9477.your-ad-here.call-01602244460-ext-7088@work.hours/
> > >
> > > or did that get sent in a previous pull request?
> >
> > No, that fix is still missing, thanks for the reminder. I overlooked it
> > thinking that it's a tooling patch - but this needs to be paired with:
> >
> > 2486baae2cf6: ("objtool: Allow nested externs to enable BUILD_BUG()")
> >
> > I'll send a v2 pull request in an hour or two.
Thanks for that.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-10-15 1:25 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-13 8:26 [GIT PULL] objtool changes for v5.10 Ingo Molnar
2020-10-13 9:43 ` Stephen Rothwell
2020-10-13 10:10 ` Ingo Molnar
2020-10-13 10:38 ` [GIT PULL v2] " Ingo Molnar
2020-10-14 17:37 ` pr-tracker-bot
2020-10-15 0:44 ` Stephen Rothwell
2020-10-14 17:37 ` [GIT PULL] " pr-tracker-bot
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).