diff options
| author | Kui-Feng Lee <[email protected]> | 2023-05-02 18:14:18 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2023-05-02 23:20:31 +0000 |
| commit | fedf99200ab086c42a572fca1d7266b06cdc3e3f (patch) | |
| tree | e88d5e59b04d90a7f3bc739305c82f619b023897 /tools/lib/bpf/bpf_tracing.h | |
| parent | bpf: Emit struct bpf_tcp_sock type in vmlinux BTF (diff) | |
| download | kernel-fedf99200ab086c42a572fca1d7266b06cdc3e3f.tar.gz kernel-fedf99200ab086c42a572fca1d7266b06cdc3e3f.zip | |
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 <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf_tracing.h')
0 files changed, 0 insertions, 0 deletions
