diff options
author | Kevin Krakauer <krakauer@google.com> | 2021-06-04 14:25:21 -0700 |
---|---|---|
committer | Kevin Krakauer <krakauer@google.com> | 2021-06-09 10:02:42 -0700 |
commit | 12973f6244bc84fb745f2ae9120a69ffc820ef70 (patch) | |
tree | 09c520ec24caaa2db70cebfaa766f66bd624d876 /pkg/sentry/fs/proc/sys.go | |
parent | 240629524905024c7564d009cbc47c7b44064219 (diff) |
Avoid fanout group collisions with best effort
Running multiple instances of netstack in the same network namespace can
cause collisions when enabling packet fanout for fdbased endpoints. The
only bulletproof fix is to run in different network namespaces, but by
using `getpid()` instead of 0 as the fanout ID starting point we can
avoid collisions in the common case, particularly when
testing/experimenting.
Addresses #6124
Diffstat (limited to 'pkg/sentry/fs/proc/sys.go')
0 files changed, 0 insertions, 0 deletions