diff options
| author | Andrii Nakryiko <[email protected]> | 2023-04-06 16:41:53 -0700 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2023-04-11 18:05:43 +0200 |
| commit | 24bc80887adb4d6fc0057d4f14fabeaa4502b2a0 (patch) | |
| tree | 3358cbc36e0e53f8512f00586215f715f0ed763a /tools/perf/scripts/python | |
| parent | b1a7a480a1120d4f70305f5e8859f527e0efe4a5 (diff) | |
bpf: Ignore verifier log reset in BPF_LOG_KERNEL mode
Verifier log position reset is meaningless in BPF_LOG_KERNEL mode, so
just exit early in bpf_vlog_reset() if log->level is BPF_LOG_KERNEL.
This avoid meaningless put_user() into NULL log->ubuf.
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Lorenz Bauer <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions