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

nat: Orphan entries in NAT table #12686

Closed
brb opened this issue Jul 27, 2020 · 0 comments · Fixed by #13912
Closed

nat: Orphan entries in NAT table #12686

brb opened this issue Jul 27, 2020 · 0 comments · Fixed by #13912
Assignees
Labels
kind/bug This is a bug in the Cilium logic. priority/high This is considered vital to an upcoming release. sig/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages.

Comments

@brb
Copy link
Member

brb commented Jul 27, 2020

If the (LRU) CT table gets full, then an eviction of CT entry upon insert of a new entry won't trigger removal of NAT, and such entries won't be removed by the CT GC. To avoid from leaking entries, we should scan the NAT map and remove orphan entries.

Merging the CT and NAT maps or implementing LRU callbacks in the kernel would be a long term fix.

@brb brb added kind/bug This is a bug in the Cilium logic. sig/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages. needs-backport/1.6 labels Jul 27, 2020
@brb brb self-assigned this Jul 27, 2020
@borkmann borkmann moved this from WIP (Martynas) to WIP (Daniel) in 1.9 kube-proxy removal & general dp optimization Sep 21, 2020
@borkmann borkmann moved this from WIP (Daniel) to WIP (Martynas) in 1.9 kube-proxy removal & general dp optimization Sep 28, 2020
@brb brb added the priority/high This is considered vital to an upcoming release. label Nov 4, 2020
@brb brb mentioned this issue Nov 5, 2020
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug This is a bug in the Cilium logic. priority/high This is considered vital to an upcoming release. sig/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant