Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/ring0/pagetables/pagetables.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/sentry/fsimpl/user/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pkg/sentry/state/stateio/bufreader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pkg/state/wire/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/tcpip/nftables/nftables.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/packetimpact/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/packetimpact/tests/tcp_network_unreachable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 */},
Expand Down
2 changes: 1 addition & 1 deletion test/syscalls/linux/iptables.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <netinet/in.h>
#include <stddef.h>
Expand Down
2 changes: 1 addition & 1 deletion test/syscalls/linux/socket_ipv4_udp_unbound.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
Loading