[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z9Gb7O7puuERyyww@calendula>
Date: Wed, 12 Mar 2025 15:36:28 +0100
From: Pablo Neira Ayuso <pablo@...filter.org>
To: Kohei Enju <enjuk@...zon.com>
Cc: netfilter-devel@...r.kernel.org, coreteam@...filter.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
bpf@...r.kernel.org,
syzbot+83fed965338b573115f7@...kaller.appspotmail.com,
Jozsef Kadlecsik <kadlec@...filter.org>,
"David S . Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Simon Horman <horms@...nel.org>,
Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Jesper Dangaard Brouer <hawk@...nel.org>,
John Fastabend <john.fastabend@...il.com>,
Yi-Hung Wei <yihung.wei@...il.com>, Florian Westphal <fw@...len.de>,
kohei.enju@...il.com
Subject: Re: [PATCH net v1] netfilter: nf_conncount: Fully initialize struct
nf_conncount_tuple in insert_tree()
On Sun, Mar 09, 2025 at 05:07:38PM +0900, Kohei Enju wrote:
> Since commit b36e4523d4d5 ("netfilter: nf_conncount: fix garbage
> collection confirm race"), `cpu` and `jiffies32` were introduced to
> the struct nf_conncount_tuple.
>
> The commit made nf_conncount_add() initialize `conn->cpu` and
> `conn->jiffies32` when allocating the struct.
> In contrast, count_tree() was not changed to initialize them.
>
> By commit 34848d5c896e ("netfilter: nf_conncount: Split insert and
> traversal"), count_tree() was split and the relevant allocation
> code now resides in insert_tree().
> Initialize `conn->cpu` and `conn->jiffies32` in insert_tree().
Applied to nf.git, thanks
Powered by blists - more mailing lists