All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] refcount_t and various related bits
@ 2017-02-03 13:25 ` Peter Zijlstra
  0 siblings, 0 replies; 24+ messages in thread
From: Peter Zijlstra @ 2017-02-03 13:25 UTC (permalink / raw)
  To: elena.reshetova, gregkh, keescook, arnd, tglx, mingo,
	h.peter.anvin, will.deacon, dwindsor, dhowells, peterz
  Cc: linux-kernel, kernel-hardening

Hi all,

Here is the refcount_t patch and some related bits that I hacked up the past
few days while playing with it in order to make it generate less aweful code
(on x86_64).

I think we can start by merging the refcount_t and kref patches, the rest can
come later if so desired. New here is the Kconfig knob to turn warnings
off -- it significantly reduces the generated code while still avoiding
the UAF.

I added David Howells because both he and hpa have suggested something like
try_cmpxchg() in the past.

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2017-02-06 13:06 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-03 13:25 [PATCH 0/5] refcount_t and various related bits Peter Zijlstra
2017-02-03 13:25 ` [kernel-hardening] " Peter Zijlstra
2017-02-03 13:25 ` [PATCH 1/5] refcount_t: A special purpose refcount type Peter Zijlstra
2017-02-03 13:25   ` [kernel-hardening] " Peter Zijlstra
2017-02-03 18:09   ` Kees Cook
2017-02-03 18:09     ` [kernel-hardening] " Kees Cook
2017-02-03 23:37   ` Kees Cook
2017-02-03 23:37     ` [kernel-hardening] " Kees Cook
2017-02-03 13:26 ` [PATCH 2/5] kref: Implement using refcount_t Peter Zijlstra
2017-02-03 13:26   ` [kernel-hardening] " Peter Zijlstra
2017-02-06 13:06   ` Greg KH
2017-02-06 13:06     ` [kernel-hardening] " Greg KH
2017-02-03 13:26 ` [PATCH 3/5] x86: Implement __WARN using UD2 Peter Zijlstra
2017-02-03 13:26   ` [kernel-hardening] " Peter Zijlstra
2017-02-03 13:26 ` [PATCH 4/5] atomic: Introduce atomic_try_cmpxchg() Peter Zijlstra
2017-02-03 13:26   ` [kernel-hardening] " Peter Zijlstra
2017-02-06  4:24   ` Boqun Feng
2017-02-06  4:24     ` [kernel-hardening] " Boqun Feng
2017-02-06  6:32     ` Boqun Feng
2017-02-06  6:32       ` [kernel-hardening] " Boqun Feng
2017-02-06  8:12     ` Peter Zijlstra
2017-02-06  8:12       ` [kernel-hardening] " Peter Zijlstra
2017-02-03 13:26 ` [PATCH 5/5] refcount: Use atomic_try_cmpxchg() Peter Zijlstra
2017-02-03 13:26   ` [kernel-hardening] " Peter Zijlstra

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.