Skip to content

Commit 5d07f43

Browse files
author
Fox Snowpatch
committed
1 parent 5287fd8 commit 5d07f43

14 files changed

Lines changed: 17 additions & 17 deletions

File tree

‎arch/arm/net/bpf_jit_32.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,7 @@ static inline void emit_ldsx_r(const s8 dst[], const s8 src,
13461346
arm_bpf_put_reg64(dst, rd, ctx);
13471347
}
13481348

1349-
/* Arithmatic Operation */
1349+
/* Arithmetic Operation */
13501350
static inline void emit_ar_r(const u8 rd, const u8 rt, const u8 rm,
13511351
const u8 rn, struct jit_ctx *ctx, u8 op,
13521352
bool is_jmp64) {

‎arch/powerpc/net/bpf_jit_comp32.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
* [ prev sp ] <-------------
2525
* [ nv gpr save area ] 16 * 4 |
26-
* fp (r31) --> [ ebpf stack space ] upto 512 |
26+
* fp (r31) --> [ ebpf stack space ] up to 512 |
2727
* [ frame header ] 16 |
2828
* sp (r1) ---> [ stack pointer ] --------------
2929
*/

‎arch/powerpc/net/bpf_jit_comp64.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Stack layout with frame:
2424
* Layout when setting up our own stack frame.
2525
* Note: r1 at bottom, component offsets positive wrt r1.
26-
* Ensure the top half (upto local_tmp_var) stays consistent
26+
* Ensure the top half (up to local_tmp_var) stays consistent
2727
* with our redzone usage.
2828
*
2929
* tail_call_info - stores tailcall count value in main program's
@@ -35,7 +35,7 @@
3535
* [ nv gpr save area ] (6 * 8) |
3636
* [ addl. nv gpr save area] (12 * 8) | <--- exception boundary/callback program
3737
* [ local_tmp_var ] 24 |
38-
* fp (r31) --> [ ebpf stack space ] upto 512 |
38+
* fp (r31) --> [ ebpf stack space ] up to 512 |
3939
* [ frame header ] 32/112 |
4040
* sp (r1) ---> [ stack pointer ] --------------
4141
*

‎arch/sparc/net/bpf_jit_asm_32.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ bpf_error:
195195
/* Make the JIT program return zero. The JIT epilogue
196196
* stores away the original %o7 into r_saved_O7. The
197197
* normal leaf function return is to use "retl" which
198-
* would evalute to "jmpl %o7 + 8, %g0" but we want to
198+
* would evaluate to "jmpl %o7 + 8, %g0" but we want to
199199
* use the saved value thus the sequence you see here.
200200
*/
201201
jmpl r_saved_O7 + 8, %g0

‎include/linux/filter.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ struct ctl_table_header;
147147
#define BPF_ALU32_IMM(OP, DST, IMM) \
148148
BPF_ALU32_IMM_OFF(OP, DST, IMM, 0)
149149

150-
/* Endianess conversion, cpu_to_{l,b}e(), {l,b}e_to_cpu() */
150+
/* Endianness conversion, cpu_to_{l,b}e(), {l,b}e_to_cpu() */
151151

152152
#define BPF_ENDIAN(TYPE, DST, LEN) \
153153
((struct bpf_insn) { \
@@ -1029,7 +1029,7 @@ static inline u8 *bpf_skb_cb(const struct sk_buff *skb)
10291029
*
10301030
* In some socket filter cases, the cb unfortunately needs to be
10311031
* saved/restored so that protocol specific skb->cb[] data won't
1032-
* be lost. In any case, due to unpriviledged eBPF programs
1032+
* be lost. In any case, due to unprivileged eBPF programs
10331033
* attached to sockets, we need to clear the bpf_skb_cb() area
10341034
* to not leak previous contents to user space.
10351035
*/

‎kernel/bpf/reuseport_array.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ reuseport_array_update_check(const struct reuseport_array *array,
207207
return -ENOTSUPP;
208208

209209
/*
210-
* sk must be hashed (i.e. listening in the TCP case or binded
210+
* sk must be hashed (i.e. listening in the TCP case or bound
211211
* in the UDP case) and
212212
* it must also be a SO_REUSEPORT sk (i.e. reuse cannot be NULL).
213213
*

‎tools/lib/bpf/btf.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3843,7 +3843,7 @@ static int btf_dedup_remap_types(struct btf_dedup *d);
38433843
* types, in general, can form graphs containing cycles, not just DAGs.
38443844
*
38453845
* While algorithm does deduplication, it also merges and resolves type
3846-
* information (unless disabled throught `struct btf_opts`), whenever possible.
3846+
* information (unless disabled through `struct btf_opts`), whenever possible.
38473847
* E.g., in the example above with two compilation units having partial type
38483848
* information for structs `A` and `B`, the output of algorithm will emit
38493849
* a single copy of each BTF type that describes structs `A`, `B`, and `S`
@@ -5644,7 +5644,7 @@ static int btf_dedup_resolve_fwds(struct btf_dedup *d)
56445644
*
56455645
* After we established for each type its corresponding canonical representative
56465646
* type, we now can eliminate types that are not canonical and leave only
5647-
* canonical ones layed out sequentially in memory by copying them over
5647+
* canonical ones laid out sequentially in memory by copying them over
56485648
* duplicates. During compaction btf_dedup->hypot_map array is reused to store
56495649
* a map from original type ID to a new compacted type ID, which will be used
56505650
* during next phase to "fix up" type IDs, referenced from struct/union and

‎tools/lib/bpf/usdt.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
* about. This state has to be maintained per-BPF object and coordinate
145145
* between different USDT attachments within the same BPF object.
146146
*
147-
* Spec ID is the key in spec BPF map, value is the actual USDT spec layed out
147+
* Spec ID is the key in spec BPF map, value is the actual USDT spec laid out
148148
* as struct usdt_spec. Each invocation of BPF program at runtime needs to
149149
* know its associated spec ID. It gets it either through BPF cookie, which
150150
* libbpf sets to spec ID during attach time, or, if kernel is too old to

‎tools/testing/selftests/bpf/libarena/src/asan.bpf.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ static __always_inline bool check_asan_args(s8 __arena *addr, size_t size,
221221
goto confirmed_valid;
222222

223223
/*
224-
* Wraparound is possible for values close to the the edge of the
224+
* Wraparound is possible for values close to the edge of the
225225
* 4GiB boundary of the arena (last valid address is 1UL << 32 - 1).
226226
*
227227
*

‎tools/testing/selftests/bpf/prog_tests/lwt_seg6local.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* IPv6 header with a Segment Routing Header, with segments :
1414
* fd00::1 -> fd00::2 -> fd00::3 -> fd00::4
1515
*
16-
* 3 fd00::/16 IPv6 addresses are binded to seg6local End.BPF actions :
16+
* 3 fd00::/16 IPv6 addresses are bound to seg6local End.BPF actions :
1717
* - fd00::1 : add a TLV, change the flags and apply a End.X action to fc42::1
1818
* - fd00::2 : remove the TLV, change the flags, add a tag
1919
* - fd00::3 : apply an End.T action to fd00::4, through routing table 117

0 commit comments

Comments
 (0)