diff options
| author | Eduard Zingerman <eddyz87@gmail.com> | 2026-08-16 15:54:18 -0700 |
|---|---|---|
| committer | Eduard Zingerman <eddyz87@gmail.com> | 2026-08-16 20:36:28 -0700 |
| commit | 8eb18920646415f6b4f100b34bd456c4fe002196 (patch) | |
| tree | 954d6de01e631ed384a017cded63b9d6ece80950 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 4bc49ae344d65cfcef738f281ac575cf73ca2fc5 (diff) | |
| parent | 5ab9fbeca8f7da1b40697cf4e75257b9447f03f2 (diff) | |
Merge branch 'bpf-reject-mixed-arena-and-ordinary-atomic-paths'
Yiyang Chen says:
====================
bpf: Reject mixed arena and ordinary atomic paths
Atomic RMW instructions use a single aux pointer type to select their final
instruction encoding. The verifier currently records that type only for
PTR_TO_ARENA, allowing a second path with an ordinary pointer to reach the
same instruction before fixups rewrite it to BPF_PROBE_ATOMIC.
Patch 1 records the destination type for every atomic RMW path so the existing
pointer mismatch check rejects incompatible uses of one instruction.
Patch 2 adds a verifier regression test with PTR_TO_ARENA and
PTR_TO_STACK paths converging on one atomic add.
====================
Link: https://patch.msgid.link/20260816-bpf-next-038-mixed-atomic-v1-v2-0-4644c1886dbc@mails.tsinghua.edu.cn
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
