diff options
author | Jamie Liu <jamieliu@google.com> | 2021-03-25 20:25:46 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-03-25 20:27:38 -0700 |
commit | fbec65fc3f21773cbec3db4aadf27b85e8859448 (patch) | |
tree | e797e9bdbb2bd8653bda2fcc7cc8e56b04fa7cb3 /pkg/usermem/bytes_io_unsafe.go | |
parent | 79bc446facf3d6920853c4cf35e72d25dd4c1011 (diff) |
Use seqfile.SeqHandles correctly in VFS1 /proc/net/.
Before this change:
```
$ docker run --runtime=runsc --rm -it -v ~/tmp:/hosttmp ubuntu:focal /hosttmp/issue5732 --bytes1=128 --bytes2=1024
#1: read(128) = 128
#2: read(1024) = EOF
$ docker run --runtime=runsc-vfs2 --rm -it -v ~/tmp:/hosttmp ubuntu:focal /hosttmp/issue5732 --bytes1=128 --bytes2=1024
#1: read(128) = 128
#2: read(1024) = 256
```
After this change:
```
$ docker run --runtime=runsc --rm -it -v ~/tmp:/hosttmp ubuntu:focal /hosttmp/issue5732 --bytes1=128 --bytes2=1024
#1: read(128) = 128
#2: read(1024) = 256
$ docker run --runtime=runsc-vfs2 --rm -it -v ~/tmp:/hosttmp ubuntu:focal /hosttmp/issue5732 --bytes1=128 --bytes2=1024
#1: read(128) = 128
#2: read(1024) = 256
```
Fixes #5732
PiperOrigin-RevId: 365178386
Diffstat (limited to 'pkg/usermem/bytes_io_unsafe.go')
0 files changed, 0 insertions, 0 deletions