Add missing lock in Apply()#1668
Add missing lock in Apply()#1668vikaschoudhary16 wants to merge 1 commit intoopencontainers:masterfrom
Conversation
Cgroups joins and local variable 'path' updation should be done under lock protection. Lock protection absence can lead to race conditions and errors [1]. [1] https://ci.openshift.redhat.com/jenkins/job/test_pull_request_crio_e2e_rhel/433/consoleFull#199861745056cbb9a5e4b02b88ae8c2f77 Signed-off-by: vikaschoudhary16 <vichoudh@redhat.com>
|
Are you sure this patch fixes this bug? The error in that log is coming from the kernel (I looked at it when it was reported against cri-o) and is an |
|
@cyphar I am not 100% sure that this is the fix for that bug. I saw your comment at cri-o issue. I am just guessing that it could be a fix and for verification created a test PR at cri-o: OTOH, Are you sure that this cant be the fix? |
|
The error ( |
|
@cyphar If we go by your theory, this should be reproducible and the following should break sometime : Right? |
|
You'd have to write to |
|
@cyphar ok, so this check dint help with cgroup flake. |
This still needs to be verified. JJ is failing, which i shared above but from logs i see that runc is being used from origin and not from cri-o, where i have added the lock in the PR, for testing. |
|
I thought the recent PR #1683 ( of which commit is d5b4a3e) already fixed the same problem(openshift/origin#16246), |
|
Yes, I believe that #1683 is the correct fix for this issue. Closing. |
Cgroups joins and local variable 'path' updation should be
done under lock protection. Lock protection absence can lead
to race conditions and errors [1].
[1] https://ci.openshift.redhat.com/jenkins/job/test_pull_request_crio_e2e_rhel/433/consoleFull#199861745056cbb9a5e4b02b88ae8c2f77
/cc @sjenning
Signed-off-by: vikaschoudhary16 vichoudh@redhat.com