Skip to content
Commit f3f21349 authored by Barret Rhoden's avatar Barret Rhoden Committed by Alexei Starovoitov
Browse files

bpf: ensure all memory is initialized in bpf_get_current_comm



BPF helpers that take an ARG_PTR_TO_UNINIT_MEM must ensure that all of
the memory is set, including beyond the end of the string.

Signed-off-by: default avatarBarret Rhoden <brho@google.com>
Link: https://lore.kernel.org/r/20230407001808.1622968-1-brho@google.com


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 4daf0b32
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment