mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
cgroupfs: Synchronize access to cpuset controller bitmaps.
Reported-by: syzbot+98719e57f6acbe602b7f@syzkaller.appspotmail.com PiperOrigin-RevId: 442672867
This commit is contained in:
committed by
gVisor bot
parent
4efada5eb7
commit
5f9bd8a53b
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user