cgroupfs: Synchronize access to cpuset controller bitmaps.

Reported-by: syzbot+98719e57f6acbe602b7f@syzkaller.appspotmail.com
PiperOrigin-RevId: 442672867
This commit is contained in:
Rahat Mahmood
2022-04-18 17:28:36 -07:00
committed by gVisor bot
parent 4efada5eb7
commit 5f9bd8a53b
+2
View File
@@ -65,6 +65,8 @@ func newCPUSetController(k *kernel.Kernel, fs *filesystem) *cpusetController {
// Clone implements controller.Clone.
func (c *cpusetController) Clone() controller {
c.mu.Lock()
defer c.mu.Unlock()
cpus := c.cpus.Clone()
mems := c.mems.Clone()
new := &cpusetController{