summaryrefslogtreecommitdiff
path: root/CREDITS
diff options
context:
space:
mode:
authorGaurav Singh <gaurav1086@gmail.com>2020-06-12 21:53:27 +0300
committerSasha Levin <sashal@kernel.org>2020-06-30 22:36:55 +0300
commitd909f9db0caa2e7a582cc47f8366743e0873efcc (patch)
treefbcd4521a58d3280aa6ce35bc5f47c84b5635008 /CREDITS
parent0608288c6caab98e7819dd017b4a8818819ddfed (diff)
downloadlinux-d909f9db0caa2e7a582cc47f8366743e0873efcc.tar.xz
bpf, xdp, samples: Fix null pointer dereference in *_user code
[ Upstream commit 6903cdae9f9f08d61e49c16cbef11c293e33a615 ] Memset on the pointer right after malloc can cause a NULL pointer deference if it failed to allocate memory. A simple fix is to replace malloc()/memset() pair with a simple call to calloc(). Fixes: 0fca931a6f21 ("samples/bpf: program demonstrating access to xdp_rxq_info") Signed-off-by: Gaurav Singh <gaurav1086@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Jesper Dangaard Brouer <brouer@redhat.com> Acked-by: John Fastabend <john.fastabend@gmail.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions