summaryrefslogtreecommitdiff
path: root/kernel/gen_kheaders.sh
diff options
context:
space:
mode:
authorDaniel Xu <dxu@dxuuu.xyz>2020-11-17 23:05:46 +0300
committerAlexei Starovoitov <ast@kernel.org>2020-11-19 22:58:15 +0300
commitc8a36aedf3e24768e94d87fdcdd37684bd241c44 (patch)
tree5eadde2770ff55b99a77d39e56e9b3dc322ce628 /kernel/gen_kheaders.sh
parent6fa6d28051e9fcaa1570e69648ea13a353a5d218 (diff)
downloadlinux-c8a36aedf3e24768e94d87fdcdd37684bd241c44.tar.xz
selftest/bpf: Test bpf_probe_read_user_str() strips trailing bytes after NUL
Previously, bpf_probe_read_user_str() could potentially overcopy the trailing bytes after the NUL due to how do_strncpy_from_user() does the copy in long-sized strides. The issue has been fixed in the previous commit. This commit adds a selftest that ensures we don't regress bpf_probe_read_user_str() again. Signed-off-by: Daniel Xu <dxu@dxuuu.xyz> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Song Liu <songliubraving@fb.com> Acked-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/4d977508fab4ec5b7b574b85bdf8b398868b6ee9.1605642949.git.dxu@dxuuu.xyz
Diffstat (limited to 'kernel/gen_kheaders.sh')
0 files changed, 0 insertions, 0 deletions