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: <20230621120942.121822-1-chang.seok.bae@intel.com>
Date:   Wed, 21 Jun 2023 05:09:38 -0700
From:   "Chang S. Bae" <chang.seok.bae@...el.com>
To:     linux-kernel@...r.kernel.org, x86@...nel.org
Cc:     tglx@...utronix.de, mingo@...hat.com, bp@...en8.de,
        dave.hansen@...ux.intel.com, hpa@...or.com,
        andrew.cooper3@...rix.com, chang.seok.bae@...el.com
Subject: [PATCH v1 0/4] x86/fpu: a few code cleanup

Hi all,

This series intends to clean up the x86 FPU code. They do *not* deal
with any urgent issues but considerably apparent cleanups:

- Simplify xstate_calculate_size() and print_xstate_features() as both
  have some inefficient duplications.
- Convert get_xsave_addr() to a local function because it is not
  invoked anywhere else.
- Clean up the unnecessary fpstate_reset() since the invocation makes
  no change in the fpstate container.

The last one might have an unknown reason behind it. Then, I will
revise it with the clarification instead of removing the code.

The series can be found in this repo:
	git://github.com/intel/amx-linux.git x86-fpu-cleanup

Thanks,
Chang

Chang S. Bae (4):
  x86/fpu/xstate: Convert get_xsave_addr() to a static function
  x86/fpu/xstate: Simplify xstate_calculate_size()
  x86/fpu/xstate: Simplify print_xstate_features()
  x86/fpu: Remove the unnecessary fpstate_reset() invocation

 arch/x86/kernel/fpu/init.c   |  1 -
 arch/x86/kernel/fpu/xstate.c | 36 +++++++++++-------------------------
 arch/x86/kernel/fpu/xstate.h |  2 --
 3 files changed, 11 insertions(+), 28 deletions(-)


base-commit: 162d2c2297b731a9918bd26db5a9f779de259c09
-- 
2.34.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ