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: <20140508135840.956784204@infradead.org>
Date:	Thu, 08 May 2014 15:58:40 +0200
From:	Peter Zijlstra <peterz@...radead.org>
To:	linux-arch@...r.kernel.org, linux-kernel@...r.kernel.org
Cc:	torvalds@...ux-foundation.org, akpm@...ux-foundation.org,
	mingo@...nel.org, will.deacon@....com, paulmck@...ux.vnet.ibm.com,
	Peter Zijlstra <peterz@...radead.org>
Subject: [PATCH 00/20] arch atomic 'cleanup'

This series continues the arch atomic rework started with the smp_mb__
interface cleanup.

In this series we (mostly) reduce the atomic implementations by eliminating
repetition through use of CPP macros.

A future series will use these macros to implement more atomic ops. With these
macros we can end up with more atomic ops while the total LoC still shrinks.

Furthermore, rewrite the asm-generic/atomic implementations to require less and
provide more.

This series is compile tested on a number of archs, but only boot tested on
x86_64.

XXX: someone should try and unify all the hash locked atomic implementations,
there's about 4 of them in the tree.

---
 arch/alpha/include/asm/atomic.h          |  225 ++++--------
 arch/arc/include/asm/atomic.h            |  194 +++-------
 arch/arm/include/asm/atomic.h            |  313 ++++++-----------
 arch/arm64/include/asm/atomic.h          |  213 ++++-------
 arch/avr32/include/asm/atomic.h          |   96 ++---
 arch/cris/include/arch-v10/arch/system.h |    2 
 arch/cris/include/asm/atomic.h           |   57 +--
 arch/hexagon/include/asm/atomic.h        |   68 ++-
 arch/ia64/include/asm/atomic.h           |  182 ++++-----
 arch/m32r/include/asm/atomic.h           |  151 +++-----
 arch/m68k/include/asm/atomic.h           |  119 +++---
 arch/metag/include/asm/atomic_lnkget.h   |  121 ++----
 arch/metag/include/asm/atomic_lock1.h    |   76 +---
 arch/mips/include/asm/atomic.h           |  565 ++++++++++---------------------
 arch/mn10300/include/asm/atomic.h        |  129 ++-----
 arch/parisc/include/asm/atomic.h         |  121 ++++--
 arch/powerpc/include/asm/atomic.h        |  216 ++++-------
 arch/sh/include/asm/atomic-grb.h         |  121 ++----
 arch/sh/include/asm/atomic-irq.h         |   62 +--
 arch/sh/include/asm/atomic-llsc.h        |  101 ++---
 arch/sparc/include/asm/atomic_32.h       |   19 -
 arch/sparc/include/asm/atomic_64.h       |   49 +-
 arch/sparc/include/asm/barrier_32.h      |    1 
 arch/sparc/include/asm/processor.h       |    2 
 arch/sparc/kernel/smp_64.c               |    2 
 arch/sparc/lib/atomic32.c                |   25 -
 arch/sparc/lib/atomic_64.S               |  175 ++++-----
 arch/sparc/lib/ksyms.c                   |   25 -
 arch/x86/include/asm/atomic.h            |   15 
 arch/xtensa/include/asm/atomic.h         |  231 ++++--------
 include/asm-generic/atomic.h             |  174 ++++-----
 include/asm-generic/atomic64.h           |   20 -
 lib/atomic64.c                           |   83 +---
 33 files changed, 1609 insertions(+), 2344 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ