Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751438Ab2BQCsk (ORCPT ); Thu, 16 Feb 2012 21:48:40 -0500 Received: from mail-ey0-f174.google.com ([209.85.215.174]:62617 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750929Ab2BQCsj convert rfc822-to-8bit (ORCPT ); Thu, 16 Feb 2012 21:48:39 -0500 MIME-Version: 1.0 In-Reply-To: <20120217021109.GC6541@outflux.net> References: <20120216204515.GH20420@outflux.net> <20120217002405.GB7746@kroah.com> <20120217010624.GA6541@outflux.net> <20120217014008.GA18763@kroah.com> <20120217021109.GC6541@outflux.net> Date: Thu, 16 Feb 2012 21:48:38 -0500 Message-ID: Subject: Re: [ubuntu-hardened] Add overflow protection to kref From: David Windsor To: Kees Cook , Greg KH , pageexec@freemail.hu, Ubuntu security discussion , spender@grsecurity.net, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1179 Lines: 39 >> >> I have yet to see a patch, so why are we arguing about this? ?:) >> >> Again, I don't know of any kref overflows that have ever happened, so >> trying to "protect" this type of thing, seems odd to me. > > Well, I think the issue was to protect counting things (which seems to > be what PaX was after originally), and that kref seemed like the place > to put it. I'll let David take it further. > Patches are forthcoming that will first introduce overflow protection to kref. Once that's in place, I'll move a few refcount users from atomic_t to kref as a reference for other subsystems; statistics-based users (and others not requiring overflow protection) can continue using atomic_t. As Kees said, we just wanted to introduce the idea and get some general feedback before beginning. Thanks. > Thanks, > > -Kees > > -- > Kees Cook > ChromeOS Security -- PGP: 6141 5FFD 11AE 9844 153E ?F268 7C98 7268 6B19 6CC9 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/