gvisor/pkg
Bhasker Hariharan 56cadcac4e Fixes to PacketMMap dispatcher.
This CL fixes the following bugs:

- Uses atomic to set/read status instead of binary.LittleEndian.PutUint32 etc
which are not atomic.

- Increments ringOffsets for frames that are truncated (i.e status is
  tpStatusCopy)

- Does not ignore frames with tpStatusLost bit set as they are valid frames and
  only indicate that there some frames were lost before this one and metrics can
  be retrieved with a getsockopt call.

- Adds checks to make sure blockSize is a multiple of page size. This is
  required as the kernel allocates in pages per block and rejects sizes that are
  not page aligned with an EINVAL.

Updates #210

PiperOrigin-RevId: 244959464
Change-Id: I5d61337b7e4c0f8a3063dcfc07791d4c4521ba1f
2019-04-23 17:47:56 -07:00
..
abi Only emit unimplemented syscall events for unsupported values. 2019-04-18 11:51:41 -07:00
amutex Remove license comments 2019-01-31 11:12:53 -08:00
atomicbitops Remove license comments 2019-01-31 11:12:53 -08:00
binary Internal change. 2019-04-17 11:40:11 -07:00
bits Remove license comments 2019-01-31 11:12:53 -08:00
bpf Remove license comments 2019-01-31 11:12:53 -08:00
compressio Remove license comments 2019-01-31 11:12:53 -08:00
control Remove license comments 2019-01-31 11:12:53 -08:00
cpuid Set fixed field in CPUID function 2 2019-04-04 18:01:56 -07:00
dhcp Resolve stringer TODO 2019-03-25 14:59:58 -07:00
eventchannel Internal change. 2019-04-03 22:02:51 -07:00
fd Replace os.File with fd.FD in fsgofer 2019-04-23 16:10:54 -07:00
fdnotifier Convert poll/select to operate more directly on linux.PollFD 2019-04-17 12:15:01 -07:00
gate Remove license comments 2019-01-31 11:12:53 -08:00
ilist Use (*testing.T).Helper to clean up test failures 2019-04-09 05:17:32 -07:00
linewriter Remove license comments 2019-01-31 11:12:53 -08:00
log Remove license comments 2019-01-31 11:12:53 -08:00
metric Remove license comments 2019-01-31 11:12:53 -08:00
p9 Remove reflection from 9P serving path 2019-04-23 16:26:10 -07:00
rand Remove license comments 2019-01-31 11:12:53 -08:00
refs Remove license comments 2019-01-31 11:12:53 -08:00
seccomp Add profiling commands to runsc 2019-03-11 11:47:30 -07:00
secio Remove license comments 2019-01-31 11:12:53 -08:00
segment Remove license comments 2019-01-31 11:12:53 -08:00
sentry Bugfix: fix fstatat symbol link to dir 2019-04-22 20:07:06 -07:00
sleep Remove license comments 2019-01-31 11:12:53 -08:00
state Clean up state error handling 2019-04-22 18:20:51 -07:00
syserr Implement IP_MULTICAST_LOOP. 2019-03-08 15:49:17 -08:00
syserror Priority-inheritance futex implementation 2019-03-05 23:40:18 -08:00
tcpip Fixes to PacketMMap dispatcher. 2019-04-23 17:47:56 -07:00
tmutex Remove license comments 2019-01-31 11:12:53 -08:00
unet Internal change. 2019-02-24 17:31:59 -08:00
urpc Internal change. 2019-02-08 14:14:14 -08:00
waiter Convert poll/select to operate more directly on linux.PollFD 2019-04-17 12:15:01 -07:00