* xfrm_neigh_lookup and dst->path
@ 2017-02-11 13:12 Julian Anastasov
2017-02-14 7:13 ` Steffen Klassert
0 siblings, 1 reply; 2+ messages in thread
From: Julian Anastasov @ 2017-02-11 13:12 UTC (permalink / raw)
To: Steffen Klassert; +Cc: netdev
Hello,
On Fri, 3 Feb 2017, Steffen Klassert wrote:
> On Thu, Feb 02, 2017 at 01:04:34AM +0200, Julian Anastasov wrote:
> >
> > For now I installed common handler, just like
> > xfrm_neigh_lookup. BTW this function has problem from
> > commit f894cbf847c9, it looks like dst is wrongly provided,
> > first arg should be dst->path.
>
> Yes, this should use dst->path of course. I really wonder why
> nobody noticed this for the last five years.
IMHO, xfrm_neigh_lookup is not used often. If used,
it should be from a place before skb->dst xforms are popped in
xfrm_output_one, i.e. somewhere before the output processing.
I see that dst_neigh_lookup*() is used mostly in xmit handlers
of tunnel devices, I assume, after xfrm_output_one().
Not sure for br_nf_pre_routing_finish_bridge().
I'm trying to fix this code but we have the
same problem as in xfrm_confirm_neigh: to find address
of last tunnel. Should we use the same loop?
Regards
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: xfrm_neigh_lookup and dst->path
2017-02-11 13:12 xfrm_neigh_lookup and dst->path Julian Anastasov
@ 2017-02-14 7:13 ` Steffen Klassert
0 siblings, 0 replies; 2+ messages in thread
From: Steffen Klassert @ 2017-02-14 7:13 UTC (permalink / raw)
To: Julian Anastasov; +Cc: netdev
On Sat, Feb 11, 2017 at 03:12:44PM +0200, Julian Anastasov wrote:
>
> Hello,
>
> On Fri, 3 Feb 2017, Steffen Klassert wrote:
>
> > On Thu, Feb 02, 2017 at 01:04:34AM +0200, Julian Anastasov wrote:
> > >
> > > For now I installed common handler, just like
> > > xfrm_neigh_lookup. BTW this function has problem from
> > > commit f894cbf847c9, it looks like dst is wrongly provided,
> > > first arg should be dst->path.
> >
> > Yes, this should use dst->path of course. I really wonder why
> > nobody noticed this for the last five years.
>
> IMHO, xfrm_neigh_lookup is not used often.
I really wonder if it is used at all, given that this bug exists
for more than five years now and nobody reported it so far.
> If used,
> it should be from a place before skb->dst xforms are popped in
> xfrm_output_one, i.e. somewhere before the output processing.
> I see that dst_neigh_lookup*() is used mostly in xmit handlers
> of tunnel devices, I assume, after xfrm_output_one().
> Not sure for br_nf_pre_routing_finish_bridge().
>
> I'm trying to fix this code but we have the
> same problem as in xfrm_confirm_neigh: to find address
> of last tunnel. Should we use the same loop?
Yes, I think this is the right thing to do.
Thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-02-14 7:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-11 13:12 xfrm_neigh_lookup and dst->path Julian Anastasov
2017-02-14 7:13 ` Steffen Klassert
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.