[kernel] Comment typo fixes.

TEST: No behavior change
Change-Id: I1ffc2490baaf3f64d5c7cac7c09fd2772e0201e9
diff --git a/kernel/arch/x86/hypervisor/vmexit.cpp b/kernel/arch/x86/hypervisor/vmexit.cpp
index 783fd03..89ce9b0 100644
--- a/kernel/arch/x86/hypervisor/vmexit.cpp
+++ b/kernel/arch/x86/hypervisor/vmexit.cpp
@@ -291,7 +291,7 @@
             guest_state->rbx &= ~(1u << X86_FEATURE_PT.bit);
             // Disable:
             //  * Indirect Branch Prediction Barrier bit
-            //  * Single Thread Indirect Brance Predictors bit
+            //  * Single Thread Indirect Branch Predictors bit
             //  * Speculative Store Bypass Disable bit
             // These imply support for the IA32_SPEC_CTRL and IA32_PRED_CMD
             // MSRs, which are not implemented.
diff --git a/kernel/dev/interrupt/arm_gic/v2/arm_gicv2.cpp b/kernel/dev/interrupt/arm_gic/v2/arm_gicv2.cpp
index d4f2f1a..b2976e9 100644
--- a/kernel/dev/interrupt/arm_gic/v2/arm_gicv2.cpp
+++ b/kernel/dev/interrupt/arm_gic/v2/arm_gicv2.cpp
@@ -98,7 +98,7 @@
 
     spin_lock_save(&gicd_lock, &state, GICD_LOCK_FLAGS);
     if (!(GICREG(0, GICD_CTLR) & 1)) {
-        dprintf(SPEW, "%s: distibutor is off, calling arm_gic_init instead\n", __func__);
+        dprintf(SPEW, "%s: distributor is off, calling arm_gic_init instead\n", __func__);
         arm_gic_init();
         resume_gicd = true;
     } else {
@@ -342,7 +342,7 @@
     // PPIs are 16-31.
     uint32_t ppi_mask = 0xffff0000;
 
-    // GICD_ISENABLER0 is banked so it cooresponds to *this* CPU's interface.
+    // GICD_ISENABLER0 is banked so it corresponds to *this* CPU's interface.
     return (GICREG(0, GICD_ISENABLER(0)) & ppi_mask) != 0;
 }
 
@@ -351,7 +351,7 @@
     DEBUG_ASSERT(arch_ints_disabled());
 
     // We're going to check four interrupts at a time.  Build a repeated mask for the current CPU.
-    // Each byte in the mask is a CPU bit mask cooresponding to CPU0..CPU7 (lsb..msb).
+    // Each byte in the mask is a CPU bit mask corresponding to CPU0..CPU7 (lsb..msb).
     uint cpu_num = arch_curr_cpu_num();
     DEBUG_ASSERT(cpu_num < 8);
     uint32_t mask = 0x01010101U << cpu_num;
diff --git a/kernel/dev/uart/amlogic_s905/uart.cpp b/kernel/dev/uart/amlogic_s905/uart.cpp
index aa2cce6..bb4fe05 100644
--- a/kernel/dev/uart/amlogic_s905/uart.cpp
+++ b/kernel/dev/uart/amlogic_s905/uart.cpp
@@ -221,7 +221,7 @@
         return ZX_ERR_INTERNAL;
 
     } else {
-        //Interupts not online yet, use the panic calls for now.
+        //Interrupts not online yet, use the panic calls for now.
         return s905_uart_pgetc();
     }
 }
diff --git a/kernel/kernel/wait.cpp b/kernel/kernel/wait.cpp
index ea62ef1..f147908 100644
--- a/kernel/kernel/wait.cpp
+++ b/kernel/kernel/wait.cpp
@@ -128,7 +128,7 @@
 static void remove_queue_head(thread_t* t) {
     // are there any nodes in the queue for this priority?
     if (list_is_empty(&t->queue_node)) {
-        // no, remove ourself from the the queue list
+        // no, remove ourself from the queue list
         list_delete(&t->wait_queue_heads_node);
         list_clear_node(&t->queue_node);
     } else {
diff --git a/kernel/lib/memory_limit/memory_limit.cpp b/kernel/lib/memory_limit/memory_limit.cpp
index f757b72..a562bea 100644
--- a/kernel/lib/memory_limit/memory_limit.cpp
+++ b/kernel/lib/memory_limit/memory_limit.cpp
@@ -36,7 +36,7 @@
     size_t unused_back;  // Space after the region that is available
 } reserve_entry_t;
 
-// Boot reserve entries are processsed and added here for memory limit calculations.
+// Boot reserve entries are processed and added here for memory limit calculations.
 const size_t kReservedRegionMax = 64;
 static reserve_entry_t ReservedRegions[kReservedRegionMax];
 static size_t ReservedRegionCount;
diff --git a/kernel/lib/topology/include/lib/system-topology.h b/kernel/lib/topology/include/lib/system-topology.h
index 83d7a75..ffdbf5f 100644
--- a/kernel/lib/topology/include/lib/system-topology.h
+++ b/kernel/lib/topology/include/lib/system-topology.h
@@ -39,7 +39,7 @@
 // system.
 class Graph {
 public:
-    // Takes the flat topology array, valdates it, and sets it as the current topology. Returns an
+    // Takes the flat topology array, validates it, and sets it as the current topology. Returns an
     // error if the topology is invalid.
     //
     // This should only be called during early boot (platform_init), after that this data is
diff --git a/kernel/lib/topology/system-topology_test.cpp b/kernel/lib/topology/system-topology_test.cpp
index 32f37cd..548211d 100644
--- a/kernel/lib/topology/system-topology_test.cpp
+++ b/kernel/lib/topology/system-topology_test.cpp
@@ -17,7 +17,7 @@
     size_t node_count = 0;
 };
 
-// Defined at bottom of file, they are long and noisey.
+// Defined at bottom of file, they are long and noisy.
 
 // A generic arm big.LITTLE.
 FlatTopo SimpleTopology();
diff --git a/kernel/object/include/object/pinned_memory_token_dispatcher.h b/kernel/object/include/object/pinned_memory_token_dispatcher.h
index 0a5f2f8..36b61e1 100644
--- a/kernel/object/include/object/pinned_memory_token_dispatcher.h
+++ b/kernel/object/include/object/pinned_memory_token_dispatcher.h
@@ -68,7 +68,7 @@
     uint64_t size() const { return pinned_vmo_.size(); }
 protected:
     friend BusTransactionInitiatorDispatcher;
-    // Set the the permissions of |pinned_vmo|'s pinned range to |perms| on
+    // Set the permissions of |pinned_vmo|'s pinned range to |perms| on
     // behalf of |bti|. |perms| should be flags suitable for the Iommu::Map()
     // interface.  Must be created under the BTI dispatcher's lock.
     static zx_status_t Create(fbl::RefPtr<BusTransactionInitiatorDispatcher> bti,
diff --git a/kernel/object/job_policy.cpp b/kernel/object/job_policy.cpp
index bdb1e0f..53e7c1c 100644
--- a/kernel/object/job_policy.cpp
+++ b/kernel/object/job_policy.cpp
@@ -30,7 +30,7 @@
     static constexpr uint8_t kExplicitBit = 0b1000;
     static constexpr uint8_t kActionBits  = 0b0111;
 
-    // Indicates the the policies are fully encoded in the cookie.
+    // Indicates the policies are fully encoded in the cookie.
     static constexpr uint8_t kPolicyInCookie = 0;
 
     pol_cookie_t encoded;
diff --git a/kernel/tests/alloc_checker_tests.cpp b/kernel/tests/alloc_checker_tests.cpp
index c92a015..42f16aa 100644
--- a/kernel/tests/alloc_checker_tests.cpp
+++ b/kernel/tests/alloc_checker_tests.cpp
@@ -40,7 +40,7 @@
     ac.arm(16u, false);
     EXPECT_FALSE(ac.check(), "");
 
-    // Allocating zero bytes, allways succeeds.
+    // Allocating zero bytes, always succeeds.
     ac.arm(0u, false);
     EXPECT_TRUE(ac.check(), "");
 
diff --git a/kernel/tests/lock_dep_tests.cpp b/kernel/tests/lock_dep_tests.cpp
index 1eead21..f537ba6 100644
--- a/kernel/tests/lock_dep_tests.cpp
+++ b/kernel/tests/lock_dep_tests.cpp
@@ -336,7 +336,7 @@
         }
     }
 
-    // Test address order invariant with a differnt lock class.
+    // Test address order invariant with a different lock class.
     {
         Bar a{};
         Bar b{};
@@ -490,7 +490,7 @@
         }
     }
 
-    // Test spinlock options compile and baisc guard functions.
+    // Test spinlock options compile and basic guard functions.
     // TODO(eieio): Add Guard<>::state() accessor and check state values.
     {
         Baz<Spinlock> baz1;
diff --git a/kernel/tests/thread_tests.cpp b/kernel/tests/thread_tests.cpp
index ca40ce3..14dd338 100644
--- a/kernel/tests/thread_tests.cpp
+++ b/kernel/tests/thread_tests.cpp
@@ -739,7 +739,7 @@
 
 // start a bunch of threads that randomly set the affinity of the other threads
 // to random masks while doing various work.
-// a sucessful pass is one where it completes the run without tripping over any asserts
+// a successful pass is one where it completes the run without tripping over any asserts
 // in the scheduler code.
 __NO_INLINE static void affinity_test() {
     printf("starting thread affinity test\n");
diff --git a/kernel/vm/include/vm/fault.h b/kernel/vm/include/vm/fault.h
index 967ce75..84917c7 100644
--- a/kernel/vm/include/vm/fault.h
+++ b/kernel/vm/include/vm/fault.h
@@ -20,7 +20,7 @@
 const uint VMM_PF_FLAG_SW_FAULT = (1u << 6); // software fault
 const uint VMM_PF_FLAG_FAULT_MASK = (VMM_PF_FLAG_HW_FAULT | VMM_PF_FLAG_SW_FAULT);
 
-// convenience routine for convering page fault flags to a string
+// convenience routine for converting page fault flags to a string
 static const char* vmm_pf_flags_to_string(uint pf_flags, char str[5]) {
     str[0] = (pf_flags & VMM_PF_FLAG_WRITE) ? 'w' : 'r';
     str[1] = (pf_flags & VMM_PF_FLAG_USER) ? 'u' : ((pf_flags & VMM_PF_FLAG_GUEST) ? 'g' : 's');
diff --git a/kernel/vm/include/vm/vm_object.h b/kernel/vm/include/vm/vm_object.h
index 2eb1fcb..54de6f8 100644
--- a/kernel/vm/include/vm/vm_object.h
+++ b/kernel/vm/include/vm/vm_object.h
@@ -113,7 +113,7 @@
         return ZX_ERR_NOT_SUPPORTED;
     }
 
-    // The assocaited VmObjectDispatcher will set an observer to notify user mode.
+    // The associated VmObjectDispatcher will set an observer to notify user mode.
     void SetChildObserver(VmObjectChildObserver* child_observer);
 
     // Returns a null-terminated name, or the empty string if set_name() has not
@@ -137,7 +137,7 @@
 
     virtual void Dump(uint depth, bool verbose) = 0;
 
-    // cache maintainence operations.
+    // cache maintenance operations.
     virtual zx_status_t InvalidateCache(const uint64_t offset, const uint64_t len) {
         return ZX_ERR_NOT_SUPPORTED;
     }
diff --git a/kernel/vm/include/vm/vm_page_list.h b/kernel/vm/include/vm/vm_page_list.h
index d569923..c8c0060 100644
--- a/kernel/vm/include/vm/vm_page_list.h
+++ b/kernel/vm/include/vm/vm_page_list.h
@@ -113,7 +113,7 @@
     ~VmPageSpliceList();
 
     // Pops the next page off of the splice. If the next page was
-    // not commited, returns null.
+    // not committed, returns null.
     vm_page* Pop();
 
     // Returns true after the whole collection has been processed by Pop.