Re: [PATCH] x86/mm: Drop TS_COMPAT on 64-bit exec() syscall

From: Andy Lutomirski
Date: Fri May 18 2018 - 17:07:27 EST


On Thu, May 17, 2018 at 4:40 PM Dmitry Safonov <dima@xxxxxxxxxx> wrote:
> Some selftests are failing, but the same way as before the patch
> (ITOW, it's not regression):
> [root@localhost self]# grep FAIL out
> [FAIL] Reg 1 mismatch: requested 0x0; got 0x3
> [FAIL] Reg 15 mismatch: requested 0x8badf00d5aadc0de; got
> 0xffffff425aadc0de
> [FAIL] Reg 15 mismatch: requested 0x8badf00d5aadc0de; got
> 0xffffff425aadc0de
> [FAIL] Reg 15 mismatch: requested 0x8badf00d5aadc0de; got
> 0xffffff425aadc0de

Are you on AMD? Can you try this patch:

https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git/commit/?h=x86/fixes&id=c88aa6d53840e48970c54f9ef70c79415033b32d

and give me a Tested-by if it fixes it for you?

> [FAIL] f[u]comi[p] errors: 1
> [FAIL] fisttp errors: 1'

I don't know about these.

> [FAIL] R8 has changed:0000000000000000
> [FAIL] R9 has changed:0000000000000000
> [FAIL] R10 has changed:0000000000000000
> [FAIL] R11 has changed:0000000000000000
> [FAIL] R8 has changed:0000000000000000
> [FAIL] R9 has changed:0000000000000000
> [FAIL] R10 has changed:0000000000000000
> [FAIL] R11 has changed:0000000000000000

The patch that added these test lines was the same patch that should have
made them pass. Are you sure your tests match your running kernel? You
need commit 8bb2610bc4967f19672444a7b0407367f1540028.

If you still have failures, can you send me the complete output from the
test_syscall_vdso test?

--Andy