-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Parse rtattr #8629
Parse rtattr #8629
Conversation
Outdated results 🛑Basic BGPD CI results: FAILURE
For details, please contact louberger |
@louberger can you help out here? |
Continuous Integration Result: SUCCESSFULContinuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-18830/ This is a comment from an automated CI system. CLANG Static Analyzer Summary
Fixed warnings:
New warnings:
Static Analysis warning summary compared to base:
5 Static Analyzer issues remaining.See details at |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marking as not ready because of some new warnings.
Outdated results 🛑Basic BGPD CI results: FAILURE
For details, please contact louberger |
compile fails once rebased/merged to/with master: Makefile:5514: recipe for target 'all' failed |
In order to parse the netlink message into the `struct rtattr *tb[size]` it is assumed that the buffer is memset to 0 before the parsing. As such if you attempt to read a value that was not returned in the message you will not crash when you test for it. The code has places were we memset it and places where we don't. This *will* lead to crashes when the kernel changes. In our parsing routines let's have them memset instead of having to remember to do it pre pass in to the parser. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
if_netlink.c created it's on nested parsing #define which is identical to netlink_parse_rtattr_nested. Consolidate on one instead of having this duality. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
@idryzhov I have addressed the issues |
💚 Basic BGPD CI results: SUCCESS, 0 tests failedResults table
For details, please contact louberger |
Continuous Integration Result: FAILEDSee below for issues. This is a comment from an automated CI system. Get source / Pull Request: SuccessfulBuilding Stage: SuccessfulBasic Tests: FailedTopotests debian 10 amd64 part 3: Failed (click for details)Topology Test Results are at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-TOPO3DEB10AMD64-18949/test Topology Tests failed for Topotests debian 10 amd64 part 3:
see full log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-18949/artifact/TOPO3DEB10AMD64/ErrorLog/log_topotests.txt Successful on other platforms/tests
|
CI failure unrelated, merging. |
Cleanup usage of the parse_rtattr code in zebra.
a) in some places we memset tb before and in some places we don't. This is a crash waiting to happen. Move memset to inside function to ensure it always happens
b) if_netlink.c had a duplicate function that was a define. consolidate down to 1.