diff options
author | Kuniyuki Iwashima <[email protected]> | 2022-08-23 14:58:04 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2022-08-24 00:27:14 +0200 |
commit | 0947ae1121083d363d522ff7518ee72b55bd8d29 (patch) | |
tree | cd59d759f7288a213751153a94c67dd6c1334a0a /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 7d6620f107bae6ed687ff07668e8e8f855487aa9 (diff) |
bpf: Fix a data-race around bpf_jit_limit.
While reading bpf_jit_limit, it can be changed concurrently via sysctl,
WRITE_ONCE() in __do_proc_doulongvec_minmax(). The size of bpf_jit_limit
is long, so we need to add a paired READ_ONCE() to avoid load-tearing.
Fixes: ede95a63b5e8 ("bpf: add bpf_jit_limit knob to restrict unpriv allocations")
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions