From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753239AbdBCNaG (ORCPT ); Fri, 3 Feb 2017 08:30:06 -0500 Received: from merlin.infradead.org ([205.233.59.134]:37452 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752407AbdBCNaF (ORCPT ); Fri, 3 Feb 2017 08:30:05 -0500 Message-Id: <20170203132558.474916683@infradead.org> User-Agent: quilt/0.63-1 Date: Fri, 03 Feb 2017 14:25:58 +0100 From: Peter Zijlstra To: elena.reshetova@intel.com, gregkh@linuxfoundation.org, keescook@chromium.org, arnd@arndb.de, tglx@linutronix.de, mingo@kernel.org, h.peter.anvin@intel.com, will.deacon@arm.com, dwindsor@gmail.com, dhowells@redhat.com, peterz@infradead.org Cc: linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com Subject: [PATCH 0/5] refcount_t and various related bits Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.