[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171107101322.jkywyydiummjlvsk@gmail.com>
Date: Tue, 7 Nov 2017 11:13:22 +0100
From: Ingo Molnar <mingo@...nel.org>
To: Andy Lutomirski <luto@...nel.org>,
Dave Hansen <dave.hansen@...ux.intel.com>
Cc: X86 ML <x86@...nel.org>, Borislav Petkov <bpetkov@...e.de>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Thomas Gleixner <tglx@...utronix.de>,
"H. Peter Anvin" <hpa@...or.com>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>
Subject: Re: [PATCH 0/5] Minor selftests improvements
* Andy Lutomirski <luto@...nel.org> wrote:
> This improves and robustifies the ldt_gdt test and fixes compiler warnings
> in the protection_keys test.
>
> Andy Lutomirski (5):
> selftests/x86/protection_keys: Fix syscall NR redefinition warnings
> selftests/x86/ldt_gdt: Robustify against set_thread_area() and LAR
> oddities
> selftests/x86/ldt_gdt: Add infrastructure to test set_thread_area()
> selftests/x86/ldt_gdt: Run most existing LDT test cases against the
> GDT as well
> selftests/x86/ldt_get: Add a few additional tests for limits
>
> tools/testing/selftests/x86/ldt_gdt.c | 88 +++++++++++++++++++++------
> tools/testing/selftests/x86/protection_keys.c | 24 ++++++--
> 2 files changed, 88 insertions(+), 24 deletions(-)
I'm still getting this build failure when typing 'make' in tools/testing/selftests/x86:
gcc -m32 -o /home/mingo/tip/tools/testing/selftests/x86/protection_keys_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie protection_keys.c -lrt -ldl -lm
In file included from /usr/include/signal.h:57:0,
from protection_keys.c:33:
protection_keys.c: In function ‘signal_handler’:
protection_keys.c:253:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
u64 si_pkey;
^
protection_keys.c:253:6: error: expected expression before ‘.’ token
...
Makefile:47: recipe for target '/home/mingo/tip/tools/testing/selftests/x86/protection_keys_32' failed
Plus I'm also getting these warnings even with all your fixes applied:
gcc -m32 -o /home/mingo/tip/tools/testing/selftests/x86/mpx-mini-test_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie mpx-mini-test.c -lrt -ldl -lm
mpx-mini-test.c: In function ‘insn_test_failed’:
mpx-mini-test.c:1406:3: warning: array subscript is above array bounds [-Warray-bounds]
printf("bte[1]: %lx\n", bte->contents[1]);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mpx-mini-test.c:1407:3: warning: array subscript is above array bounds [-Warray-bounds]
printf("bte[2]: %lx\n", bte->contents[2]);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mpx-mini-test.c:1408:3: warning: array subscript is above array bounds [-Warray-bounds]
printf("bte[3]: %lx\n", bte->contents[3]);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thanks,
Ingo
Powered by blists - more mailing lists