lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211026122523.AFB99C1F@davehans-spike.ostc.intel.com>
Date:   Tue, 26 Oct 2021 05:25:23 -0700
From:   Dave Hansen <dave.hansen@...ux.intel.com>
To:     dave.hansen@...el.com
Cc:     Dave Hansen <dave.hansen@...ux.intel.com>,
        chang.seok.bae@...el.com, tglx@...utronix.de, x86@...nel.org,
        linux-kernel@...r.kernel.org, linux-kselftest@...r.kernel.org
Subject: [PATCH 0/2] selftest/x86: AMX CPU state management tests

Intel Advanced Matrix Extensions (AMX) are a new set registers
and ISA.  They are conceptually similar to the earlier AVX and
SSE ISA.  But, the registers as a whole are *really* big: ~8k
verus 2k for AVX-512.

Those amply-sized registers present some potential problems with
task_struct and signal stack bloat.  To fix those issues, most of
the new AMX state is dynamically allocated with the help of a new
CPU feature.

This new selftest exercises the new dynamic allocation ABI and
also ensures that AMX state is properly context-switched.

Processors that support AMX (Sapphire Rapids) are not publicly
available.  The kernel support needed to run these tests is not
upstream.  This selftest was developed against this tree:

	https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/log/?h=x86/fpu

These tests were primarily written by Chang Bae.  He's busy
working on the real kernel support, so I stole these and cleaned
them up a bit.

Chang S. Bae (2):
      selftest/x86/amx: Test cases for the AMX state management
      selftest/x86/amx: Add context switch test

 tools/testing/selftests/x86/Makefile |   2 +-
 tools/testing/selftests/x86/amx.c    | 851 +++++++++++++++++++++++++++
 2 files changed, 852 insertions(+), 1 deletion(-)

Signed-off-by: Chang S. Bae <chang.seok.bae@...el.com>
Signed-off-by: Dave Hansen <dave.hansen@...ux.intel.com>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: x86@...nel.org
Cc: linux-kernel@...r.kernel.org
Cc: linux-kselftest@...r.kernel.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ