Merged
Conversation
DPDK's LPM table for IPv6 has a bug that truncates the next hop field of LPM rules. Given that the bug truncates the next hop field to 8 bits, the problem only happens when the largest next hop field is larger than 255. The truncation will be triggered during regular operation and saved in the table. And it always happens while iterating over LPM6 tables. In Gatekeeper, the problem manifests in an array of symptoms, for example (non-exhaustive list): 1. Failed asserts on FIB entries with an invalid action. This happens when one of the prefixes that map to the same truncated entry is removed and an access to one of the other prefixes is made. 2. Lots of extra editing activities from routing daemons. Since the FIB is never exactly how routing daemons expects it to be, routing daemon keeps editing the FIB. 3. The script show_fib6_grantor.lua of command gkctl may list multiple extra FIB entries with action GK_FWD_GRANTOR. The extra Grantor entries are just entries whose next hop field is being truncated to the next hop of a Grantor FIB entry.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DPDK's LPM table for IPv6 has a bug that truncates the next hop field of LPM rules. Given that the bug truncates
the next hop field to 8 bits, the problem only happens when the largest next hop field is larger than 255.
The truncation will be triggered during regular operation and saved in the table. And it always happens while iterating over
LPM6 tables.
In Gatekeeper, the problem manifests in an array of symptoms, for example (non-exhaustive list):
Failed asserts on FIB entries with an invalid action. This happens when one of the prefixes that map to the same
truncated entry is removed and an access to one of the other prefixes is made.
Lots of extra editing activities from routing daemons. Since the FIB is never exactly how routing daemons expects
it to be, routing daemon keeps editing the FIB.
The script
show_fib6_grantor.luaof commandgkctlmay list multiple extra FIB entries with actionGK_FWD_GRANTOR.The extra Grantor entries are just entries whose next hop field is being truncated to the next hop of a Grantor FIB entry.