]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: Add spis_*() helpers for 4-byte stack slot bitmasks
authorAlexei Starovoitov <ast@kernel.org>
Fri, 10 Apr 2026 20:55:54 +0000 (13:55 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 10 Apr 2026 22:04:51 +0000 (15:04 -0700)
commit2ad45b414b8779ba5c50f746fd767926cccde729
tree0889572d996f048ec51d828133080a60f582b41a
parentcf3ee1ecf3466ddb978a58df9d5b638e7dff673d
bpf: Add spis_*() helpers for 4-byte stack slot bitmasks

Add helper functions for manipulating u64[2] bitmasks that represent
4-byte stack slot liveness. The 512-byte BPF stack is divided into
128 4-byte slots, requiring 128 bits (two u64s) to track.

These will be used by the static stack liveness analysis in the
next commit.

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20260410-patch-set-v4-3-5d4eecb343db@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/bpf_verifier.h