[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190105095908.fi277jtuwketsfxi@breakpoint.cc>
Date: Sat, 5 Jan 2019 10:59:08 +0100
From: Florian Westphal <fw@...len.de>
To: Cong Wang <xiyou.wangcong@...il.com>
Cc: Florian Westphal <fw@...len.de>,
Steffen Klassert <steffen.klassert@...unet.com>,
Linux Kernel Network Developers <netdev@...r.kernel.org>
Subject: Re: [PATCH ipsec 7/7] xfrm: policy: fix infinite loop when merging
src-nodes
Cong Wang <xiyou.wangcong@...il.com> wrote:
> > - hlist_for_each_entry(tmp, &node->hhead, bydst)
> > - tmp->bydst_reinsert = true;
> > - hlist_for_each_entry(tmp, &n->hhead, bydst)
> > + hlist_for_each_entry(tmp, &n->hhead, bydst) {
>
>
> hlist_for_each_entry_safe()?
Could be used instead indeed, but its not required.
Steffen, just let me know your preference. If you think that
hlist_for_each_entry(...)
hlist_del_rcu(&tmp->bydst);
... looks unsafe then i can respin this with _safe version.
Powered by blists - more mailing lists