-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Fix failure in FuzzDenyPreferredInsert
test
#30368
Merged
christarazi
merged 2 commits into
cilium:main
from
christarazi:pr/christarazi/fix-fuzzing-nil-ptr
Feb 1, 2024
Merged
Fix failure in FuzzDenyPreferredInsert
test
#30368
christarazi
merged 2 commits into
cilium:main
from
christarazi:pr/christarazi/fix-fuzzing-nil-ptr
Feb 1, 2024
Conversation
This file contains 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
Member
christarazi
commented
Jan 23, 2024
- policy: De-dup logic for insertion in map state in addDependentOnEntry()
- policy: Initialize mapstate structures before insertion
The logic for Insert() was duplicated inside addDependentOnEntry(), so call Insert() instead of repeating the logic for insertion. Signed-off-by: Chris Tarazi <chris@isovalent.com>
This commit refactors the mapstate insertion code such that it ensures the underlying map is initialized before inserting. The idea is to prevent the following error message: ``` panic: assignment to entry in nil map ``` which was exposed by the FuzzDenyPreferredInsert fuzz test.[1] Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63091 [1]: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63091 Signed-off-by: Chris Tarazi <chris@isovalent.com>
christarazi
added
kind/bug
This is a bug in the Cilium logic.
sig/policy
Impacts whether traffic is allowed or denied based on user-defined policies.
release-note/misc
This PR makes changes that have no direct user impact.
labels
Jan 23, 2024
christarazi
changed the title
pr/christarazi/fix fuzzing nil ptr
Fix failure in Jan 23, 2024
FuzzDenyPreferredInsert
test
/test |
christarazi
added
the
needs-backport/1.15
This PR / issue needs backporting to the v1.15 branch
label
Jan 23, 2024
cc @cilium/sig-policy |
nathanjsweet
approved these changes
Feb 1, 2024
12 tasks
nbusseneau
added
backport-pending/1.15
The backport for Cilium 1.15.x for this PR is in progress.
and removed
needs-backport/1.15
This PR / issue needs backporting to the v1.15 branch
labels
Feb 8, 2024
github-actions
bot
added
backport-done/1.15
The backport for Cilium 1.15.x for this PR is done.
and removed
backport-pending/1.15
The backport for Cilium 1.15.x for this PR is in progress.
labels
Feb 9, 2024
michi-covalent
moved this from Needs backport from main
to Backport done to v1.15
in 1.15.1
Feb 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
backport-done/1.15
The backport for Cilium 1.15.x for this PR is done.
kind/bug
This is a bug in the Cilium logic.
release-note/misc
This PR makes changes that have no direct user impact.
sig/policy
Impacts whether traffic is allowed or denied based on user-defined policies.
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.