From: Florian Westphal Subject: Re: [PATCH 4.14 4/4] netfilter: nf_conncount: fix garbage collection confirm race Date: Wed, 2 Jan 2019 18:06:26 +0100 Message-ID: <20190102170626.kgn52wywtpfub6td@breakpoint.cc> References: <20190102170023.10415-1-mfo@canonical.com> <20190102170023.10415-5-mfo@canonical.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: stable@vger.kernel.org, netdev@vger.kernel.org, Florian Westphal , Alakesh Haloi , nivedita.singhvi@canonical.com, Pablo Neira Ayuso , Jozsef Kadlecsik , "David S. Miller" , Yi-Hung Wei To: Mauricio Faria de Oliveira Return-path: Content-Disposition: inline In-Reply-To: <20190102170023.10415-5-mfo@canonical.com> Sender: stable-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Mauricio Faria de Oliveira wrote: > +static const struct nf_conntrack_tuple_hash * > +find_or_evict(struct net *net, struct xt_connlimit_conn *conn) > +{ > + const struct nf_conntrack_tuple_hash *found; > + unsigned long a, b; > + int cpu = raw_smp_processor_id(); > + __s32 age; This needs to be 'u32'. Alternatively, also backport 4cd273bb91b3001f623 ("netfilter: nf_conncount: don't skip eviction when age is negative").