lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <20190301013716.1370014-5-andriin@fb.com> Date: Thu, 28 Feb 2019 17:37:16 -0800 From: Andrii Nakryiko <andriin@...com> To: <andrii.nakryiko@...il.com>, <ast@...com>, <yhs@...com>, <netdev@...r.kernel.org>, <bpf@...r.kernel.org>, <daniel@...earbox.net>, <songliubraving@...com> CC: Andrii Nakryiko <andriin@...com> Subject: [PATCH bpf-next 4/4] bpf/verifier: fix minor typos in comments Few more minor fixes in comments. Signed-off-by: Andrii Nakryiko <andriin@...com> --- kernel/bpf/verifier.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index c6911ede94af..0ee788bfd462 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c @@ -258,7 +258,7 @@ void bpf_verifier_vlog(struct bpf_verifier_log *log, const char *fmt, log->ubuf = NULL; } -/* log_level controls verbosity level of eBPF verifier. +/* env->log.level controls verbosity level of eBPF verifier. * bpf_verifier_log_write() is used to dump the verification trace to the log, * so the user can figure out what's wrong with the program */ @@ -617,7 +617,7 @@ static int realloc_func_state(struct bpf_func_state *state, int stack_size, /* Acquire a pointer id from the env and update the state->refs to include * this new pointer reference. - * On success, returns a valid pointer id to associate with the register + * On success, returns a valid pointer id to associate with the register. * On failure, returns a negative errno. */ static int acquire_reference_state(struct bpf_verifier_env *env, int insn_idx) @@ -714,7 +714,7 @@ static int copy_verifier_state(struct bpf_verifier_state *dst_state, struct bpf_func_state *dst; int i, err; - /* if dst has more stack frames then src frame, free them */ + /* if dst has more stack frames than src frame, free them */ for (i = src->curframe + 1; i <= dst_state->curframe; i++) { free_func_state(dst_state->frame[i]); dst_state->frame[i] = NULL; @@ -863,8 +863,7 @@ static bool reg_is_init_pkt_pointer(const struct bpf_reg_state *reg, enum bpf_reg_type which) { /* The register can already have a range from prior markings. - * This is fine as long as it hasn't been advanced from its - * origin. + * This is fine as long as it hasn't been advanced from its origin. */ return reg->type == which && reg->id == 0 && -- 2.17.1
Powered by blists - more mailing lists