public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [RESEND PATCH v2 0/2] *** Fix reformat_objdump.awk ***
@ 2022-11-12  9:04 Samuel Zeter
  2022-11-12  9:04 ` [RESEND PATCH v2 1/2] arch/x86/tools/objdump_reformat.awk: Ensure regex matches fwait Samuel Zeter
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Samuel Zeter @ 2022-11-12  9:04 UTC (permalink / raw)
  To: Nathan Chancellor, Nick Desaulniers, Tom Rix; +Cc: Samuel Zeter, llvm

These are two small patches which originally dealt with
the problem found at:

https://github.com/ClangBuiltLinux/linux/issues/1364

The original steps to reproduce were:
$ make -skj"$(nproc)" LLVM=1 LLVM_IAS=1 defconfig
$ scripts/config -e X86_DECODER_SELFTEST
$ make -skj"$(nproc)" LLVM=1 LLVM_IAS=1 olddefconfig bzImage

Which resulted in the error:
arch/x86/tools/insn_decoder_test: warning: objdump says 0 bytes, but
insn_get_length() says 2

Upon inspection it turned out llvm-objdump was formatting its
output differently, which caused objdump_reformat.awk to incorrectly
output its values.

After fixing that bug, a second one was seen where the instruction
"wait" was incorrectly matched with "fwait", which again caused
insn_decoder_test to fail.

Samuel Zeter (2):
  arch/x86/tools/objdump_reformat.awk: Ensure regex matches fwait
  arch/x86/tools/objdump_reformat.awk: Allow for spaces

 arch/x86/tools/objdump_reformat.awk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


base-commit: 151297128990b4b44be8d70b983053831fa857f6
-- 
2.38.1


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

end of thread, other threads:[~2023-10-13 17:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-12  9:04 [RESEND PATCH v2 0/2] *** Fix reformat_objdump.awk *** Samuel Zeter
2022-11-12  9:04 ` [RESEND PATCH v2 1/2] arch/x86/tools/objdump_reformat.awk: Ensure regex matches fwait Samuel Zeter
2022-11-12  9:04 ` [RESEND PATCH v2 2/2] arch/x86/tools/objdump_reformat.awk: Allow for spaces Samuel Zeter
2023-10-13 17:17 ` [RESEND PATCH v2 0/2] *** Fix reformat_objdump.awk *** Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox