mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Prevent DATA RACE in UnstableAttr.
The slaveInodeOperations is currently copying the object when truncate is called (which is a no-op). This may result in a (unconsequential) data race when being modified concurrently. PiperOrigin-RevId: 294484276
This commit is contained in:
committed by
gVisor bot
parent
762e4761cc
commit
115898e368
@@ -73,7 +73,7 @@ func (si *slaveInodeOperations) Release(ctx context.Context) {
|
||||
}
|
||||
|
||||
// Truncate implements fs.InodeOperations.Truncate.
|
||||
func (slaveInodeOperations) Truncate(context.Context, *fs.Inode, int64) error {
|
||||
func (*slaveInodeOperations) Truncate(context.Context, *fs.Inode, int64) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user