diff options
author | Kui-Feng Lee <thinker.li@gmail.com> | 2023-05-02 11:14:18 -0700 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2023-05-02 16:20:31 -0700 |
commit | fedf99200ab086c42a572fca1d7266b06cdc3e3f (patch) | |
tree | e88d5e59b04d90a7f3bc739305c82f619b023897 /tools/perf/scripts/python/stackcollapse.py | |
parent | bf6882aebd0ea67558764d44ddeffc7d253c6eb8 (diff) |
bpf: Print a warning only if writing to unprivileged_bpf_disabled.
Only print the warning message if you are writing to
"/proc/sys/kernel/unprivileged_bpf_disabled".
The kernel may print an annoying warning when you read
"/proc/sys/kernel/unprivileged_bpf_disabled" saying
WARNING: Unprivileged eBPF is enabled with eIBRS on, data leaks possible
via Spectre v2 BHB attacks!
However, this message is only meaningful when the feature is
disabled or enabled.
Signed-off-by: Kui-Feng Lee <kuifeng@meta.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20230502181418.308479-1-kuifeng@meta.com
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions