aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2021-12-13 17:00:32 -0800
committerDaniel Borkmann <[email protected]>2021-12-14 15:37:58 +0100
commit4581e676d3be9d8c921a48bf18e92c5a8f31bf13 (patch)
treea4084e42da2abbc4a1725b9e2d98fa7467cfe12e /net/unix/sysctl_net_unix.c
parentd27a662290963a1cde26cdfdbac71a546c06e94a (diff)
libbpf: Fix potential uninit memory read
In case of BPF_CORE_TYPE_ID_LOCAL we fill out target result explicitly. But targ_res itself isn't initialized in such a case, and subsequent call to bpf_core_patch_insn() might read uninitialized field (like fail_memsz_adjust in this case). So ensure that targ_res is zero-initialized for BPF_CORE_TYPE_ID_LOCAL case. This was reported by Coverity static analyzer. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions