diff --git a/pkg/ring0/pagetables/pagetables.go b/pkg/ring0/pagetables/pagetables.go index 1d2b96c139..978b57ca9c 100644 --- a/pkg/ring0/pagetables/pagetables.go +++ b/pkg/ring0/pagetables/pagetables.go @@ -57,7 +57,7 @@ type PageTables struct { // own the ranges that are shared with other Pagetables. readOnlyShared bool - // largeAddressesEnabled indicates the Pagetables support addresess + // largeAddressesEnabled indicates the Pagetables support addresses // larger than 48 bits. largeAddressesEnabled bool } diff --git a/pkg/sentry/fsimpl/user/user.go b/pkg/sentry/fsimpl/user/user.go index 8b36cc9727..8b39940410 100644 --- a/pkg/sentry/fsimpl/user/user.go +++ b/pkg/sentry/fsimpl/user/user.go @@ -345,7 +345,7 @@ func getExecUIDGID(ctx context.Context, mns *vfs.MountNamespace, user string) (a ctx: ctx, fd: fd, } - // This return kGid from the passwd file (if we find one). We might have recieved a group id + // This return kGid from the passwd file (if we find one). We might have received a group id // string or numeric from the user. kUID, kGID := FindUIDGIDInPasswd(r, user) usergroup := strings.SplitN(user, ":", 2) diff --git a/pkg/sentry/state/stateio/bufreader.go b/pkg/sentry/state/stateio/bufreader.go index f511da0faa..e0ee2f494a 100644 --- a/pkg/sentry/state/stateio/bufreader.go +++ b/pkg/sentry/state/stateio/bufreader.go @@ -239,7 +239,7 @@ func getBufReadWriterParams(maxIOBytes64 uint64, maxParallel, maxSize int) (byte if maxSize <= 0 { return maxIOBytes, maxParallel } - // Can we accomodate at least two reads/writes of size maxIOBytes? We don't + // Can we accommodate at least two reads/writes of size maxIOBytes? We don't // want to set the read/write size below maxIOBytes unless necessary, and // two is the minimum number of chunks required to have any amount of // async prefetching/writeback. diff --git a/pkg/state/wire/wire.go b/pkg/state/wire/wire.go index f89067acd2..f6c6e5d584 100644 --- a/pkg/state/wire/wire.go +++ b/pkg/state/wire/wire.go @@ -509,7 +509,7 @@ func loadMap(r *Reader) Map { func (m *Map) save(w *Writer) { l := Uint(len(m.Keys)) if int(l) != len(m.Values) { - panic(fmt.Sprintf("mismatched keys (%d) Aand values (%d)", len(m.Keys), len(m.Values))) + panic(fmt.Sprintf("mismatched keys (%d) and values (%d)", len(m.Keys), len(m.Values))) } l.save(w) if l == 0 { diff --git a/pkg/tcpip/nftables/nftables.go b/pkg/tcpip/nftables/nftables.go index 363c59c3f9..7eba8910fc 100644 --- a/pkg/tcpip/nftables/nftables.go +++ b/pkg/tcpip/nftables/nftables.go @@ -1559,7 +1559,7 @@ func (nf *NFTables) ParseNestedExprs(nestedAttrBytes nlmsg.AttrsView, maxExprs i for !nestedAttrBytes.Empty() { hdr, value, rest, ok := nestedAttrBytes.ParseFirst() if !ok { - return nil, syserr.NewAnnotatedError(syserr.ErrInvalidArgument, "Nftables: Failed to parse list atttribute for rules") + return nil, syserr.NewAnnotatedError(syserr.ErrInvalidArgument, "Nftables: Failed to parse list attribute for rules") } nestedAttrBytes = rest diff --git a/test/packetimpact/README.md b/test/packetimpact/README.md index 20e66d508e..5bcadb76ad 100644 --- a/test/packetimpact/README.md +++ b/test/packetimpact/README.md @@ -75,7 +75,7 @@ Packetdrill tests are **multi-platform** and can run against both Linux and gVisor. They are **concise** and use a special packetdrill scripting language. They are **more flexible** than a syscall test in that they can send packets that a syscall test would have difficulty sending, like a packet with a -calcuated ACK number. But they are also somewhat limimted in flexibiilty in that +calculated ACK number. But they are also somewhat limited in flexibility in that they can't do tests with multiple sockets. They have **no control-flow** ability like variables or conditionals. For example, it isn't possible to send a packet that depends on the window size of a previous packet because the packetdrill diff --git a/test/packetimpact/tests/tcp_network_unreachable_test.go b/test/packetimpact/tests/tcp_network_unreachable_test.go index 61e0ab8b55..1fb81f37e9 100644 --- a/test/packetimpact/tests/tcp_network_unreachable_test.go +++ b/test/packetimpact/tests/tcp_network_unreachable_test.go @@ -30,7 +30,7 @@ func init() { } // TestTCPSynSentUnreachable verifies that TCP connections fail immediately when -// an ICMP destination unreachable message is sent in response to the inital +// an ICMP destination unreachable message is sent in response to the initial // SYN. func TestTCPSynSentUnreachable(t *testing.T) { for _, tt := range []struct { diff --git a/test/packetimpact/tests/tcp_send_window_sizes_piggyback_test.go b/test/packetimpact/tests/tcp_send_window_sizes_piggyback_test.go index 64b7288fb9..822749439b 100644 --- a/test/packetimpact/tests/tcp_send_window_sizes_piggyback_test.go +++ b/test/packetimpact/tests/tcp_send_window_sizes_piggyback_test.go @@ -44,7 +44,7 @@ func TestSendWindowSizesPiggyback(t *testing.T) { expectedPayload2 []byte enqueue bool }{ - // Expect the first segment to be split as it cannot be accomodated in + // Expect the first segment to be split as it cannot be accommodated in // the sender window. This means we need not enqueue a new segment after // the first segment. {"WindowSmallerThanSegment", segmentSize - 1, sampleData[:(segmentSize - 1)], sampleData[(segmentSize - 1):], false /* enqueue */}, diff --git a/test/syscalls/linux/iptables.h b/test/syscalls/linux/iptables.h index 8475802f8c..08e2cfa085 100644 --- a/test/syscalls/linux/iptables.h +++ b/test/syscalls/linux/iptables.h @@ -19,7 +19,7 @@ #ifndef GVISOR_TEST_SYSCALLS_IPTABLES_TYPES_H_ #define GVISOR_TEST_SYSCALLS_IPTABLES_TYPES_H_ -// Netfilter headers require some headers to preceed them. +// Netfilter headers require some headers to precede them. // clang-format off #include #include diff --git a/test/syscalls/linux/socket_ipv4_udp_unbound.cc b/test/syscalls/linux/socket_ipv4_udp_unbound.cc index 83174bb48b..21ef4fe6f0 100644 --- a/test/syscalls/linux/socket_ipv4_udp_unbound.cc +++ b/test/syscalls/linux/socket_ipv4_udp_unbound.cc @@ -1502,7 +1502,7 @@ TEST_P(IPv4UDPUnboundSocketTest, ReuseAddrDistribution) { // Send a new message to the SO_REUSEADDR group. We use a new socket each // time so that a new ephemeral port will be used each time. This ensures - // that we aren't doing REUSEPORT-like hash load blancing. + // that we aren't doing REUSEPORT-like hash load balancing. auto sender = ASSERT_NO_ERRNO_AND_VALUE(NewSocket()); char send_buf[kMessageSize]; RandomizeBuffer(send_buf, sizeof(send_buf));