{"action":"closed","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/18479","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/18479/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/18479/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/18479/events","html_url":"https://github.com/kubernetes/kubernetes/issues/18479","id":121372587,"number":18479,"title":"Potential data race in Kubelet","user":{"login":"Random-Liu","id":5821883,"avatar_url":"https://avatars.githubusercontent.com/u/5821883?v=3","gravatar_id":"","url":"https://api.github.com/users/Random-Liu","html_url":"https://github.com/Random-Liu","followers_url":"https://api.github.com/users/Random-Liu/followers","following_url":"https://api.github.com/users/Random-Liu/following{/other_user}","gists_url":"https://api.github.com/users/Random-Liu/gists{/gist_id}","starred_url":"https://api.github.com/users/Random-Liu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Random-Liu/subscriptions","organizations_url":"https://api.github.com/users/Random-Liu/orgs","repos_url":"https://api.github.com/users/Random-Liu/repos","events_url":"https://api.github.com/users/Random-Liu/events{/privacy}","received_events_url":"https://api.github.com/users/Random-Liu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/bug","name":"kind/bug","color":"e11d21"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/node","name":"team/node","color":"d2b48c"}],"state":"closed","locked":false,"assignee":{"login":"Random-Liu","id":5821883,"avatar_url":"https://avatars.githubusercontent.com/u/5821883?v=3","gravatar_id":"","url":"https://api.github.com/users/Random-Liu","html_url":"https://github.com/Random-Liu","followers_url":"https://api.github.com/users/Random-Liu/followers","following_url":"https://api.github.com/users/Random-Liu/following{/other_user}","gists_url":"https://api.github.com/users/Random-Liu/gists{/gist_id}","starred_url":"https://api.github.com/users/Random-Liu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Random-Liu/subscriptions","organizations_url":"https://api.github.com/users/Random-Liu/orgs","repos_url":"https://api.github.com/users/Random-Liu/repos","events_url":"https://api.github.com/users/Random-Liu/events{/privacy}","received_events_url":"https://api.github.com/users/Random-Liu/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-12-10T00:20:52Z","updated_at":"2015-12-16T18:05:13Z","closed_at":"2015-12-16T18:05:13Z","body":"As is described in the [comment](https://github.com/kubernetes/kubernetes/commit/bdbb025ff11edf781753286dc9b19878cd439bb7#commitcomment-14864897) of #18410.\r\n\r\nThe pointer to the [cached `api.Pod`](https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/config/config.go#L224) in `config.go` is passed all the way to kubelet and other kubelet components. When kubelet is using it, the cached pod can be changed by config again, so there is a potential ***data race*** here. This may come from #7004.\r\n\r\n**Solution:** `config.go` should copy pod before passing it to kubelet. [here](https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/config/config.go#L226)\r\n\r\nPost the issue here for issue tracking. :)\r\n"}}