| From: |
| Peter Zijlstra <peterz-AT-infradead.org> |
| To: |
| elena.reshetova-AT-intel.com, gregkh-AT-linuxfoundation.org, keescook-AT-chromium.org, arnd-AT-arndb.de, tglx-AT-linutronix.de, mingo-AT-kernel.org, h.peter.anvin-AT-intel.com, will.deacon-AT-arm.com, dwindsor-AT-gmail.com, dhowells-AT-redhat.com, peterz-AT-infradead.org |
| Subject: |
| [PATCH 0/5] refcount_t and various related bits |
| Date: |
| Fri, 03 Feb 2017 14:25:58 +0100 |
| Message-ID: |
| <20170203132558.474916683@infradead.org> |
| Cc: |
| linux-kernel-AT-vger.kernel.org, kernel-hardening-AT-lists.openwall.com |
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.