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 for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Sun, 12 May 2024 10:28:33 -0700
From: "Paul E. McKenney" <paulmck@...nel.org>
To: torvalds@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org, linux-arch@...r.kernel.org,
	linux-csky@...r.kernel.org, kernel-team@...a.com,
	viro@...iv.linux.org.uk, elver@...gle.com,
	akpm@...ux-foundation.org, tglx@...utronix.de, peterz@...radead.org,
	dianders@...omium.org, pmladek@...e.com, arnd@...db.de,
	yujie.liu@...el.com, guoren@...nel.org
Subject: [GIT PULL] Native and emulated one-byte cmpxcha()g for v6.10

Hello, Linus,

Please pull the following cmpxchg()-related changes:

  git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git tags/cmpxchg.2024.05.11a
  # HEAD: 5800e77d88c0cd98bc10460df148631afa7b5e4d: csky: Emulate one-byte cmpxchg (2024-05-11 07:07:07 -0700)

Please note that the commit and tag are quite recent.  However, the
only change was to add the architecture maintainer'a ack.  The exact
same change (other than the ack) has been in -next for quite some time.

Of course, if you would prefer that this exact commit be in -next for a
decent interval, please let me know and I will be happy to re-send this
pull request after a few days in -next.

----------------------------------------------------------------
sparc32,parisc,csky: Provide one-byte and two-byte cmpxchg() support

This series provides native one-byte and two-byte cmpxchg() support
for sparc32 and parisc, courtesy of Al Viro.  This support is provided
by the same hashed-array-of-locks technique used for the other atomic
operations provided for these two platforms.

This series also provides emulated one-byte cmpxchg() support for csky
using a new cmpxchg_emu_u8() function that uses a four-byte cmpxchg()
to emulate the one-byte variant.

Similar patches for emulation of one-byte cmpxchg() for arc, sh, and
xtensa have not yet received maintainer acks, so they are slated for
the v6.11 merge window.

----------------------------------------------------------------
Al Viro (8):
      sparc32: make __cmpxchg_u32() return u32
      sparc32: make the first argument of __cmpxchg_u64() volatile u64 *
      sparc32: unify __cmpxchg_u{32,64}
      sparc32: add __cmpxchg_u{8,16}() and teach __cmpxchg() to handle those sizes
      parisc: __cmpxchg_u32(): lift conversion into the callers
      parisc: unify implementations of __cmpxchg_u{8,32,64}
      parisc: add missing export of __cmpxchg_u8()
      parisc: add u16 support to cmpxchg()

Paul E. McKenney (2):
      lib: Add one-byte emulation function
      csky: Emulate one-byte cmpxchg

 arch/Kconfig                        |  3 +++
 arch/csky/Kconfig                   |  1 +
 arch/csky/include/asm/cmpxchg.h     | 10 +++++++
 arch/parisc/include/asm/cmpxchg.h   | 22 +++++++---------
 arch/parisc/kernel/parisc_ksyms.c   |  2 ++
 arch/parisc/lib/bitops.c            | 52 ++++++++++++-------------------------
 arch/sparc/include/asm/cmpxchg_32.h | 20 +++++++-------
 arch/sparc/lib/atomic32.c           | 45 ++++++++++++++------------------
 include/linux/cmpxchg-emu.h         | 15 +++++++++++
 lib/Makefile                        |  1 +
 lib/cmpxchg-emu.c                   | 45 ++++++++++++++++++++++++++++++++
 11 files changed, 133 insertions(+), 83 deletions(-)
 create mode 100644 include/linux/cmpxchg-emu.h
 create mode 100644 lib/cmpxchg-emu.c

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ