]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit - tools/objtool/check.c
objtool: Add Direction Flag validation
authorPeter Zijlstra <peterz@infradead.org>
Mon, 25 Feb 2019 10:10:55 +0000 (11:10 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 3 Apr 2019 09:02:24 +0000 (11:02 +0200)
commit2f0f9e9ad7b3459c5c54ef2c03145a98e65dd158
tree6ce2229a931e53504851d1e98b6319630ff952c7
parentea24213d8088f9da73e1b6aadf7abd2435b70397
objtool: Add Direction Flag validation

Having DF escape is BAD(tm).

Linus; you suggested this one, but since DF really is only used from
ASM and the failure case is fairly obvious, do we really need this?

OTOH the patch is fairly small and simple, so let's just do this
to demonstrate objtool's superior awesomeness.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/objtool/arch.h
tools/objtool/arch/x86/decode.c
tools/objtool/check.c
tools/objtool/check.h