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

fix(kds): clone resource on update meta (backport of #10460) #12122

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

kumahq[bot]
Copy link
Contributor

@kumahq kumahq bot commented Nov 27, 2024

While investigating the KDS code in the release-2.7 branch, I noticed that the resource is not cloned in UpdateResourceMeta. This issue was fixed in releases >= 2.8, but it remains unresolved in 2.7. I'm not sure if the fix fully addresses the issue, but it seems related

unexpected fault address 0x0
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x80 addr=0x0 pc=0x1538f3b]

goroutine 5145 gp=0xc001cb5180 m=4 mp=0xc000100008 [running]:
...
github.com/kumahq/kuma/pkg/kds/context.DefaultContext.UpdateResourceMeta.func2(0xc0032183c0?, {0x4874b50, 0xc0013ff0e0})
goroutine 45485 gp=0xc001005880 m=nil [runnable]:
...
github.com/kumahq/kuma/pkg/kds/context.DefaultContext.If.func15(0xc0047cb8c0, {0x4874b50, 0xc0016fbbd8})

in both goroutine 0x4874b50 is the meta address.

Automatic cherry-pick of #10460 for branch release-2.7

Generated by action

cherry-picked commit 3d506ed

@kumahq kumahq bot requested a review from a team as a code owner November 27, 2024 13:38
@kumahq kumahq bot added the release-2.7 label Nov 27, 2024
@kumahq kumahq bot requested review from jijiechen and slonka and removed request for a team November 27, 2024 13:38
Signed-off-by: Lukasz Dziedziak <[email protected]>
@lukidzi
Copy link
Contributor

lukidzi commented Nov 27, 2024

While investigating the KDS code in the release-2.7 branch, I noticed that the resource is not cloned in UpdateResourceMeta. This issue was fixed in releases >= 2.8, but it remains unresolved in 2.7. I'm not sure if the fix fully addresses the issue, but it seems related

unexpected fault address 0x0
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x80 addr=0x0 pc=0x1538f3b]

goroutine 5145 gp=0xc001cb5180 m=4 mp=0xc000100008 [running]:
...
github.com/kumahq/kuma/pkg/kds/context.DefaultContext.UpdateResourceMeta.func2(0xc0032183c0?, {0x4874b50, 0xc0013ff0e0})
goroutine 45485 gp=0xc001005880 m=nil [runnable]:
...
github.com/kumahq/kuma/pkg/kds/context.DefaultContext.If.func15(0xc0047cb8c0, {0x4874b50, 0xc0016fbbd8})

in both goroutine 0x4874b50 is the meta address.

@lahabana lahabana merged commit d59a65d into release-2.7 Nov 27, 2024
16 checks passed
@lahabana lahabana deleted the chore/backport-release-2.7-10460 branch November 27, 2024 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants