diff options
| author | Daniel Borkmann <daniel@iogearbox.net> | 2026-07-08 23:15:37 +0200 |
|---|---|---|
| committer | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2026-07-09 07:00:02 +0200 |
| commit | ff755b6007908730946c155bb0d90ebc55926da7 (patch) | |
| tree | e5e3f0109753eccc3759ce75a1ddb13bcc773c2c /tools/perf/scripts/python/bin | |
| parent | 42560699a83db261d1a671a5eadade460d0f9eee (diff) | |
bpf: Account scratch buffer in bpf_prog_calc_tag
bpf_prog_calc_tag() copies the instructions into a plain vmalloc() scratch
buffer to blind the map fds before hashing. The buffer scales with the
program, up to ~8MB at the 1M instruction limit, and is allocated on every
program load, but unlike the rest of the load-time scratch memory it is
not charged to the loader's memcg. Use GFP_KERNEL_ACCOUNT to account it
like the other allocations scoped to the verification/load.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20260708211537.371874-5-daniel@iogearbox.net
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
