diff options
| author | Andrii Nakryiko <andrii@kernel.org> | 2021-11-24 03:23:23 +0300 |
|---|---|---|
| committer | Daniel Borkmann <daniel@iogearbox.net> | 2021-11-26 02:15:03 +0300 |
| commit | 57428298b5acf2ba2dd98359c532774f6eaeecb3 (patch) | |
| tree | 28e480c67e6e746dc4bea684bc49a9be49303cc4 /include/linux/start_kernel.h | |
| parent | e2e0d90c550a2588ebed7aa2753adaac0f633989 (diff) | |
| download | linux-57428298b5acf2ba2dd98359c532774f6eaeecb3.tar.xz | |
selftests/bpf: Prevent out-of-bounds stack access in test_bpffs
Buf can be not zero-terminated leading to strstr() to access data beyond
the intended buf[] array. Fix by forcing zero termination.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20211124002325.1737739-12-andrii@kernel.org
Diffstat (limited to 'include/linux/start_kernel.h')
0 files changed, 0 insertions, 0 deletions
