Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754064Ab2BQDdA (ORCPT ); Thu, 16 Feb 2012 22:33:00 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:34481 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752976Ab2BQDc7 (ORCPT ); Thu, 16 Feb 2012 22:32:59 -0500 X-Sasl-enc: 5ox4Yuj708I2VSocXyeB6Bxt2UG+4DbJi5T5YKOVH9ne 1329449578 Date: Thu, 16 Feb 2012 19:32:52 -0800 From: Greg KH To: David Windsor Cc: Kees Cook , pageexec@freemail.hu, Ubuntu security discussion , spender@grsecurity.net, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com Subject: Re: [ubuntu-hardened] Add overflow protection to kref Message-ID: <20120217033252.GB22823@kroah.com> References: <20120216204515.GH20420@outflux.net> <20120217002405.GB7746@kroah.com> <20120217010624.GA6541@outflux.net> <20120217014008.GA18763@kroah.com> <20120217021109.GC6541@outflux.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1190 Lines: 32 On Thu, Feb 16, 2012 at 09:48:38PM -0500, David Windsor wrote: > > > >> > >> 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; I'd like to see some more users first, as I don't see how the current users could ever overflow an atomic_t, so any changes to prevent this will be kind of pointless, right? So feel free to send all of these changes together. thanks, greg k-h -- 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/