Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nht crash #3195

Merged
merged 2 commits into from
Oct 18, 2018
Merged

Nht crash #3195

merged 2 commits into from
Oct 18, 2018

Conversation

donaldsharp
Copy link
Member

There exists a scenario when we have v4 routes w/ v6 nexthops that upon shutdown we were leaving the path->nexthops back pointer to the bnc variable still useful, after the bnc structure has been freed. When hard clearing the bnc, make sure that we clear the path->nexthops.

Recent changes to the nht code in bgp caused us to actually
keep a true count of v6 nexthop paths when using v4 over v6.
This change introduced a race condition on shutdown on who
got to the bnc cache first( the v4 table or not ).  Effectively
we were allowing the continued existence of the path->nexthop
pointing to the freed bnc.  This was especially true when
we had route leaking.   So when we free the bnc make sure
we clean up the path->nexthop variables pointing at it too.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
@LabN-CI
Copy link
Collaborator

LabN-CI commented Oct 17, 2018

💚 Basic BGPD CI results: SUCCESS, 0 tests failed

Results table
_ _
Result SUCCESS git merge/3195 3d11193
Date 10/17/2018
Start 11:40:13
Finish 12:03:14
Run-Time 23:01
Total 1816
Pass 1816
Fail 0
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2018-10-17-11:40:13.txt
Log autoscript-2018-10-17-11:40:52.log.bz2

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

Continuous Integration Result: SUCCESSFUL

Congratulations, this patch passed basic tests

Tested-by: NetDEF / OpenSourceRouting.org CI System

CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-5666/

This is a comment from an EXPERIMENTAL automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.


CLANG Static Analyzer Summary

  • Github Pull Request 3195, comparing to Git base SHA 4a99c19

No Changes in Static Analysis warnings compared to base

@qlyoung
Copy link
Member

qlyoung commented Oct 17, 2018

@donaldsharp - This fixes #3144, correct?

@donaldsharp
Copy link
Member Author

yea probably

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants