selftests/x86/fsgsbase: Add a missing memory constraint
authorAndy Lutomirski <luto@kernel.org>
Fri, 26 Jun 2020 17:24:28 +0000 (10:24 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 1 Jul 2020 13:27:20 +0000 (15:27 +0200)
commit8e259031c67a5ea0666428edb64c89e8c6ebd18e
tree379d458f8bf0e85e1bcbaeda683eca889fb97a17
parent979c2c4247cafd8a91628a7306b6871efbd12fdb
selftests/x86/fsgsbase: Add a missing memory constraint

The manual call to set_thread_area() via int $0x80 was missing any
indication that the descriptor was a pointer, causing gcc to
occasionally generate wrong code.  Add the missing constraint.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/432968af67259ca92d68b774a731aff468eae610.1593192140.git.luto@kernel.org
tools/testing/selftests/x86/fsgsbase.c