From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Graf Subject: Re: [v1 PATCH 7/14] netfilter: Use rhashtable_lookup instead of lookup_compare Date: Fri, 20 Mar 2015 22:23:11 +0000 Message-ID: <20150320222311.GC566@casper.infradead.org> References: <20150320092216.GE21258@acer.localdomain> <20150320092703.GA17081@gondor.apana.org.au> <20150320095908.GG21258@acer.localdomain> <20150320101603.GA17662@gondor.apana.org.au> <20150320102701.GA28736@acer.localdomain> <20150320214712.GA23963@gondor.apana.org.au> <20150320215612.GA566@casper.infradead.org> <20150320215756.GA24045@gondor.apana.org.au> <20150320220751.GB566@casper.infradead.org> <20150320221021.GA24140@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Patrick McHardy , David Miller , netdev@vger.kernel.org, Eric Dumazet To: Herbert Xu Return-path: Received: from casper.infradead.org ([85.118.1.10]:42604 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751150AbbCTWXN (ORCPT ); Fri, 20 Mar 2015 18:23:13 -0400 Content-Disposition: inline In-Reply-To: <20150320221021.GA24140@gondor.apana.org.au> Sender: netdev-owner@vger.kernel.org List-ID: On 03/21/15 at 09:10am, Herbert Xu wrote: > On Fri, Mar 20, 2015 at 10:07:51PM +0000, Thomas Graf wrote: > > > > Attack by whom? If I read the nft_set code correctly then the only > > way to add to an nft_set is via nfnetlink which requires > > CAP_NET_ADMIN. My understanding was that the chain length based > > growth is to counter hash seed attacks. > > You cannot trust root in a namespace. He might as well just run for (;;) to burn cycles in his namespace. If you give away virtualized local privileges you better be ready to restrict the resources consumed.