Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1237522
| From | Chris J Arges <chris.j.arges@canonical.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v13.1 04/23] x86/stacktool: Compile-time stack metadata validation |
| Date | 2015-10-01 17:40 +0200 |
| Message-ID | <qeO7E-hB-29@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <qbQz0-2RY-3@gated-at.bofh.it> <qbQIG-33j-41@gated-at.bofh.it> <qbREL-4pV-43@gated-at.bofh.it> <qeNuX-7IQ-21@gated-at.bofh.it> <qeNXY-6n-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 10/01/2015 10:25 AM, Josh Poimboeuf wrote: > On Thu, Oct 01, 2015 at 09:50:51AM -0500, Chris J Arges wrote: >> <snip> >>> + >>> +$(STACKTOOL_IN): FORCE >>> + @$(MAKE) $(build)=stacktool >>> + >>> +$(STACKTOOL): $(STACKTOOL_IN) >>> + @(test -d ../../kernel -a -d ../../tools -a -d ../stacktool && (( \ >>> + diff -I'^#include' arch/x86/insn/insn.c ../../arch/x86/lib/insn.c >/dev/null && \ >>> + diff -I'^#include' arch/x86/insn/inat.c ../../arch/x86/lib/inat.c >/dev/null && \ >>> + diff arch/x86/insn/x86-opcode-map.txt ../../arch/x86/lib/x86-opcode-map.txt >/dev/null && \ >>> + diff arch/x86/insn/gen-insn-attr-x86.awk ../../arch/x86/tools/gen-insn-attr-x86.awk >/dev/null && \ >>> + diff -I'^#include' arch/x86/insn/insn.h ../../arch/x86/include/asm/insn.h >/dev/null && \ >>> + diff -I'^#include' arch/x86/insn/inat.h ../../arch/x86/include/asm/inat.h >/dev/null && \ >>> + diff -I'^#include' arch/x86/insn/inat_types.h ../../arch/x86/include/asm/inat_types.h >/dev/null) \ >>> + || echo "Warning: stacktool: x86 instruction decoder differs from kernel" >&2 )) || true >>> + $(QUIET_LINK)$(CC) $(STACKTOOL_IN) $(LDFLAGS) -o $@ >>> + >>> +clean: >>> + $(call QUIET_CLEAN, stacktool) $(RM) $(STACKTOOL) >>> + $(Q)find $(OUTPUT) -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete >>> + $(Q)$(RM) $(OUTPUT)arch/x86/insn/inat-tables.c >>> + >>> +FORCE: >>> + >>> +.PHONY: clean FORCE >> >> Josh, >> >> I'm getting the following error when the above makefile is called: >> Warning: stacktool: x86 instruction decoder differs from kernel > > It's just a warning, not an error, right? Just want to make sure it > didn't fail the build. The files are in sync on tip/master. > Correct just a warning. And once I rebased correctly things are in sync. Thanks and sorry for the noise. --chris >> This was seen with your patches rebased on v4.3-rc2. >> >> It is failing on this diff: >> diff arch/x86/insn/x86-opcode-map.txt ../../arch/x86/lib/x86-opcode-map.txt >> >> And the output is as follows: >> 902,904d890 >> < 3: xrstors >> < 4: xsavec >> < 5: xsaves >> 949,950c935,936 >> < 6: XSAVEOPT | clwb (66) | mfence (11B) >> < 7: clflush | clflushopt (66) | sfence (11B) | pcommit (66),(11B) >> --- >>> 6: XSAVEOPT | mfence (11B) >>> 7: clflush | sfence (11B) >> >> Why do these files essentially need to be duplicated? Would it be possible to >> point Make at the files that are already in ../../arch/x86/*? > > They're duplicated because the "tools" dir is supposed to be source > independent from the rest of the kernel tree. > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v13 00/23] Compile-time stack metadata validation Josh Poimboeuf <jpoimboe@redhat.com> - 2015-09-22 17:50 +0200
[PATCH v13 20/23] x86/asm/efi: Create a stack frame in efi_call() Josh Poimboeuf <jpoimboe@redhat.com> - 2015-09-22 17:50 +0200
[PATCH v13 22/23] x86/uaccess: Add stack frame output operand in get_user inline asm Josh Poimboeuf <jpoimboe@redhat.com> - 2015-09-22 17:50 +0200
[PATCH v13 21/23] x86/asm/power: Create stack frames in hibernate_asm_64.S Josh Poimboeuf <jpoimboe@redhat.com> - 2015-09-22 17:50 +0200
[PATCH v13 01/23] tools: Fix formatting of the "make -C tools" help message Josh Poimboeuf <jpoimboe@redhat.com> - 2015-09-22 17:50 +0200
[PATCH v13 06/23] x86/stacktool: Add ignore macros Josh Poimboeuf <jpoimboe@redhat.com> - 2015-09-22 18:00 +0200
[PATCH v13 18/23] x86/asm/acpi: Create a stack frame in do_suspend_lowlevel() Josh Poimboeuf <jpoimboe@redhat.com> - 2015-09-22 18:00 +0200
[PATCH v13 05/23] x86/stacktool: Add file and directory ignores Josh Poimboeuf <jpoimboe@redhat.com> - 2015-09-22 18:00 +0200
[PATCH v13 17/23] x86/asm/entry: Create stack frames in thunk functions Josh Poimboeuf <jpoimboe@redhat.com> - 2015-09-22 18:00 +0200
[PATCH v13 10/23] x86/amd: Set ELF function type for vide() Josh Poimboeuf <jpoimboe@redhat.com> - 2015-09-22 18:00 +0200
[PATCH v13 08/23] x86/paravirt: Add stack frame dependency to PVOP inline asm calls Josh Poimboeuf <jpoimboe@redhat.com> - 2015-09-22 18:00 +0200
[PATCH v13 16/23] x86/asm/crypto: Create stack frames in clmul_ghash_mul/update() Josh Poimboeuf <jpoimboe@redhat.com> - 2015-09-22 18:00 +0200
[PATCH v13 13/23] x86/asm/crypto: Create stack frames in aesni-intel_asm.S Josh Poimboeuf <jpoimboe@redhat.com> - 2015-09-22 18:00 +0200
Re: [PATCH v13 13/23] x86/asm/crypto: Create stack frames in aesni-intel_asm.S minipli@ld-linux.so - 2015-10-01 08:30 +0200
Re: [PATCH v13 13/23] x86/asm/crypto: Create stack frames in aesni-intel_asm.S Josh Poimboeuf <jpoimboe@redhat.com> - 2015-10-01 15:40 +0200
Re: [PATCH v13 13/23] x86/asm/crypto: Create stack frames in aesni-intel_asm.S Mathias Krause <minipli@ld-linux.so> - 2015-10-01 19:40 +0200
Re: [PATCH v13 13/23] x86/asm/crypto: Create stack frames in aesni-intel_asm.S Josh Poimboeuf <jpoimboe@redhat.com> - 2015-10-01 20:00 +0200
[PATCH v13 09/23] x86/paravirt: Create a stack frame in PV_CALLEE_SAVE_REGS_THUNK Josh Poimboeuf <jpoimboe@redhat.com> - 2015-09-22 18:00 +0200
[PATCH v13 14/23] x86/asm/crypto: Move .Lbswap_mask data to .rodata section Josh Poimboeuf <jpoimboe@redhat.com> - 2015-09-22 18:00 +0200
[PATCH v13 15/23] x86/asm/crypto: Move jump_table to .rodata section Josh Poimboeuf <jpoimboe@redhat.com> - 2015-09-22 18:00 +0200
[PATCH v13 12/23] x86/xen: Add xen_cpuid() and xen_setup_gdt() to stacktool whitelists Josh Poimboeuf <jpoimboe@redhat.com> - 2015-09-22 18:10 +0200
[PATCH v13 02/23] x86/asm: Frame pointer macro cleanup Josh Poimboeuf <jpoimboe@redhat.com> - 2015-09-22 18:10 +0200
[PATCH v13 07/23] x86/xen: Add stack frame dependency to hypercall inline asm calls Josh Poimboeuf <jpoimboe@redhat.com> - 2015-09-22 18:10 +0200
[PATCH v13 11/23] x86/reboot: Add ljmp instructions to stacktool whitelist Josh Poimboeuf <jpoimboe@redhat.com> - 2015-09-22 18:10 +0200
[PATCH v13 03/23] x86/asm: Add C versions of frame pointer macros Josh Poimboeuf <jpoimboe@redhat.com> - 2015-09-22 18:10 +0200
Re: [PATCH v13 04/23] x86/stacktool: Compile-time stack metadata validation Jiri Slaby <jslaby@suse.cz> - 2015-09-23 13:40 +0200
Re: [PATCH v13 04/23] x86/stacktool: Compile-time stack metadata validation Jiri Slaby <jslaby@suse.cz> - 2015-09-23 13:50 +0200
Re: [PATCH v13.1 04/23] x86/stacktool: Compile-time stack metadata validation Chris J Arges <chris.j.arges@canonical.com> - 2015-10-01 17:00 +0200
Re: [PATCH v13.1 04/23] x86/stacktool: Compile-time stack metadata validation Josh Poimboeuf <jpoimboe@redhat.com> - 2015-10-01 17:30 +0200
Re: [PATCH v13.1 04/23] x86/stacktool: Compile-time stack metadata validation Chris J Arges <chris.j.arges@canonical.com> - 2015-10-01 17:40 +0200
Re: [PATCH v13 00/23] Compile-time stack metadata validation Josh Poimboeuf <jpoimboe@redhat.com> - 2015-09-28 15:50 +0200
csiph-web