betaFeedback

WorksComputer Science

Detecting Empty Abstractions and Pruning Dead Paths in the Linux eBPF Verifier with Abstract Step Functions

Abstract

The Linux kernel's eBPF verifier uses abstract interpretation to ensure the safety of user-provided programs before execution. It tracks each register with multiple interval domains and a bitwise domain (tristate numbers). Refining the abstract state at conditional branches can produce mutually contradictory constraints across domains, indicating an unreachable path. However, the verifier lacks an empty-set (⊥\bot) representation and cannot detect when these domains have an empty intersection, causing it to analyze dead paths. Passing such contradictory states into domain reduction or downstream operators violates their implicit non-emptiness precondition, triggering domain invariant violations. This has been a multi-year issue in the Linux kernel causing production outages, false rejections, and state explosion. This paper presents a sound and complete constant-time emptiness check across the eBPF verifier's abstract domains to prune dead branches. We introduce abstract step functions, a general framework that tests whether intervals and non-convex domains intersect in O(1) time without scanning individual values. We develop tnum_step, a formally verified constant-time operator that jumps to the next integer satisfying a tristate bitmask. Using tnum_step, we design a multi-domain emptiness check that detects contradictory states during branch refinement and immediately prunes unreachable branches, eliminating the root cause of dead-branch invariant violations. Our technique prevents invariant violations, state explosion, and false rejections while incurring negligible (1.48%) overhead across Linux kernel selftests and production suites such as Cilium. Our tnum_step operator has been upstreamed into the mainline Linux kernel.

Introduction

The eBPF [20] framework has transformed the Linux operating system kernel into a programmable platform that enables user-supplied programs to customize networking, observability, and security [11]. Today, eBPF is widely deployed in large production-grade compute clusters. A key component of the eBPF ecosystem is the eBPF verifier, an in-kernel static analyzer that checks program safety before incorporation into the kernel address space. The verifier enforces memory safety, termination, and type safety through abstract interpretation [15].

This paper concerns the static analysis in the eBPF verifier § 2. Along each code path in a user-supplied program, the verifier summarizes possible register values using five complementary abstract domains [15, 16], which include four intervals (tracking [min,max][\mathit{min}, \mathit{max}] bounds across 64-bit and 32-bit signed and unsigned interpretations) and a bitwise domain (tristate numbers or tnums [34, 35, 53]). The tnum tracks each bit of the 64-bit register as known 0, known 1, or unknown (x) (e.g., 01x0201\mathrm{x}0_2 represents the discrete set {0102,01102}={4,6}\{01\mathrm{0}_2, 011\mathrm{0}_2\} = \{4, 6\}). On each instruction, abstract operators update these abstract values (e.g., analyzing r1+10r_1 + 10 updates r1r_1’s interval from [2,6][2, 6] to [12,16][12, 16]). To improve precision, the verifier propagates information between domains through a process known as reduction [16, 54] (e.g., using the tnum 01x0201\mathrm{x}0_2 allows the verifier to tighten r1r_1’s interval bounds from [2,6][2, 6] to [4,6][4, 6]). Together, the intervals and tnum abstract values represent the abstract state for a register. Further, the verifier’s abstract interpretation is path-sensitive, in that the verifier analyzes each code path separately whenever it cannot statically determine that a code path will never be taken at run time. The verifier also evolves each register’s abstract state based on the branch conditions it encounters. For example, upon taking the branch

Authors’ Contact Information: Harishankar Vishwanathan, Rutgers University, USA, [email protected]; Srinivas Narayana, IIT Madras and Rutgers University, USA, [email protected]; Santosh Nagarakatte, Rutgers University, USA, [email protected]. if r1>10r_1 > 10 goto target, the verifier refines r1=[5,15]r_1 = [5, 15] to [11,15][11, 15]. Finally, the verifier accepts a program only if every explored path passes its safety checks.

The eBPF verifier is a key trusted component within the kernel which enables untrusted user code to program the kernel safely yet expressively. Hence, the verifier’s soundness [1, 3, 25, 29, 39, 48, 51, 53, 54] (i.e. its ability to reject unsafe code) and its precision [5, 22, 33, 50, 55] (i.e. its ability to accept safe code) have been a subject of extensive recent research. Meanwhile, a class of bugs which has received relatively little academic attention has remained in the kernel for years.

Domain invariant violations in the Linux eBPF verifier. The eBPF verifier requires some abstract-domain-specific conditions to hold over its abstract states, to ensure they are well-formed and operable using its abstract operators. We call these conditions domain invariants. An example is ensuring min≤max\mathit{min} \le\mathit{max} in an interval abstraction. Consider a code fragment if r1≤10r_1 \le10 goto target where prior instructions constrained r1r_1 to interval [0,15][0, 15] and tnum 111121111_2 (exact value 15). Because r1=15r_1 = 15, r1≤10r_1 \le10 is infeasible. If the branch feasibility check inspects only the interval and not the tnum (as an older version of the verifier did, prior to a targeted patch to fix it [8]), the branch taken appears feasible, and the branch refinement operator for ≤\le updates r1r_1’s interval to [0,10][0, 10]. Individually, [0,10][0, 10] and 111121111_2 look valid, but they mutually contradict each other ([0,10]∩{15}=∅[0, 10] \cap\{15\} = \varnothing, or ⊥\bot). The verifier employed a reduction operator which subsequently tightened the interval’s lower bound using the tnum’s minimum value (15), producing an inverted interval [15,10][15, 10] (i.e. min>max\mathit{min} > \mathit{max}). Instead of treating [15,10][15, 10] as ⊥\bot and pruning the exploration of the path, the verifier continued exploring it, and eventually “recovered” after detecting the invariant violation, by resetting the register’s bounds to ⊤\top, (e.g. [0,UINT64_MAX][0, \mathrm{UINT64\_MAX}] for unsigned intervals). These invariant violations have plagued the Linux kernel for over three years, triggering repeated bug reports [9, 36, 37, 38, 42, 44, 45] and targeted patches across kernels v5.19–v7.1 [4, 6, 7, 8, 10, 13, 56, 57].

Why are domain invariants violated? We observe that such violations stem from a fundamental mismatch between conditional branch refinement and the precondition assumed by reduction in the Linux kernel. Every abstract ALU, jump, and reduction operator in the verifier, as well as prior formal soundness proofs of the verifier [3, 39, 54] implicitly assume concrete membership of the input abstract value (≠⊥\ne\bot), i.e. at least one concrete value simultaneously satisfies all the abstract domains tracked for a register. This condition indeed holds on paths feasible at run time. On an infeasible branch, however, refining a register state under a runtime-impossible condition can produce an abstract state where each component abstract value remains syntactically well-formed and non-empty (e.g. min≤max\mathit{min} \le\mathit{max}), but the concretization of the product abstract domain, i.e. the intersection of the concretizations of each component abstraction, is empty.

Even if domain invariant violations do not affect programs accepted by the verifier at run time, they have other important consequences. A real production outage incident reported that the Cilium container policy-enforcement engine rejected valid networking programs upon node reboot, bringing down connectivity for an entire Kubernetes cluster [10, 12]. Exploring paths infeasible at run time can result in spurious program rejections, since resetting bounds can cause the verifier to analyze unreachable code and reject it as unsafe. Finally, failing to prune infeasible paths can result in path explosion, with redundant exploration of dead code paths exhausting the verifier’s budget of the total checked instructions [2, 8]. Our evaluations show that a single domain invariant violation can result in an unbounded number of programs experiencing spurious rejections or exhausting the verifier’s instruction budget.

Why is fixing domain reduction hard? In multi-abstract-domain analyzers such as Frama-C/Eva [18] and Astrée [17], computing the exact canonical reduced product (ρ∗\rho^{*}) [16] across kk heterogeneous domains such as intervals, congruences, bitmasks, and modular integer views is intractable, because materializing their concrete sets scales exponentially in bitwidth. Further, their geometric representations are fundamentally misaligned (convex ranges versus non-convex sets with interior “holes”). Consequently, practical analyzers approximate ρ∗\rho^{*} via Granger-style pairwise reduction [23] or communication channels that exchange coarse summary hints (e.g., outer min/max bounds) [14]. However, these approximations cannot detect when an interval falls inside an interior hole of a non-convex domain, or when kk non-convex domains intersect pairwise yet are globally disjoint. We are unaware of an efficient canonical reduction operator for the combination of abstract domains employed by the eBPF verifier.

Turning infeasibility into a branch pruning signal. The eBPF verifier employs pairwise Granger reduction [23] but lacks an explicit ⊥\perp element. We observe that empty intersections and ill-formed states are representations of ⊥\perp that provide a proof of dead code. Because the branch refinement operators are sound on states with concrete membership [39, 54], a refined register state can become ill-formed or have an empty intersection only if no concrete runtime value satisfies the branch condition. By soundly (never reporting ⊥\perp when a common value exists) and completely (detecting every ⊥\perp state) checking whether each refined branch operand is ill-formed or has an empty intersection prior to domain reduction, the analyzer (i) ensures domain reduction and downstream operators are never invoked on contradictory operand states, preventing dead-branch invariant violations, and (ii) prunes infeasible branches before exploring them, avoiding path explosion and spurious rejections.

Abstract step functions and set intersections. Our idea is to go beyond pairwise reduction, which is employed in industrial analyzers such as Astrée [17] and Frama-C [18]. Instead of designing a canonical reduction operator, which is challenging for non-convex domains such as tnums (§ 3), or enumerating elements, our key idea is to introduce a notion of abstract step functions: given an abstract value aa and a concrete point zz, step(aa, zz) returns the smallest concrete member of aa strictly greater than zz, jumping across arbitrary interior gaps in a single step. With step, testing whether interval [L,U][L,U] intersects any non-convex domain aa takes at most one membership check (L∈aL \in a) and one jump (step(aa, LL) ≤U\le U); e.g., for [5,11][5, 11] and {4,12}\{4, 12\}, 5∉{4,12}5 \notin\{4, 12\} and step({4,12}\{4, 12\}, 55) =12>11= 12 > 11, immediately proving ⊥\perp. We establish sufficient conditions for O(1)O(1) kk-domain intersection. We develop an O(1)O(1) step operator for the tnum domain, tnum_step(), which is formally verified with Lean and the Z3 SMT solver and upstreamed into the mainline Linux kernel. We design a sound and complete multi-domain O(1)O(1) emptiness (⊥\perp) check across all five eBPF verifier domains using tnum_step(). Using this algorithm, we enable dead-path pruning before path exploration in the verifier. It incurs negligible performance overhead (1.48% on average) and eliminates the invariant violations that have plagued Linux for years.

Contributions. (1) We characterize the abstract states of the eBPF verifier into four classes: well-formed (WFWF), ill-formed (IFIF), concrete-membership (CMCM), and empty-intersection (EIEI). We show how infeasible branches produce empty-intersection (⊥\perp) states that violate the implicit non-emptiness precondition of domain reduction and downstream operators, causing domain invariant violations. We show that reaching EIEI or IFIF states after branch refinement is a sound guarantee of runtime branch infeasibility (§ 3). (2) We propose to go beyond pairwise domain reduction and formulate abstract step functions. We design tnum_step(), a formally verified O(1)O(1) bitwise step operator for the tristate domain. The algorithm has been upstreamed into the mainline Linux kernel (§ 4). (3) We develop a general algorithm using step functions for deciding joint concrete membership across kk abstract domains (§ 5). We design a sound and complete O(1)O(1) emptiness (⊥\perp) check across all five abstract domains in the eBPF verifier (§ 6). (4) We integrate our ⊥\perp check into the Linux eBPF verifier to prune dead paths before path exploration (§ 6) and evaluate it across historical bugs, microbenchmarks, Linux kernel selftests, and Cilium (§ 7).

Background on the eBPF Verifier’s Abstract Domains

We provide background on the eBPF verifier’s abstract domains and the domain reduction operator.

Concrete semantics. Let Ww≜{0,1,…,2w−1}\mathbb{W}_w \triangleq\{0,1,\ldots,2^w-1\} be the set of ww-bit unsigned integers, and Sw≜{−2w−1,…,2w−1−1}\mathbb{S}_w \triangleq\{-2^{w-1},\ldots,2^{w-1}-1\} the set of ww-bit two’s-complement signed integers. The primary concrete universe of register values in eBPF is the set of 64-bit machine words, W64\mathbb{W}_{64}. For any 64-bit machine word x∈W64x \in\mathbb{W}_{64}, we denote the signed interpretation as s64⁡(x)∈S64\operatorname{s64}(x) \in\mathbb{S}_{64}, the lower 32-bit sub-register word as x[31:0]≜(x&0xffffffff)∈W32x_{[31:0]} \triangleq(x \mathbin{\&} 0xffffffff) \in\mathbb{W}_{32}, and the signed interpretation of the lower 32-bit sub-register word as s32⁡(x[31:0])∈S32\operatorname{s32}(x_{[31:0]}) \in\mathbb{S}_{32}. An eBPF program executes on a register-based virtual machine with 11 64-bit registers V≜{r0,…,r10}\mathcal{V} \triangleq\{r_0,\ldots,r_{10}\}.

Instructions. We focus on arithmetic and logic (ALU) and conditional jump instructions. ALU instructions are of the form rd=op⁡(rd,rs)r_d=\operatorname{op}(r_d,r_s) or rd=op⁡(rd,imm)r_d=\operatorname{op}(r_d,\mathit{imm}), where rd,rs∈Vr_d,r_s \in\mathcal{V} are the destination and source registers, imm\mathit{imm} is a constant immediate operand encoded in the instruction, and op⁡∈{+,−,&,∣,^,≪,≫,…}\operatorname{op} \in\{+,-,\mathbin{\&},|,\mathbin{\char94},\ll,\gg,\ldots\}. Conditional jump instructions are of the form if (rdop⁡rs)(r_d \mathbin{\operatorname{op}} r_s) goto target or if (rdop⁡imm)(r_d \mathbin{\operatorname{op}} \mathit{imm}) goto target, where op⁡∈{==,≠,<,≤,>,≥,&,…}\operatorname{op} \in\{==,\ne,<,\leq,>,\geq,\mathbin{\&},\ldots\} (including both unsigned and signed comparisons). Conditional jumps compare full 64-bit values over W64\mathbb{W}_{64} (or the lower 32-bit sub-register values for 32-bit jump variants). If the comparison holds at runtime, execution jumps to target; otherwise, it falls through to the next sequential instruction.

eBPF abstract domains and register states. The eBPF verifier uses abstract interpretation [15, 53, 54] to over-approximate the runtime values of each register using values from an abstract domain. Formally, an abstract domain A≜(A,⊑A,γA)\mathbb{A} \triangleq(A,\sqsubseteq_A,\gamma_A) consists of a set of abstract values AA, a concretization function γA:A→2Ww\gamma_A:A \to2^{\mathbb{W}_w} mapping each abstract value to the set of ww-bit words it represents (w∈{64,32}w \in\{64,32\}), and a partial order a1⊑Aa2⟺γA(a1)⊆γA(a2)a_1 \sqsubseteq_A a_2 \Longleftrightarrow\gamma_A(a_1) \subseteq\gamma_A(a_2), with top element ⊤A\top_A (γA(⊤A)=Ww\gamma_A(\top_A)=\mathbb{W}_w) and bottom element ⊥A\bot_A (γA(⊥A)=∅\gamma_A(\bot_A)=\varnothing).

Multi-domain value tracking. The verifier tracks each register r∈Vr \in\mathcal{V} using five abstract domains [54] as 2-tuples of words (denoted [⋅,⋅][\cdot,\cdot] for intervals, (⋅,⋅)(\cdot,\cdot) for tnums).

  • 64-bit interval domains (Au64,As64)(A_{u64},A_{s64}). The unsigned domain Au64A_{u64} is a pair [u64min⁡,u64max⁡]∈W64×W64[u64_{\min},u64_{\max}] \in\mathbb{W}_{64} \times\mathbb{W}_{64} with u64min⁡≤u64max⁡u64_{\min} \leq u64_{\max} and the concretization function: γu64([u64min⁡,u64max⁡])≜{x∈W64∣u64min⁡≤x≤u64max⁡}\gamma_{u64}([u64_{\min},u64_{\max}]) \triangleq\{x \in\mathbb{W}_{64} \mid u64_{\min} \leq x \leq u64_{\max}\}. The signed 64-bit interval domain As64A_{s64} is a pair [s64min⁡,s64max⁡]∈S64×S64[s64_{\min},s64_{\max}] \in\mathbb{S}_{64} \times\mathbb{S}_{64} with s64min⁡≤s64max⁡s64_{\min} \leq s64_{\max} and the concretization function: γs64([s64min⁡,s64max⁡])≜{x∈W64∣s64min⁡≤s64(x)≤s64max⁡}\gamma_{s64}([s64_{\min},s64_{\max}]) \triangleq\{x \in\mathbb{W}_{64} \mid s64_{\min} \leq s64(x) \leq s64_{\max}\}.

  • 32-bit sub-register interval domains (Au32,As32)(A_{u32},A_{s32}). These domains track the unsigned and signed bounds of the lower 32 bits x[31:0]x_{[31:0]} of a register. An abstract value in Au32A_{u32} is a pair [u32min⁡,u32max⁡]∈W32×W32[u32_{\min},u32_{\max}] \in\mathbb{W}_{32} \times\mathbb{W}_{32} with u32min⁡≤u32max⁡u32_{\min} \leq u32_{\max} and concretization function: γu32([u32min⁡,u32max⁡])≜{x∈W64∣u32min⁡≤x[31:0]≤u32max⁡}\gamma_{u32}([u32_{\min},u32_{\max}]) \triangleq\{x \in\mathbb{W}_{64} \mid u32_{\min} \leq x_{[31:0]} \leq u32_{\max}\}. Similarly, an abstract value in As32A_{s32} is a pair [s32min⁡,s32max⁡]∈S32×S32[s32_{\min},s32_{\max}] \in\mathbb{S}_{32} \times\mathbb{S}_{32} with s32min⁡≤s32max⁡s32_{\min} \leq s32_{\max} and concretization function: γs32([s32min⁡,s32max⁡])≜{x∈W64∣s32min⁡≤s32(x[31:0])≤s32max⁡}\gamma_{s32}([s32_{\min},s32_{\max}]) \triangleq\{x \in\mathbb{W}_{64} \mid s32_{\min} \leq s32(x_{[31:0]}) \leq s32_{\max}\}.

  • Tristate domain (Atnum)(A_{\mathit{tnum}}). Tracks known (0/1) and unknown bits across all 64 bit positions of a register. An abstract value is a pair (v,m)∈W64×W64(v,m) \in\mathbb{W}_{64} \times\mathbb{W}_{64}, with v&m=0v \mathbin{\&} m=0, where vv (value) denotes known bits, mm (mask) denotes unknown bits, and ‘&’ denotes bitwise logical ‘and’. The concretization is γtnum((v,m))≜{x∈W64∣(x&∼m)=v}\gamma_{\mathit{tnum}}((v,m)) \triangleq\{x \in\mathbb{W}_{64} \mid(x \mathbin{\&} \sim m)=v\}.

An abstract operator g:A×A→Ag:A \times A \to A abstracts a concrete operator f:W×W→Wf:\mathbb{W} \times\mathbb{W} \to\mathbb{W}, permitting efficient program analysis directly over abstract values a1,a2∈Aa_1,a_2 \in A. The abstract operator is sound if f(γ(a1),γ(a2))⊆γ(g(a1,a2))f(\gamma(a_1),\gamma(a_2)) \subseteq\gamma(g(a_1,a_2)) [32].

Domain invariants. We term the conditions under which an abstract value in a domain is well-defined (e.g. s32min⁡≤s32max⁡s32_{\min} \leq s32_{\max} for As32A_{s32} and v&m=0v \mathbin{\&} m=0 for AtnumA_{\mathit{tnum}}) domain invariants. Each domain $A in the verifier’s kernel implementation (struct bpf_reg_state) lacks an explicit ⊥A\bot_{\mathsf{A}} representation. Every well-defined abstract value represents a non-empty set, i.e. γA(aA)≠∅\gamma_{\mathsf{A}}(a_{\mathsf{A}}) \ne\varnothing.

Product domain and domain reduction. The verifier combines these five domains into the product domain P≜Au64×As64×Au32×As32×Atnum\mathbb{P} \triangleq\mathsf{A}_{u64} \times\mathsf{A}_{s64} \times\mathsf{A}_{u32} \times\mathsf{A}_{s32} \times\mathsf{A}_{tnum}. An abstract state R≜(au64,as64,au32,as32,atnum)∈PR \triangleq(a_{u64}, a_{s64}, a_{u32}, a_{s32}, a_{tnum}) \in\mathbb{P} has a component-wise partial order ⊑P\sqsubseteq_{\mathbb{P}}. The concretization of RR is the set of 64-bit words that simultaneously satisfy all five component domains: γP(R)≜γu64(au64)∩γs64(as64)∩γu32(au32)∩γs32(as32)∩γtnum(atnum)\gamma_{\mathbb{P}}(R) \triangleq\gamma_{u64}(a_{u64}) \cap\gamma_{s64}(a_{s64}) \cap\gamma_{u32}(a_{u32}) \cap\gamma_{s32}(a_{s32}) \cap\gamma_{tnum}(a_{tnum}). Domain reduction [14, 16] applies an operator ρ:P→P\rho: \mathbb{P} \to\mathbb{P} that refines the individual components of RR (i.e., ρ(R)i⊑iRi\rho(R)_i \sqsubseteq_i R_i for some component ii) without changing the underlying concrete set (γP(ρ(R))=γP(R)\gamma_{\mathbb{P}}(\rho(R)) = \gamma_{\mathbb{P}}(R)).

Ideally, reduction computes the canonical reduced product [16] \rho^{*}(R) \triangleq\bigsqcap_{\mathbb{P}}\{R' \in\mathbb{P} \mid\gamma_{\mathbb{P}}(R) \subseteq\gamma_{\mathbb{P}}(R')\}, which is the most precise abstract state in P\mathbb{P} representing γP(R)\gamma_{\mathbb{P}}(R). Since computing ρ∗\rho^{*} directly is typically expensive [14], the verifier follows Granger’s approach [23, 54], composing pairwise reduction operators ρi→j\rho_{i \to j} between domains. For instance, ρtnum→u64\rho_{tnum \to u64} clamps the unsigned interval to [min⁡(atnum),max⁡(atnum)][\min(a_{tnum}), \max(a_{tnum})] and ρu64→tnum\rho_{u64 \to tnum} updates the tnum with the common high-order bit prefix of u64min⁡u64_{\min} and u64max⁡u64_{\max}. Because these pairwise operators exchange only outer bounds and prefixes, reduction is incomplete: it can fail to reach ρ∗(R)\rho^{*}(R) or detect when γP(R)=∅\gamma_{\mathbb{P}}(R) = \varnothing. For example, consider the two-domain state R=(au64,atnum)=([10,14],1x0x2)R = (a_{u64}, a_{tnum}) = ([10, 14], 1x0x2). Here, [10,14][10, 14] admits {10,…,14}\{10, \ldots, 14\} and 1x0x21x0x2 admits {8,9,12,13}\{8, 9, 12, 13\}, so their intersection is γP(R)={12,13}\gamma_{\mathbb{P}}(R) = \{12, 13\} and the canonical reduced product is ρ∗(R)=([12,13],110x2)\rho^{*}(R) = ([12, 13], 110x2). Under pairwise reduction, however, ρtnum→u64\rho_{tnum \to u64} clamps [10,14][10, 14] to the tnum’s outer span [8,13][8, 13] to obtain [10,13][10, 13], and ρu64→tnum\rho_{u64 \to tnum} observes that 10=1010210 = 1010_2 and 13=1101213 = 1101_2 share only the most significant bit (1xxx21xxx_2), leaving 1x0x21x0x2 unchanged. Reduction thus stops at ([10,13],1x0x2)([10, 13], 1x0x2), which is strictly less precise than ρ∗(R)=([12,13],110x2)\rho^{*}(R) = ([12, 13], 110x2).

Abstract operators and reductions in the Linux eBPF verifier. The Linux kernel (as of version 7.1-rc1) implements abstractions and reductions in a few key functions. On an ALU instruction rd←op⁡(rd,rs)r_d \leftarrow\operatorname{op}(r_d, r_s), the verifier applies the abstract operator for op (adjust_reg_min_max_vals()) to over-approximate op in rdr_d’s abstract state RdR_d, followed by reduction (reg_bounds_sync()). On a conditional jump if (r1op⁡r2)(r_1 \operatorname{op} r_2) goto target with condition CC, the verifier performs two steps: (1) it checks whether CC is statically always true, always false, or unknown, (is_branch_taken()), exploring only the taken (true) or fall-through (false) path when CC is known, and both paths when CC is unknown; (2) along each explored path, it refines the operand register states (R1,R2)(R_1, R_2) to (R1t,R2t)(R_{1t}, R_{2t}) under CC or (R1f,R2f)(R_{1f}, R_{2f}) under ¬C\neg C, (regs_refine_cond_op()), followed by reduction.

Domain Invariant Violations and the Dead Branch Principle

The abstract operators in Linux eBPF have been checked in prior formal verification efforts [3, 29, 41, 54] as well as through systematic fuzzing to detect mismatches between concrete executions and abstractions [25, 48, 49, 51]. Despite extensive scrutiny, the eBPF verifier still suffers from violations of domain invariants, e.g. producing abstract values with u64min⁡>u64max⁡u64_{\min} > u64_{\max} in Au64\mathsf{A}_{u64} (§2).

Why did prior soundness verification miss domain invariant violations? We consider Agni [54], a formal verification framework which proved that BPF’s ALU and jump operators are sound (verified up to Linux v7.1-rc1). Agni formalized conditional jump soundness as shown in Equation (1), where refine(R1,R2,C)(R_1, R_2, C) (short for regs_refine_cond_op() in the kernel (§2)) refines the input abstract states R1R_1 and R2R_2 under condition CC (or ¬C\neg C) to produce (R1t,R2t)(R_{1t}, R_{2t}) (or (R1f,R2f)(R_{1f}, R_{2f})).

∀R1,R2∈P, x1∈γP(R1), x2∈γP(R2): (R1t,R2t)=refine⁡(R1,R2,C)∧(R1f,R2f)=refine⁡(R1,R2,¬C)⇒((C(x1,x2)⇒x1∈γP(R1t)∧x2∈γP(R2t))∧(¬C(x1,x2)⇒x1∈γP(R1f)∧x2∈γP(R2f)))(1)\forall R_1, R_2 \in\mathbb{P},\ x_1 \in\gamma_{\mathbb{P}}(R_1),\ x_2 \in\gamma_{\mathbb{P}}(R_2) :\ (R_{1t}, R_{2t}) = \operatorname{refine}(R_1, R_2, C) \land(R_{1f}, R_{2f}) = \operatorname{refine}(R_1, R_2, \neg C) \Rightarrow((C(x_1,x_2) \Rightarrow x_1 \in\gamma_{\mathbb{P}}(R_{1t}) \land x_2 \in\gamma_{\mathbb{P}}(R_{2t})) \land(\neg C(x_1,x_2) \Rightarrow x_1 \in\gamma_{\mathbb{P}}(R_{1f}) \land x_2 \in\gamma_{\mathbb{P}}(R_{2f}))) \tag*{(1)}

Equation (1) guarantees that live branches preserve all runtime values, but does not enforce domain invariants on runtime-infeasible paths. Consider the case where C(x1,x2)C(x_1, x_2) is false for all x1∈γP(R1),x2∈γP(R2)x_1 \in\gamma_{\mathrm{P}}(R_1), x_2 \in\gamma_{\mathrm{P}}(R_2) (i.e., the true path is dead). When the verifier fails to statically determine that C(x1,x2)C(x_1, x_2) is always false, it explores the true path and invokes refine(R1,R2,CR_1, R_2, C). Because the premise C(x1,x2)C(x_1, x_2) is false for all concrete pairs, C(x1,x2)⟹x1∈γP(R1t)∧x2∈γP(R2t)C(x_1, x_2) \Longrightarrow x_1 \in\gamma_{\mathrm{P}}(R_{1t}) \land x_2 \in\gamma_{\mathrm{P}}(R_{2t}) holds vacuously: the operator remains sound under Equation (1). Moreover, no well-formedness constraints are placed on R1t,R2tR_{1t}, R_{2t}. The problem is not unique to Agni. A straightforward logical encoding of abstract operator soundness (§ 2) typically includes the premise of concrete membership in the input abstract value [3, 41, 52, 53]. Fuzzers relying primarily on run-time checks [25, 48, 49, 51] (even if specification-guided [29]) will also miss domain invariant violations.

In the eBPF verifier, refining an abstract value under an impossible condition CC may produce a “contradictory” register state RR with γP(R)=∅\gamma_{\mathrm{P}}(R) = \varnothing. Because the verifier lacks an explicit ⊥\bot element, domain reduction and downstream operators assume concrete membership (γP(R)≠∅\gamma_{\mathrm{P}}(R) \ne\varnothing) as a precondition. When invoked on a contradictory state, these operators can compute ill-formed abstract values (e.g., u64min⁡>u64max⁡u64_{\min} > u64_{\max}), triggering domain invariant violations. Adding an explicit ⊥\bot element is easy, but deciding when an abstract operator should emit ⊥\bot is not as straightforward.

Characterizing the verifier’s abstract state space. We define the syntactic universe of all 10-tuples of machine words in struct bpf_reg_state as U≜W642×S642×W322×S322×W264\mathbb{U} \triangleq\mathbb{W}_{64}^{2} \times\mathbb{S}_{64}^{2} \times\mathbb{W}_{32}^{2} \times\mathbb{S}_{32}^{2} \times\mathbb{W}_{264}. Not every representable tuple R∈UR \in\mathbb{U} corresponds to a well-formed abstract state. Further, the eBPF verifier does not define a ⊥\bot element to represent the empty set. To clearly identify the states that arise with infeasible paths, we partition U\mathbb{U} into three classes (Figure 1).

Abstract state partition and transition dynamics

Figure 1. Abstract State Partition and Transition Dynamics. Partition of U\mathbb{U} into CMCM, EIEI, IFIF. Arrows show transitions grouped by operator category (solid: runtime-feasible paths, dashed: runtime-infeasible, SMT-verified).

(1) Well-formed states (WFWF). An abstract register state R∈UR \in\mathbb{U} is well-formed (R∈WFR \in WF) if and only if each component domain d∈D≜{u64,s64,u32,s32,tnum}d \in\mathcal{D} \triangleq\{\mathrm{u64}, \mathrm{s64}, \mathrm{u32}, \mathrm{s32}, \mathrm{tnum}\} satisfies its domain-specific invariant (e.g. v&m=0v \mathbin{\&} m = 0 for Atnum\mathcal{A}_{\mathrm{tnum}}, see § 2), and thus independently represents a non-empty set of concrete words: R∈WF⟺⋀A∈DγA(aA)≠∅R \in WF \Longleftrightarrow\bigwedge_{A \in\mathcal{D}} \gamma_A(a_A) \ne\varnothing.

The WFWF set is further partitioned into two mutually disjoint, exhaustive subsets:

(1)(a) Concrete-membership states (CMCM). A well-formed register state R∈WFR \in WF is a concrete-membership state (R∈CMR \in CM) if and only if at least one concrete 64-bit word x∈W64x \in\mathbb{W}_{64} simultaneously belongs to all five component domains: R∈CM⟺R∈WF∧γP(R)≠∅R \in CM \Longleftrightarrow R \in WF \land\gamma_{\mathrm{P}}(R) \ne\varnothing.

(1)(b) Empty-intersection states (EIEI). A well-formed register state R∈WFR \in WF is an empty-intersection state (R∈EIR \in EI) if each component domain is individually well-formed, but conveys contradictory information as the mutual intersection is empty: R∈EI⟺R∈WF∧γP(R)=∅R \in EI \Longleftrightarrow R \in WF \land\gamma_{\mathrm{P}}(R) = \varnothing. Whereas canonical reduction ρ∗\rho^* would reduce EIEI states to ⊥\bot, the eBPF verifier’s pairwise domain reduction (reg_bounds_sync()) only exchanges outer bounding boxes and shared bit prefixes, leaving EIEI states unreduced (§ 2 shows an example).

(2) Ill-formed states (IFIF). A register state R∈UR \in\mathbb{U} is ill-formed (R∈IFR \in IF) if at least one component domain violates its domain invariant: R∈IF⟺⋁A∈DγA(aA)=∅R \in IF \Longleftrightarrow\bigvee_{A \in\mathcal{D}} \gamma_A(a_A) = \varnothing. For any R∈IFR \in IF, the component domain AA violating its well-formedness invariant represents a component-level bottom element ⊥A\bot_A. However, because the eBPF verifier’s domains lack a valid representation of ⊥A\bot_A,

when the well-formedness checker (reg_bounds_sanity_check()) detects R∈IFR \in IF, it emits a domain invariant violation diagnostic message and resets each component domain to ⊤A\top_A.

Together, EI∪IFEI \cup IF comprises all states in U\mathbb{U} whose joint concretization is empty (i.e., γP(R)=∅\gamma_P(R) = \varnothing). Further, the sets CMCM, EIEI, and IFIF form an exact, mutually disjoint partition of the entire universe: U=CM⊎EI⊎IF\mathbb{U} = CM \uplus EI \uplus IF. Every register state tuple R∈UR \in\mathbb{U} belongs to exactly one of CMCM, EIEI, or IFIF.

State transitions. Figure 1 illustrates how abstract operators evolve register states across CMCM, EIEI, and IFIF (solid: runtime-feasible paths; dashed: runtime-infeasible), revealing five key behaviors that we have formally checked through an SMT encoding of the kernel’s abstract operators (7.1-rc1).

  1. Operator soundness (e.g. as defined by Agni [54]) holds on live paths (CM→CMCM \to CM). Feasible jumps map CMCM inputs to valid CMCM outputs (Equation (1)); ALU ops and domain reduction (reg_bounds_sync()) likewise preserve CMCM.

  1. Only infeasible branches escape CM (CM→EICM \to EI, CM→IFCM \to IF). Along infeasible paths, jumps can produce contradictory well-formed states (EIEI) or invariant-violating abstractions (IFIF).

  1. Hidden contradictions can propagate (EI→EIEI \to EI). Domain reduction (reg_bounds_sync()) leaves intervals in tnum gaps unreduced (e.g., ([5,11],x1002)([5, 11], x1002)), and jump or ALU ops (e.g., add) can propagate EIEI states.

  1. Contradictory states can trigger domain invariant violations (EI→IFEI \to IF). Jumps (e.g., jeq/jne), ALU ops (e.g., or, and, lsh, arsh), and domain reduction (reg_bounds_sync()) can all transition EIEI inputs into IFIF.

  1. Spurious recovery (EI→CMEI \to CM). Jumps (e.g., jset resetting ranges [6]), ALU ops (e.g., rsh, and, add), and domain reduction (reg_bounds_sync()) can transition EIEI back to CMCM.

Transitions into IFIF via (2) and (4) trigger domain invariant violation diagnostics, whereas silent propagation (3) and spurious recovery (5) let dead branches persist, which cause delayed violations, state explosion, or false rejections on downstream dead code (§ 1).

In classical abstract interpretation [15, 16, 32], a conditional branch guarded by condition CC is modeled by an abstract guard transfer function gC♯:A→Ag_C^{\sharp} : \mathbb{A} \to\mathbb{A}. A sound guard operator must over-approximate all concrete values satisfying the condition: {x∈γ(a)∣C(x)}⊆γ(gC♯(a))\{x \in\gamma(a) \mid C(x)\} \subseteq\gamma(g_C^{\sharp}(a)).

Whenever gC♯(a)=⊥g_C^{\sharp}(a) = \bot, soundness implies that no concrete runtime value can satisfy the condition ({x∈γ(a)∣C(x)}=∅\{x \in\gamma(a) \mid C(x)\} = \varnothing), certifying that the branch is unreachable and can be soundly pruned. In a multi-domain product analyzer (such as Astrée [17] or Frama-C [18]), each domain refines abstract bounds and invokes domain reduction ρ\rho, pruning the path if the joint state reduces to ⊥\bot. In the eBPF verifier, the refinement operator for jumps acts as the guard. eBPF currently lacks the ⊥\bot element, and more importantly, lacks a canonical reduction operator to conclude that an abstract state after a conditional branch should be ⊥\bot. To the best of our knowledge, we are unaware of efficient canonical reduction operators for the combination of eBPF’s abstract domains (§ 2).

Dead branch principle. Taking an alternative approach, the Dead Branch Principle, formalized below, states that reaching EI∪IFEI \cup IF in the eBPF verifier after branch refinement is the exact operational equivalent of reducing to ⊥\bot. Since only branches escape CMCM, detecting abstract states a∈EI∪IFa \in EI \cup IF and pruning branches that reach such states prevents domain invariant violations.

Theorem 3.1 (Dead Branch Principle). Let PP be an eBPF program, and let e=(u,v)e = (u,v) be a conditional jump edge at uu with condition CC. Let Ru∈CMR_u \in CM be the abstract state of an operand register prior to the branch. If the branch refinement operator along edge ee produces an abstract state Rv∈(EI∪IF)R_v \in(EI \cup IF), then edge ee is dead: no concrete execution of PP reaching uu can take edge ee at runtime.

Proof. We proceed by contradiction, assuming edge ee is live. Then there exists a concrete value x∈γP(Ru)x \in\gamma_P(R_u) satisfying C(x)=trueC(x) = true. By operator soundness on live paths (Equation (1)), any value y∈γP(Ru)y \in\gamma_{\mathcal{P}}(R_u) satisfying C(y)C(y) must belong to the output state: {y∈γP(Ru)∣C(y)}⊆γP(Rv)\{y \in\gamma_{\mathcal{P}}(R_u) \mid C(y)\} \subseteq\gamma_{\mathcal{P}}(R_v). Since xx satisfies both conditions, x∈γP(Rv)x \in\gamma_{\mathcal{P}}(R_v), which implies γP(Rv)≠∅\gamma_{\mathcal{P}}(R_v) \ne\emptyset. By hypothesis, however, Rv∈(EI∪IF)R_v \in(EI \cup IF), meaning γP(Rv)=∅\gamma_{\mathcal{P}}(R_v) = \emptyset by definition, a contradiction. Hence, edge ee must be dead. □

Abstract Step Functions

Theorem 3.1 and § 3 show that detecting R∈EI∪IFR \in EI \cup IF suffices to prevent domain invariant violations. While checking R∈IFR \in IF is easy, deciding R∈EIR \in EI requires testing whether the domains share any concrete member (γP(R)≠∅\gamma_{\mathcal{P}}(R) \ne\emptyset). We now motivate why convex intersection techniques fail over bitwise domains (§ 4.1), and introduce abstract step functions which enable efficient procedures to detect empty concrete intersections of abstract values (§ 4.2).

Need for Step Functions in Detecting Empty Set Intersections

We are interested in efficient decision procedures to detect the emptiness of the intersection of concretizations of several abstract values. We regard such a procedure sound if the concrete intersection is indeed empty whenever the procedure returns empty, and complete if the procedure returns empty whenever the concrete intersection is empty.

The interval abstraction admits a sound, complete, and efficient procedure to check intersection emptiness:

⋂i=1n[Li,Ui]≠∅⟺max⁡(L1,…,Ln)≤min⁡(U1,…,Un).\bigcap_{i=1}^{n}[L_i,U_i] \ne\emptyset\Longleftrightarrow\max(L_1,\ldots,L_n) \le\min(U_1,\ldots,U_n).

The convexity of intervals in one-dimension, i.e. the absence of internal “holes” in the concretization, permits the construction of such a procedure by relying on just the interval boundaries. However, in the eBPF verifier, P\mathcal{P} is non-convex. A tristate number with kk unknown bits (k<k < bitwidth) may represent up to 2k2^k non-contiguous integers (e.g. γ(0x0x12)={1,3,9,11}\gamma(0\mathrm{x}0\mathrm{x}12) = \{1, 3, 9, 11\}). Approximating t=(v,m)∈Atnumt = (v,m) \in A_{tnum} by its bounding box [tmin⁡,tmax⁡]=[v,v∣m][t_{\min},t_{\max}] = [v,v \mathbin{|} m], and running the interval emptiness check above is sound but incomplete. For example, interval [7,9]={7,8,9}[7,9] = \{7,8,9\} and tnum (4,9)=x10x2={4,5,12,13}(4,9) = \mathrm{x}10\mathrm{x}2 = \{4,5,12,13\} have overlapping bounding boxes [7,9][7,9] and [4,13][4,13], yet their intersection is empty because [7,9][7,9] falls inside the internal gap (5,12)(5,12) of tt. To detect empty intersections soundly and completely without enumerating the concrete elements in C\mathcal{C}, we introduce an operator that jumps over an internal hole in the concretization. We show later how to build on this operator to construct efficient procedures to check the emptiness of intersections.

Definition 4.1 (Abstract Step Function). Let A\mathcal{A} be an abstract domain over a totally ordered set (C,≤)(\mathcal{C}, \le) with concretization γA:A→2C\gamma_{\mathcal{A}} : \mathcal{A} \to2^{\mathcal{C}}. The abstract step function step⁡A:A×C→C∪{∞}\operatorname{step}_{\mathcal{A}} : \mathcal{A} \times\mathcal{C} \to\mathcal{C} \cup\{\infty\} returns the smallest member of γA(a)\gamma_{\mathcal{A}}(a) strictly greater than xx:

step⁡A(a,x)≜min⁡{y∈γA(a)∣y>x}(with min⁡∅≜∞).\operatorname{step}_{\mathcal{A}}(a,x) \triangleq\min\{y \in\gamma_{\mathcal{A}}(a) \mid y > x\} \quad(\text{with } \min\emptyset\triangleq\infty).

A corollary is that if w∈γA(a)w \in\gamma_{\mathcal{A}}(a) and x>wx > w, then x<step⁡A(a,x)≤wx < \operatorname{step}_{\mathcal{A}}(a,x) \le w. For contiguous intervals [L,U][L,U], the step function is simple: step⁡([L,U],x)=max⁡(L,x+1)\operatorname{step}([L,U],x) = \max(L,x+1) if x<Ux < U and otherwise ∞\infty. Importantly, even for non-convex domains A\mathcal{A}, an abstract step function allows testing whether an interval [L,U][L,U] intersects a∈Aa \in\mathcal{A} using at most one membership test and at most one step⁡A\operatorname{step}_{\mathcal{A}} evaluation, as we explain next.

Theorem 4.2 (One-Step Interval Intersection). Let A\mathcal{A} be an abstract domain over a totally ordered set (C,≤)(\mathcal{C}, \le) with concretization γA\gamma_{\mathcal{A}}. For any a∈Aa \in\mathcal{A} and contiguous interval [L,U][L,U] over C\mathcal{C}:

[L,U]∩γA(a)≠∅⟺L∈γA(a)∨step⁡A(a,L)≤U.[L,U] \cap\gamma_{\mathcal{A}}(a) \ne\emptyset\Longleftrightarrow L \in\gamma_{\mathcal{A}}(a) \lor\operatorname{step}_{\mathcal{A}}(a,L) \le U.

Proof. (⟹)(\Longrightarrow) If [L,U]∩γA(a)≠∅[L,U] \cap\gamma_{\mathcal{A}}(a) \ne\emptyset, there exists x∈γA(a)x \in\gamma_{\mathcal{A}}(a) with L≤x≤UL \le x \le U. If x=Lx = L, then L∈γA(a)L \in\gamma_{\mathcal{A}}(a). If x>Lx > L, then by the corollary of Definition 4.1, L<step⁡A(a,L)≤x≤UL < \operatorname{step}_{\mathcal{A}}(a,L) \le x \le U, so step⁡A(a,L)≤U\operatorname{step}_{\mathcal{A}}(a,L) \le U. (⟸)(\Longleftarrow) If L∈γA(a)L \in\gamma_{\mathcal{A}}(a), then L∈[L,U]∩γA(a)≠∅L \in[L,U] \cap\gamma_{\mathcal{A}}(a) \ne\emptyset. Otherwise, if x≜step⁡A(a,L)≤Ux \triangleq\operatorname{step}_{\mathcal{A}}(a,L) \le U, then by Definition 4.1, x∈γA(a)x \in\gamma_{\mathcal{A}}(a) and L<x≤UL < x \le U, so x∈[L,U]∩γA(a)≠∅x \in[L,U] \cap\gamma_{\mathcal{A}}(a) \ne\emptyset. □

A Step Function for the Tnum Domain

We now instantiate the abstract step operator for the tristate domain Atnum\mathcal{A}_{\mathrm{tnum}}, named tnum_step. A tristate number t=(v,m)∈W64×W64t = (v,m) \in\mathbb{W}_{64} \times\mathbb{W}_{64} (v&m=0v \mathbin{\&} m = 0) has concretization γtnum(t)={x∈W64∣(x&∼m)=v}\gamma_{\mathrm{tnum}}(t) = \{x \in\mathbb{W}_{64} \mid(x \mathbin{\&} \mathord{\sim}m) = v\}, with minimum member tmin⁡≜vt_{\min} \triangleq v and maximum member tmax⁡≜v∣mt_{\max} \triangleq v \mathbin{|} m. For an arbitrary machine word z∈W64z \in\mathbb{W}_{64}, the tristate step operator computes tnum_step⁡(t,z)≜min⁡{w∈γtnum(t)∣w>z}\operatorname{tnum\_step}(t,z) \triangleq\min\{w \in\gamma_{\mathrm{tnum}}(t) \mid w > z\}. We make tnum_step() a total function over W64\mathbb{W}_{64} by adding two simplifying boundary conditions: (1) If z≥tmax⁡z \ge t_{\max}, no strictly greater element exists in γtnum(t)\gamma_{\mathrm{tnum}}(t), and the procedure returns tmax⁡t_{\max}. (2) If z<tmin⁡z < t_{\min}, the procedure returns tmin⁡=vt_{\min} = v. The core problem is then finding the successor of zz when zz lies within tt’s bounding box (tmin⁡≤z<tmax⁡t_{\min} \le z < t_{\max}). Because γtnum(t)\gamma_{\mathrm{tnum}}(t) is a sparse, non-contiguous set of up to 2642^{64} integers separated by irregular gaps, finding the next valid member larger than zz may appear to require enumerating bit-patterns or concrete values. However, as we show next, we can compute tnum_step(t,zt,z) in O(1)O(1) time using loop-free bitwise operations.

Intuition. If all the bits of the tnum tt were unknown (x) and free to vary, tnum_step(t,zt,z) is simple: increment zz and return z+1z + 1. Hence, the main challenge is the presence of the fixed bits in tt. We start by overwriting the specific bits of zz corresponding to the fixed bits of tt. We call the result the projection of zz onto tt, since it is a member of tt. The projection may not be minimally larger than zz, or even larger than zz, as the step function mandates. Hence we “fix” the projection. At a high level, if the projection is larger than zz, we identify the most-significant bit position that makes zz smaller than vv, and clear out all the free bits in lesser-significant positions. This makes the result minimally larger than zz. If the projection is smaller than zz, we identify the most-significant bit position that makes zz larger than vv. We then “increment” the corresponding high-order prefix while leaving the fixed bits unchanged. We now discuss the details.

Step 1: Greedy projection (candidate jj). The natural starting point is a greedy approximation: copy zz’s bits directly into every free bit of tt while keeping all known bits fixed to vv, producing the initial candidate jj. By construction, j∈γtnum(t)j \in\gamma_{\mathrm{tnum}}(t). Because jj and zz are identical on every unknown bit position, they can only differ at known bit positions where vi≠ziv_i \ne z_i.

Step 2: Identifying the pivot bit bb. Suppose j≠zj \ne z, and let b∈{0,…,62}b \in\{0,\ldots,62\} denote the 0-indexed most significant bit where jj and zz disagree. The weight of bit bb (2b2^b) strictly exceeds the combined sum of all lower bits (∑i=0b−12i=2b−1\sum_{i=0}^{b-1} 2^i = 2^b - 1). Above bit bb, jj and zz are bit-for-bit identical (j[63:b+1]=z[63:b+1]j_{[63:b+1]} = z_{[63:b+1]}). Therefore, the numerical ordering between jj and zz, which determines how jj must be adjusted to form the minimal successor of zz, is governed entirely by pivot bit bb. Depending on whether j>zj > z or j≤zj \le z, two cases arise:

Step 3, Case 1 (j>zj > z: 0-to-1 flip at pivot bb). Here jj already exceeds zz because at the highest disagreement bit bb, zz has a 0 while jj has a known 1. Because 2b>∑i=0b−12i2^b > \sum_{i=0}^{b-1} 2^i, that single known 1 at bit bb already forces any candidate that matches zz above bb to be strictly greater than zz, regardless of how the free bits below bb are set. Conversely, changing any free bit above bb from 1 to 0 would make the number strictly smaller than zz, and changing a free bit above bb from 0 to 1 would make it larger than jj. Thus, to make our candidate minimally greater than zz, we keep all free bits above bb matched to zz and reset all free bits below bb to 0.

In Figure 2(a), t=x00010x12t = \mathrm{x}00010\mathrm{x}_{1}2 and z=130=100000102z = 130 = 10000010_{2}. Greedy projection copies z7=1z_{7} = 1 and z1=1z_{1} = 1 into the two ‘x’ positions, yielding j=100010112=139>zj = 10001011_{2} = 139 > z. The highest disagreement is at bit b=3b = 3, where z3=0z_{3} = 0 but tt has a known 1. Keeping unknown bits above bb equal to zz (i.e., setting bit 7 to z7=1z_{7} = 1) and clearing unknown bits below bb (i.e. clearing bit 1 to 0) yields the exact minimal successor 100010012=13710001001_{2} = 137.

Binary execution of tnum_step

Figure 2. Binary execution of tnum_step. Blue cells are free bits (mi=1m_i = 1); gray cells are fixed bits (mi=0m_i = 0); red marks pivot bb. (a) Case 1 (j>zj > z): free bits <b< b roll to 0 (green), >b> b match zz. (b) Case 2 (j≤zj \le z): bridge ww sets fixed bits 4, 5 to 1 (orange) so +(1≪3)+(1 \ll3) ripples across bit 5 into bit 6.

Step 3, Case 2 (j≤zj \le z: 1-to-0 flip at pivot bb, or j=zj = z: an exact match). When j<zj < z, at the highest disagreement bit bb, zz has a 1 while tt has a known 0. Candidate jj falls behind zz by 2b2^{b}. Even if we set every free bit below bb to 1, their total contribution is at most ∑i=0b−12i=2b−1<2b\sum_{i=0}^{b-1} 2^{i} = 2^{b} - 1 < 2^{b}, which can never make up for this deficit to make it exceed zz. Consequently, to strictly exceed zz, we must “increment” the free bits strictly above bb (or across all free bit positions if j=zj = z). Specifically, we must find the lowest free bit c>bc > b where zc=0z_{c} = 0 and flip it to 1, keep all higher free bits above cc matched to zz, and reset all free bits below cc to 0 to guarantee minimality.

How can we increment the next free bit above bb without iterating over intermediate bits? If we simply added 1≪(b+1)1 \ll(b + 1) to jj, the carry would stop at the very first 0 bit encountered. If that position corresponds to a known 0 in tt, addition would incorrectly flip that fixed bit to 1 instead of propagating past it to reach a higher free bit. To overcome this, we construct a carry bridge word ww: at all bit positions above bb, we copy zz’s bits on the free bits as usual, but force all known bit positions above bb to 1. Because a bit pre-loaded with 1 propagates a carry (1+1=01 + 1 = 0 with carry 1), adding 1≪(b+1)1 \ll(b + 1) to ww (producing sum uu) ripples the carry across all intermediate fixed bits, automatically depositing it into the lowest free bit c>bc > b where zc=0z_{c} = 0, while also clearing all lower bits between b+1b+1 and c−1c-1. Finally, extracting only the free bits from uu and restoring the fixed bits from tt yields the minimal successor.

In Figure 2(b), projecting z=158=100111102z = 158 = 10011110_{2} onto t=xx01x0x2t = \mathrm{xx}01\mathrm{x}0\mathrm{x}_{2} yields j=100110102=154<zj = 10011010_{2} = 154 < z due to a fixed 0 at bit b=2b = 2. Bridge word ww copies free bits ≥3\ge3 from zz, clears bits <3< 3, and sets known bits 4 and 5 to 1 (w=184w = 184). Adding 1≪31 \ll3 (8) propagates the carry through bits 3, 4, 5 into free bit position 6, yielding u=192u = 192. Finally, restoring fixed bits yields the minimal successor 208.

Algorithm 1: Step function for the tristate domain
(tnum_step)

Input: tnum t = (v, m) ∈ W₆₄ × W₆₄, integer z ∈ W₆₄
Output: min {w ∈ γ(t) | w > z}, or t_max if z ≥ t_max

1  t_min = v ;
2  t_max = v | m ;
3  if z ≥ t_max then
4      return t_max
5  end
6  if z < t_min then
7      return t_min
8  end
9  j ← v | (z & m) ; Match unknown bits to z
10 if j > z then
11     p ← ∼z & v & ∼m ; Identify 0-to-1 flips
12     k ← fls64(p) ; Most significant flip
13     q ← U64_MAX ≪ k;
14     res ← (q & z) | (∼q & v) ; Clear unknown bits ≤ k
15 else
16     p ← z & ∼v & ∼m ; Identify 1-to-0 flips
17     k ← fls64(p) ; Most significant flip (0 if j = z)
18     q ← U64_MAX ≪ k;
19     w ← (q & m & z) | (q & ∼m) ; Set known bits > k
20     u ← w + (1ULL ≪ k) ; Carry into unknown
21     res ← (u & m) | v ; Reattach known bits
22 end
23 return res;

Algorithm. Algorithm 1 summarizes the complete procedure. The kernel helper fls64⁡(p)\operatorname{fls64}(p) returns the 1-indexed position k=b+1∈{1,…,64}k = b + 1 \in\{1, \ldots, 64\} of the most significant set bit in pp (fls64⁡(0)=0\operatorname{fls64}(0) = 0), compiling to a single instruction (bsrq on x86-64, clz on ARM64). Because the boundary guards on line 1 ensure tmin⁡≤z<tmax⁡t_{\min} \le z < t_{\max}, jj and zz can never disagree at the MSB b=63b = 63, so 0≤k≤630 \le k \le63 always holds and the shifts by kk never shift by 64.

Formal Verification. To prove that tnum_step() is sound and optimal for all 64-bit inputs, we verified it against a first-order bit-vector specification in Equation (2) below.

∀t∈Atnum, z,x∈W64:(z<tmax⁡)∧x=tnum_step⁡(t,z)⇒x∈γtnum(t)∧x>z∧(¬∃y∈W64:y∈γtnum(t)∧y>z∧y<x)(2)\begin{aligned} \forall t \in A_{tnum},\ z,x \in W_{64} : (z < t_{\max}) \land x = \operatorname{tnum\_step}(t,z) \\ \Rightarrow x \in\gamma_{tnum}(t) \land x > z \land\left(\neg\exists y \in W_{64} : y \in\gamma_{tnum}(t) \land y > z \land y < x\right) \tag*{(2)} \end{aligned}

For any t∈Atnumt \in A_{tnum} and z∈W64z \in W_{64} with z<tmax⁡z < t_{\max}, x≜tnum_step⁡(t,z)x \triangleq\operatorname{tnum\_step}(t,z) must be the unique smallest element in γtnum(t)\gamma_{tnum}(t) strictly greater than zz. Negating Equation (2) over y∈W64y \in W_{64} yields a QF_BV query that Z3 [19] and Agni’s LLVM IR verifier [54] proved unsat in seconds. We also have a bitwidth-parametric proof in Lean 4. The step operator is merged in mainline Linux, and kernel maintainers have adopted tnum_step in reduction to detect singleton intersections [10] and tighten interval bounds [43]. The community has also used AI coding agents to synthesize a strength-reduced implementation [46, 47].

Multi-Domain Set Intersections

Equipped with domain-specific step functions, we now formulate a general search procedure to decide joint set intersections across an arbitrary number of abstract domains (§ 5.1) and prove sufficient conditions under which multi-domain intersection runs in O(1)O(1) time (§ 5.2).

A General Algorithm for Multi-Domain Set Intersections

Algorithm 2: General Multi-Domain Set Intersection using Abstract Step Functions
Input: Abstract values a1∈A1,…,ak∈Aka_1 \in A_1, \ldots, a_k \in A_k over totally ordered concrete domain CC.
Output: true if ⋂i=1kγi(ai)≠∅\bigcap_{i=1}^{k} \gamma_i(a_i) \ne\emptyset (CMCM)
false if ⋂i=1kγi(ai)=∅\bigcap_{i=1}^{k} \gamma_i(a_i) = \emptyset (EIEI)
1. xc←xmin⁡←max⁡1≤i≤k(min⁡(γi(ai)))x_c \leftarrow x_{\min} \leftarrow\max_{1 \le i \le k}\left(\min(\gamma_i(a_i))\right);
2. xmax⁡←min⁡1≤i≤k(max⁡(γi(ai)))x_{\max} \leftarrow\min_{1 \le i \le k}\left(\max(\gamma_i(a_i))\right);
3. while xc≤xmax⁡x_c \le x_{\max} do
4. all_contain ←\leftarrow true;
5. for i←1i \leftarrow1 to kk do
6. if xc∉γi(ai)x_c \notin\gamma_i(a_i) then
7. all_contain ←\leftarrow false;
8. xc←xc∗←step⁡i(ai,xc)x_c \leftarrow x_c^* \leftarrow\operatorname{step}_i(a_i,x_c); update xcx_c
9. break;
10. end
11. end
12. if all_contain then
13. return true; Common member xcx_c
14. end
15. end
16. return false; No intersection

Table 2.

Let A1,…,AkA_1, \ldots, A_k be kk abstract domains over a shared, totally ordered concrete set CC. Let a1∈A1,…,ak∈Aka_1 \in A_1, \ldots, a_k \in A_k be well-formed abstract values. Given any ai∈Aia_i \in A_i and any x∈Cx \in C, we assume that each domain AiA_i provides: (1) Minimum: min⁡(γi(ai))\min(\gamma_i(a_i)), (2) Maximum: max⁡(γi(ai))\max(\gamma_i(a_i)), (3) Membership: testing x∈γi(ai)x \in\gamma_i(a_i), and (4) Step: step⁡i(ai,x)=min⁡{y∈γi(ai)∣y>x}\operatorname{step}_i(a_i,x) = \min\{y \in\gamma_i(a_i) \mid y > x\}.

Algorithm 2 details our decision procedure, which operates like the multi-way merge phase of merge-sort. It initializes xmin⁡x_{\min} to the maximum of all domain minimums and xmax⁡x_{\max} to the minimum of all domain maximums (lines 1-2). Since no common element can lie outside [xmin⁡,xmax⁡][x_{\min}, x_{\max}], it starts the candidate search at xc←xmin⁡x_c \leftarrow x_{\min}. If xc>xmax⁡x_c > x_{\max}, the domains are separated by an empty gap and the algorithm returns false (line 16). Otherwise, it tests whether xcx_c belongs to all kk abstract values (line 6). If some ai∈Aia_i \in A_i does not contain xcx_c, it advances xcx_c using AiA_i’s step function: xc←xc∗←step⁡i(ai,xc)x_c \leftarrow x_c^* \leftarrow\operatorname{step}_i(a_i,x_c) (line 8).

Because step⁡i(ai,xc)\operatorname{step}_i(a_i,x_c) returns the smallest member of γi(ai)\gamma_i(a_i) strictly greater than xcx_c, no value in [xc,xc∗)[x_c,x_c^*) can belong to γi(ai)\gamma_i(a_i). Hence, advancing xc←xc∗x_c \leftarrow x_c^* is complete (skips no common members) and sound (strictly increases xcx_c). Stepping repeats until either xcx_c satisfies all kk domains, returning true (line 13), or xc>xmax⁡x_c>x_{\max}, returning false (line 16).

Visualizing the stepping dynamics. Figure 3 illustrates Algorithm 2 on three domains A1A_1, A2A_2, A3A_3. In Figure 3(a), a1={1,5,9,12}a_1=\{1,5,9,12\}, a2={2,5,7,9,11}a_2=\{2,5,7,9,11\}, and a3={1,3,9,12}a_3=\{1,3,9,12\}, giving xc0=max⁡(1,2,1)=2x_c^0=\max(1,2,1)=2 and xmax⁡=min⁡(12,11,12)=11x_{\max}=\min(12,11,12)=11. Since 2∉a12\notin a_1, stepping in A1A_1 yields xc1=step⁡1(a1,2)=5x_c^1=\operatorname{step}_1(a_1,2)=5. At xc1=5x_c^1=5, 5∈a15\in a_1 and 5∈a25\in a_2, but 5∉a35\notin a_3, so stepping in A3A_3 yields xc2=step⁡3(a3,5)=9x_c^2=\operatorname{step}_3(a_3,5)=9, which belongs to all three domains, terminating the algorithm with true (R∈CMR\in CM). In Figure 3(b), a2={2,5,7}a_2=\{2,5,7\}, which lowers xmax⁡x_{\max} to min⁡(12,7,12)=7\min(12,7,12)=7; After advancing to xc1=5x_c^1=5, stepping in A3A_3 yields xc2=9>xmax⁡=7x_c^2=9>x_{\max}=7, terminating the algorithm immediately with false (R∈EIR\in EI).

Illustration of the General Multi-Domain Set Intersection Algorithm

Figure 3. Illustration of the General Multi-Domain Set Intersection Algorithm. Candidate xcx_c values hop across domains. In (a), stepping converges to a common concrete member 9. In (b), stepping past 5 produces candidate xc2=9>xmax⁡=7x_c^2=9>x_{\max}=7, proving an empty intersection.

Algorithmic Complexity and Termination. The number of iterations in Algorithm 2 is governed by the number of discrete gaps or discontinuities across the domains. Formally, a discontinuity in ai∈Aia_i\in A_i is a gap between consecutive members u,v∈γi(ai)u,v\in\gamma_i(a_i), e.g. in Au64A_{u64}, v>u+1v>u+1. If aia_i has δi\delta_i discontinuities, xc∈[xmin⁡,xmax⁡]x_c\in[x_{\min},x_{\max}] can step across gaps in aia_i at most δi\delta_i times. Moreover, because xc←step⁡i(ai,xc)x_c\leftarrow\operatorname{step}_i(a_i,x_c) lands inside γi(ai)\gamma_i(a_i), AiA_i cannot step again until another domain Aj≠AiA_j\ne A_i steps across one of its own gaps, bounding total iterations by O(1+∑j≠∗δj)O(1+\sum_{j\ne*}\delta_j) where A∗A^* is the domain with the most discontinuities. While intervals have δ=0\delta=0, tnums can have O(2w)O(2^w) discontinuities over Ww\mathbb{W}_w, so Algorithm 2 can take exponential time only when two or more domains have unbounded discontinuities.

Sufficient Conditions for Constant Time Multi Domain Intersection

We now identify conditions under which multi-domain intersection can be done in O(1)O(1) time.

Theorem 5.1 (Sufficient Constant-Time Intersection Theorem). Let A1,…,AkA_1,\ldots,A_k be k=O(1)k=O(1) abstract domains over a totally ordered set CC. Deciding ⋂i=1kγi(ai)≠∅\bigcap_{i=1}^k\gamma_i(a_i)\ne\varnothing takes O(1)O(1) time if:

  1. Bounded Discontinuities: at most one domain A∗∈{A1,…,Ak}A^*\in\{A_1,\ldots,A_k\} has a non-constant number of discontinuities, while every other domain Aj≠A∗A_j\ne A^* has at most Cj=O(1)C_j=O(1) discontinuities;

  2. Constant-Time Membership: testing x∈γi(ai)x\in\gamma_i(a_i) takes O(1)O(1) time for each AiA_i; and

  3. Constant-Time Step: computing step⁡i(ai,x)\operatorname{step}_i(a_i,x) takes O(1)O(1) time for each AiA_i.

Proof. In Algorithm 2, since xc≥xmin⁡≥min⁡j(aj)x_c\ge x_{\min}\ge\min_j(a_j), each step by any Aj≠A∗A_j\ne A^* jumps across one of aja_j's ≤Cj\le C_j internal discontinuities, so all Aj≠A∗A_j\ne A^* combined execute at most S≤∑j≠∗Cj=O(1)S\le\sum_{j\ne*}C_j=O(1) steps. Because xc←step⁡∗(a∗,xc)x_c\leftarrow\operatorname{step}_*(a^*,x_c) places xc∈γ∗(a∗)x_c\in\gamma_*(a^*), A∗A^* cannot step again until some Aj≠A∗A_j\ne A^* advances xcx_c; thus A∗A^* steps at most S+1=O(1)S+1=O(1) times. Algorithm 2 therefore executes at most 2S+12S + 1 steps and terminates in at most 2S+2=O(1)2S + 2 = O(1) iterations, each taking O(k)=O(1)O(k) = O(1) time by (ii) and (iii). (When the Cj+1C_j + 1 contiguous intervals of each Aj≠A∗A_j \ne A^* have explicit endpoints, as in § 6, intersecting them yields M≤∏j≠∗(Cj+1)=O(1)M \le\prod_{j \ne*}(C_j + 1) = O(1) intervals [lp,up][l_p, u_p], each testable against A∗A^* in one step via Theorem 4.2.) □

Theorem 5.1 explains why five-domain intersection can be made O(1)O(1) in the eBPF verifier: unsigned intervals (Au64,Au32A_{\mathrm{u64}}, A_{\mathrm{u32}}) have 0 discontinuities, signed intervals (As64,As32A_{\mathrm{s64}}, A_{\mathrm{s32}}) have at most 1 discontinuity (at the sign boundary), and any 64-bit interval projects onto W32W_{32} as at most 3 contiguous slices (§ 6.1), leaving AtnumA_{\mathrm{tnum}} as the only domain with an exponential number of gaps.

All-Domain Abstract Intersection in eBPF

In the eBPF verifier, registers store 64-bit words x∈W64x \in W_{64}, and the five domains in PP (§ 2) interpret these 64 bits through different lenses: as unsigned 64-bit integers (Au64,AtnumA_{\mathrm{u64}}, A_{\mathrm{tnum}}), two’s-complement signed 64-bit integers (As64A_{\mathrm{s64}}), or lower 32-bit sub-register slices (Au32,As32A_{\mathrm{u32}}, A_{\mathrm{s32}}).

eBPF Domains: Discontinuities and Periodicity

While au64∈Au64a_{\mathrm{u64}} \in A_{\mathrm{u64}} concretizes to a single contiguous interval (δ=0\delta= 0), the remaining four domains exhibit discontinuities and periodic gaps when mapped to W64W_{64}.

Signed 64-bit Interval Domain (As64A_{\mathrm{s64}}) constrains s64⁡(x)∈[−263,263−1]\operatorname{s64}(x) \in[-2^{63}, 2^{63} - 1] to [s64min⁡,s64max⁡][s64_{\min}, s64_{\max}]. When s64min⁡≥0s64_{\min} \ge0 or s64max⁡<0s64_{\max} < 0, it maps to a single contiguous unsigned interval in W64W_{64} (δ=0\delta= 0). When [s64min⁡,s64max⁡][s64_{\min}, s64_{\max}] crosses zero (s64min⁡<0≤s64max⁡s64_{\min} < 0 \le s64_{\max}), negative values map to the upper end of W64W_{64}, splitting γs64\gamma_{\mathrm{s64}} into two disjoint unsigned intervals, γs64([s64min⁡,s64max⁡])=[0,s64max⁡]∪[s64min⁡+264,264−1]\gamma_{\mathrm{s64}}([s64_{\min}, s64_{\max}]) = [0, s64_{\max}] \cup[s64_{\min} + 2^{64}, 2^{64} - 1]. Suppose as64=[−1,1]a_{\mathrm{s64}} = [-1, 1]. In two’s complement, −1-1 is 264−12^{64} - 1. The valid unsigned 64-bit register words are {0,1}∪{264−1}\{0, 1\} \cup\{2^{64} - 1\}, which introduces one discontinuity (δ=1\delta= 1).

32-bit sub-register interval domains (Au32,As32A_{\mathrm{u32}}, A_{\mathrm{s32}}) constrain only the lower 32 bits x[31:0]x[31:0], leaving the upper 32-bit prefix k=x[63:32]∈W32k = x[63:32] \in W_{32} unconstrained. Writing x=k⋅232+x[31:0]x = k \cdot2^{32} + x[31:0], let Sk≜{x∈W64∣x[63:32]=k}S_k \triangleq\{x \in W_{64} \mid x[63:32] = k\} denote the kk-th 32-bit subspace. Because Au32A_{\mathrm{u32}} places no constraint on kk, [u32min⁡,u32max⁡][u32_{\min}, u32_{\max}] repeats across all 2322^{32} subspaces SkS_k. A 32-bit interval is repeated across every subspace SkS_k at multiples of the form k⋅232k \cdot2^{32}, i.e., γu32([u32min⁡,u32max⁡])=⋃k=0232−1[k⋅232+u32min⁡,(k⋅232)+u32max⁡]\gamma_{\mathrm{u32}}([u32_{\min}, u32_{\max}]) = \bigcup_{k=0}^{2^{32}-1} [k \cdot2^{32} + u32_{\min}, (k \cdot2^{32}) + u32_{\max}].

For example, if au32=[5,10]a_{\mathrm{u32}} = [5, 10], valid 64-bit values include [5,10][5, 10] (for k=0k = 0), [232+5,232+10][2^{32} + 5, 2^{32} + 10] (for k=1k = 1), and so on, creating δ=232−1\delta= 2^{32} - 1 discontinuities of length 232−62^{32} - 6. Signed 32-bit intervals as32∈As32a_{\mathrm{s32}} \in A_{\mathrm{s32}} follow the same 2322^{32}-periodic structure, splitting each 32-bit slice into two unsigned sub-intervals when s32min⁡<0≤s32max⁡s32_{\min} < 0 \le s32_{\max}.

Tristate Numbers (AtnumA_{\mathrm{tnum}}) constrains individual bit positions via t=(v,m)t = (v, m), inducing up to δ=263−1\delta= 2^{63} - 1 discontinuities across W64W_{64} (e.g., v=0,m=0xff…fev = 0, m = \mathtt{0xff\ldots fe} restricts xx to even integers).

**eBPF domains satisfy Theorem 5.1 via subspace projection.** All five eBPF domains satisfy conditions (ii) and (iii) of Theorem 5.1: membership testing takes $O(1)$ bitwise or comparison operations, intervals have trivial $O(1)$ step functions, and $\operatorname{tnum\_step}()$ ({xref}§4.2`) steps over AtnumA_{\mathrm{tnum}} in O(1)O(1) time. The central challenge is satisfying condition (i) (bounded discontinuities). In the 64-bit space W64W_{64}, the 64-bit interval domains Au64A_{\mathrm{u64}} and As64A_{\mathrm{s64}} have O(1)O(1) discontinuities (0 and at most 1, respectively). In contrast, because Au32A_{\mathrm{u32}} and As32A_{\mathrm{s32}} constrain only the lower 32 bits x[31:0]x[31:0] while leaving the upper 32 bits k=x[63:32]k = x[63:32] unconstrained, every increment of kk from 0 to 232−12^{32} - 1 repeats the 32-bit interval across W64W_{64}. If we ran Algorithm 2 directly in W64W_{64}, a search between Au32A_{\mathrm{u32}} and AtnumA_{\mathrm{tnum}} could “ping-pong” across all 2322^{32} periodic gaps, requiring billions of steps. Crucially, however, this repetition is not irregular: it is strictly aligned to 32-bit subspace boundaries Sk={x∈W64∣x[63:32]=k}S_k = \{x \in W_{64} \mid x[63:32] = k\}. Rather than expanding 32-bit intervals upward into 2322^{32} slices in W64W_{64}, we project 64-bit intervals downward into the 32-bit space W32W_{32}, where Au32A_{\mathrm{u32}} has 0 discontinuities and As32A_{\mathrm{s32}} has at most 1. For any 64-bit interval [x,y]⊆W64[x,y] \subseteq W_{64} (with upper 32-bit prefixes xhi=x[63:32]x_{\mathrm{hi}} = x_{[63:32]} and yhi=y[63:32]y_{\mathrm{hi}} = y_{[63:32]}), as a 64-bit counter increments from xx to yy, the set of lower 32-bit values {z[31:0]∣z∈[x,y]}⊆W32\{z_{[31:0]} \mid z \in[x,y]\} \subseteq W_{32} partitions into at most three contiguous 32-bit slices (Figure 4):

Figure 4. Stage 2: Projecting a 64-bit Interval across Subspaces into 32-bit Space. A 64-bit interval [x,y][x,y] is partitioned across 32-bit subspaces into at most three segments: Left Edge (IleftI_{\mathrm{left}}), Middle Full Blocks (ImidI_{\mathrm{mid}}), and Right Edge (IrightI_{\mathrm{right}}). Projecting each segment onto its lower 32 bits (⋅)[31:0](\cdot)_{[31:0]} yields candidate 32-bit intervals in W32W_{32}, which are intersected with the target 32-bit bounds I32I_{32} (red shaded band).

  1. Single subspace (xhi=yhix_{\mathrm{hi}} = y_{\mathrm{hi}}). The entire interval [x,y][x,y] lies within a single 32-bit subspace SxhiS_{x_{\mathrm{hi}}} (fixed prefix k=xhik = x_{\mathrm{hi}}) and projects to the single 32-bit interval [x[31:0],y[31:0]][x_{[31:0]}, y_{[31:0]}].

  2. Multiple subspaces (xhi<yhix_{\mathrm{hi}} < y_{\mathrm{hi}}). The interval [x,y][x,y] crosses one or more 32-bit subspace boundaries, decomposing into:

    • Left partial block (k=xhik = x_{\mathrm{hi}}): [x,y][x,y] starts partway through SxhiS_{x_{\mathrm{hi}}} and runs to the top of the block, covering lower 32-bit values [x[31:0],232−1][x_{[31:0]}, 2^{32} - 1];

    • All middle full blocks (xhi<k<yhix_{\mathrm{hi}} < k < y_{\mathrm{hi}}): Because [x,y][x,y] starts before SkS_k and ends after SkS_k, it sweeps through every possible lower 32-bit value [0,232−1][0, 2^{32} - 1] in each intermediate block. Since every intermediate block shares the identical lower 32-bit range [0,232−1][0, 2^{32} - 1], up to 232−22^{32} - 2 middle blocks collapse without loss of precision into a single candidate pairing prefix range k∈[xhi+1,yhi−1]k \in[x_{\mathrm{hi}} + 1, y_{\mathrm{hi}} - 1] with lower 32-bit interval [0,232−1][0, 2^{32} - 1];

    • Right partial block (k=yhik = y_{\mathrm{hi}}): [x,y][x,y] enters SyhiS_{y_{\mathrm{hi}}} at 0 and stops at y[31:0]y_{[31:0]}, covering lower 32-bit values [0,y[31:0]][0, y_{[31:0]}].

Consequently, the joint intersection of all four interval domains decomposes into at most 12 exact candidate boxes:

(i) Intersecting the 64-bit domains Au64∩As64A_{\mathrm{u64}} \cap A_{\mathrm{s64}} yields at most 2 contiguous 64-bit intervals in W64W_{64} (two when As64A_{\mathrm{s64}} wraps across zero);

(ii) Decomposing each 64-bit interval into its left, middle, and right 32-bit subspaces produces at most 2×3=62 \times3 = 6 projected slices, each consisting of a contiguous upper-32-bit prefix range and a contiguous lower-32-bit range;

(iii) Intersecting the lower-32-bit range of each slice with the 32-bit domains Au32∩As32A_{\mathrm{u32}} \cap A_{\mathrm{s32}} (at most 2 contiguous intervals in W32W_{32}) yields at most 6×2=126 \times2 = 12 candidate boxes.

Finally, because a tristate bitmask t∈Atnumt \in A_{\mathrm{tnum}} imposes independent bitwise constraints on the upper 32 bits (thit_{\mathrm{hi}}) and lower 32 bits (tlot_{\mathrm{lo}}) with no carries between bit positions, each of the ≤12\leq12 candidate boxes can be tested against AtnumA_{\mathrm{tnum}} in O(1)O(1) time using at most two calls to tnum_step⁡()\operatorname{tnum\_step}() (one on the upper-32-bit prefix interval against thit_{\mathrm{hi}}, and one on the lower-32-bit interval against tlot_{\mathrm{lo}}), guaranteeing a sound, complete, and O(1)O(1) decision procedure.

Stage 3: Interval Intersection via Tnum Stepping

Figure 5. Stage 3: Interval Intersection via Tnum Stepping (Theorem 4.2). In (a), candidate interval [1,5][1,5] intersects tt (even numbers): evaluating tnum_step(tlot_{\mathrm{lo}}, 1) yields 2≤52 \le5, proving the intersection is non-empty. In (b), tt contains only multiples of 8: tnum_step(tlot_{\mathrm{lo}}, 1) jumps directly to 8>58 > 5; [1,5][1,5] lies entirely within an empty gap, proving the intersection is empty.

Sound and Complete Allwise Intersection in eBPF

We now present our complete, constant-time allwise intersection decision procedure (reg_bounds_intersect() in the Linux kernel). The algorithm organizes the five-domain intersection query into a three-stage pipeline that exploits the 32-bit subspace periodicity from § 6.1.

Stage 1: 64-Bit and 32-Bit interval intersection. The algorithm first intersects the 64-bit intervals u64=[u64min⁡,u64max⁡]u64 = [u64_{\min}, u64_{\max}] and s64=[s64min⁡,s64max⁡]s64 = [s64_{\min}, s64_{\max}] in W64\mathbb{W}_{64}, and the 32-bit sub-register intervals u32=[u32min⁡,u32max⁡]u32 = [u32_{\min}, u32_{\max}] and s32=[s32min⁡,s32max⁡]s32 = [s32_{\min}, s32_{\max}] in W32\mathbb{W}_{32}. When s64s64 does not cross zero (s64min⁡≥0s64_{\min} \ge0 or s64max⁡<0s64_{\max} < 0), shifting negative bounds by +264+2^{64} maps s64s64 to a single unsigned interval [s64min⁡′,s64max⁡′]⊆W64[s64'_{\min}, s64'_{\max}] \subseteq\mathbb{W}_{64}, so u64∩s64u64 \cap s64 forms at most one contiguous unsigned interval [max⁡(u64min⁡,s64min⁡′),min⁡(u64max⁡,s64max⁡′)][\max(u64_{\min},s64'_{\min}),\min(u64_{\max},s64'_{\max})]. When s64s64 crosses zero (s64min⁡<0≤s64max⁡s64_{\min} < 0 \le s64_{\max}), it splits into s640=[0,s64max⁡]s64_0 = [0,s64_{\max}] and s641=[s64min⁡+264,264−1]s64_1 = [s64_{\min} + 2^{64},2^{64}-1] (§ 2), and intersecting both pieces with u64u64 produces a set I64\mathcal{I}_{64} of at most two contiguous 64-bit unsigned intervals. Intersecting u32∩s32u32 \cap s32 in W32\mathbb{W}_{32} (shifting negative bounds by +232+2^{32}) analogously produces a set I32\mathcal{I}_{32} of at most two target 32-bit unsigned intervals (s320=[0,s32max⁡]s32_0 = [0,s32_{\max}] and s321=[s32min⁡+232,232−1]s32_1 = [s32_{\min} + 2^{32},2^{32}-1]):

I64={{u64∩s640,u64∩s641}∖{∅}if s64 crosses 0,{u64∩s64}∖{∅}otherwiseI32={{u32∩s320,u32∩s321}∖{∅}if s32 crosses 0,{u32∩s32}∖{∅}otherwise(3)\mathcal{I}_{64} = \begin{cases} \{u64 \cap s64_0, u64 \cap s64_1\} \setminus\{\varnothing\} & \text{if } s64 \text{ crosses } 0,\\ \{u64 \cap s64\} \setminus\{\varnothing\} & \text{otherwise} \end{cases} \qquad \mathcal{I}_{32} = \begin{cases} \{u32 \cap s32_0, u32 \cap s32_1\} \setminus\{\varnothing\} & \text{if } s32 \text{ crosses } 0,\\ \{u32 \cap s32\} \setminus\{\varnothing\} & \text{otherwise} \end{cases} \tag*{(3)}

If I64=∅\mathcal{I}_{64} = \varnothing or I32=∅\mathcal{I}_{32} = \varnothing, the signed and unsigned bounds are mutually contradictory, and the procedure terminates immediately returning false.

Stage 2: Subspace projection and 32-bit bound intersection. As shown in Figure 4, each 64-bit interval I=[x,y]∈I64I = [x,y] \in\mathcal{I}_{64} (with xhi=x[63:32]x_{\mathrm{hi}} = x[63:32], xlo=x[31:0]x_{\mathrm{lo}} = x[31:0], yhi=y[63:32]y_{\mathrm{hi}} = y[63:32], and ylo=y[31:0]y_{\mathrm{lo}} = y[31:0]) decomposes across 32-bit subspace boundaries into at most three candidate pairs (Iπ,Kπ)(I_{\pi},K_{\pi}), where Iπ⊆W32I_{\pi} \subseteq\mathbb{W}_{32} is a projected 32-bit interval and Kπ⊆W32K_{\pi} \subseteq\mathbb{W}_{32} is the interval of upper 32-bit subspace prefixes:

  1. Left Boundary Candidate (Ileft,KleftI_{\mathrm{left}}, K_{\mathrm{left}}): If xhi=yhix_{\mathrm{hi}} = y_{\mathrm{hi}}, Ileft=[xlo,ylo]I_{\mathrm{left}} = [x_{\mathrm{lo}},y_{\mathrm{lo}}] with singleton prefix Kleft=[xhi,xhi]K_{\mathrm{left}} = [x_{\mathrm{hi}},x_{\mathrm{hi}}] is the sole candidate; if xhi<yhix_{\mathrm{hi}} < y_{\mathrm{hi}}, Ileft=[xlo,232−1]I_{\mathrm{left}} = [x_{\mathrm{lo}},2^{32}-1] with Kleft=[xhi,xhi]K_{\mathrm{left}} = [x_{\mathrm{hi}},x_{\mathrm{hi}}].

  2. Intermediate Full Candidate (Imid,KmidI_{\mathrm{mid}}, K_{\mathrm{mid}}): Constructed only when yhi>xhi+1y_{\mathrm{hi}} > x_{\mathrm{hi}} + 1, with full 32-bit span Imid=[0,232−1]I_{\mathrm{mid}} = [0,2^{32}-1] and prefix range Kmid=[xhi+1,yhi−1]K_{\mathrm{mid}} = [x_{\mathrm{hi}}+1,y_{\mathrm{hi}}-1].

  3. Right Boundary Candidate (Iright,KrightI_{\mathrm{right}}, K_{\mathrm{right}}): Constructed only when yhi>xhiy_{\mathrm{hi}} > x_{\mathrm{hi}}, with interval Iright=[0,ylo]I_{\mathrm{right}} = [0,y_{\mathrm{lo}}] and singleton prefix Kright=[yhi,yhi]K_{\mathrm{right}} = [y_{\mathrm{hi}},y_{\mathrm{hi}}].

Since ∣I64∣≤2|\mathcal{I}_{64}| \le2, decomposing every I∈I64I \in\mathcal{I}_{64} yields a set Iπ\mathcal{I}_{\pi} of at most 2×3=62 \times3 = 6 projected candidates:

Iπ=⋃I∈I64{(Ileft,Kleft),(Imid,Kmid),(Iright,Kright)}(4)\mathcal{I}_{\pi} = \bigcup_{I \in\mathcal{I}_{64}} \left\{(I_{\mathrm{left}},K_{\mathrm{left}}),(I_{\mathrm{mid}},K_{\mathrm{mid}}),(I_{\mathrm{right}},K_{\mathrm{right}})\right\} \tag*{(4)}

Example 1: Non-empty intersection. Consider an input register state with u64=[1,2⋅232+5]u64 = [1, 2 \cdot2^{32} + 5], s64=[−10,2⋅232+5]s64 = [-10, 2 \cdot2^{32} + 5], u32=[10,20]u32 = [10, 20], s32=[10,20]s32 = [10, 20], and tnum tt where upper 32 bits are odd and lower 32 bits are multiples of 16 (t.v=0x0000000100000000t.v = 0x0000000100000000, t.m=0xfffffffefffffff0t.m = 0xfffffffefffffff0):

  • Stage 1: s64s64 crosses zero, splitting into [0,2⋅232+5]∪[264−10,264−1][0, 2 \cdot2^{32} + 5] \cup[2^{64} - 10, 2^{64} - 1]; intersecting with u64u64 gives I64={[1,2⋅232+5]}I_{64} = \{[1, 2 \cdot2^{32} + 5]\}. s32s32 does not cross zero; intersecting with u32u32 gives I32={[10,20]}I_{32} = \{[10, 20]\}.

  • Stage 2: [1,2⋅232+5][1, 2 \cdot2^{32} + 5] has xhi=0x_{\mathrm{hi}} = 0, xlo=1x_{\mathrm{lo}} = 1, yhi=2y_{\mathrm{hi}} = 2, ylo=5y_{\mathrm{lo}} = 5 (yhi>xhi+1y_{\mathrm{hi}} > x_{\mathrm{hi}} + 1), decomposing into three slices intersected with I32I_{32}: Left: [1,232−1]∩[10,20]⇒([10,20],[0,0])[1, 2^{32} - 1] \cap[10, 20] \Rightarrow([10, 20], [0, 0]); Middle: [0,232−1]∩[10,20]⇒([10,20],[1,1])[0, 2^{32} - 1] \cap[10, 20] \Rightarrow([10, 20], [1, 1]); Right: [0,5]∩[10,20]=∅[0, 5] \cap[10, 20] = \varnothing (discarded). Surviving candidates: J={([10,20],[0,0]),([10,20],[1,1])}J = \{([10, 20], [0, 0]), ([10, 20], [1, 1])\}.

  • Stage 3: Candidate 1 (Kπ=[0,0]K_{\pi} = [0, 0]): 0∉γtnum(thi)0 \notin\gamma_{\mathrm{tnum}}(t_{\mathrm{hi}}) since thit_{\mathrm{hi}} requires odd integers (discarded). Candidate 2 (Kπ=[1,1]K_{\pi} = [1, 1]): 1∈γtnum(thi)1 \in\gamma_{\mathrm{tnum}}(t_{\mathrm{hi}}) passes the prefix check; for Iπ=[10,20]I_{\pi} = [10, 20], 10∉γtnum(tlo)10 \notin\gamma_{\mathrm{tnum}}(t_{\mathrm{lo}}), but tnum_step⁡(tlo,10)=16≤20\operatorname{tnum\_step}(t_{\mathrm{lo}}, 10) = 16 \le20. Candidate 2 intersects tt, so the algorithm returns true.

Example 2: Empty intersection. For the same state with tlot_{\mathrm{lo}} requiring multiples of 32, tnum_step⁡(tlo,10)=32>20\operatorname{tnum\_step}(t_{\mathrm{lo}}, 10) = 32 > 20; Candidate 2 fails, leaving no valid candidates, so the algorithm returns false.

We then intersect each projected 32-bit slice IπI_{\pi} with each target 32-bit interval I32∈I32I_{32} \in\mathcal{I}_{32} (∣I32∣≤2|\mathcal{I}_{32}| \le2) via standard interval arithmetic, producing a narrowed candidate set JJ of at most ∣J∣≤6×2=12|J| \le6 \times2 = 12 non-empty pairs:

J={(Iπ∩I32,Kπ)∣(Iπ,Kπ)∈Iπ, I32∈I32, Iπ∩I32≠∅}(5)J = \{(I_{\pi} \cap I_{32}, K_{\pi}) \mid(I_{\pi}, K_{\pi}) \in\mathcal{I}_{\pi},\ I_{32} \in\mathcal{I}_{32},\ I_{\pi} \cap I_{32} \ne\varnothing\} \tag*{(5)}

Tristate number stepping

Having reduced all four numerical interval domains into the candidate set JJ, the multi-domain query reduces to testing whether any candidate (Iπ,Kπ)∈J(I_{\pi}, K_{\pi}) \in J intersects the tristate number t∈Atnumt \in A_{\mathrm{tnum}}, decomposed into upper 32 bits thit_{\mathrm{hi}} and lower 32 bits tlot_{\mathrm{lo}}. For each candidate (Iπ,Kπ)∈J(I_{\pi}, K_{\pi}) \in J, we perform two checks:

(1) Prefix compatibility. The upper 32-bit prefix interval Kπ=[kmin⁡,kmax⁡]K_{\pi} = [k_{\min}, k_{\max}] must intersect thit_{\mathrm{hi}}. For boundary candidates IleftI_{\mathrm{left}} and IrightI_{\mathrm{right}} with singleton prefixes Kπ=[k,k]K_{\pi} = [k, k], this requires a single membership test (k&∼thi.m)=thi.v(k \mathbin{\&} \sim t_{\mathrm{hi}}.m) = t_{\mathrm{hi}}.v. For the intermediate candidate ImidI_{\mathrm{mid}}, we test whether Kπ=[kmin⁡,kmax⁡]K_{\pi} = [k_{\min}, k_{\max}] intersects thit_{\mathrm{hi}} via Theorem 4.2 (one-step interval intersection). If the prefix check fails, the candidate is discarded.

(2) Lower 32-bit tristate intersection. For each candidate passing the prefix check, we test whether its projected 32-bit interval Iπ=[a,b]I_{\pi} = [a, b] intersects tlot_{\mathrm{lo}} by applying Theorem 4.2 (one-step interval intersection).

If both checks succeed for any candidate in JJ, a common 64-bit register value exists (R∈CMR \in CM) and reg_bounds_intersect() immediately returns true; if all candidates fail, it returns false (R∈EIR \in EI). Figure 6 traces all three stages on two example register states.

End-to-End Walkthrough of Allwise Intersection

Figure 6. End-to-End Walkthrough of Allwise Intersection.

Implementation

We implement our allwise intersection procedure in the Linux kernel’s conditional branch feasibility analysis to prune dead branches and remove domain invariant violations before path exploration. On a conditional jump (if (r1 op r2) goto target) with an undetermined outcome, the stock kernel verifier forks first and refines r1 and r2 along each branch before invoking reg_bounds_sync() (§2). As shown in §3, refining operands on an infeasible branch produces EI states that may subsequently turn into IF, triggering invariant violations and bound resets, or states that may silently recover to well-formed states (EI → CM), causing path explosion and false rejections.

Our implementation prevents branches reaching EI ∪ IF states from being explored in the first place. Before forking, we check branch feasibility on refined scratch operand states: (1) we clone the branch operands into stack-allocated scratch registers (R1t,R1f←R1R_{1t}, R_{1f} \leftarrow R_1 and R2t,R2f←R2R_{2t}, R_{2f} \leftarrow R_2) and refine them under the taken and fall-through conditions; (2) we run our O(1)O(1) allwise intersection

CommitKernelUpstream Patch SummaryOpcodeConflictStockProposed
fbc7aef57.0-rc3Fix u32/s32 bounds when ranges cross min/maxJSLTu32∩s32u32 \cap s32✗✓
efc11a667.0-rc2Bounds when tnum has single valuesJEQtnum∩u64tnum \cap u64✗✓
f41345f46.18-rc1Use tnums for JEQ/JNE in is_branch_takenJNEtnum∩u64tnum \cap u64✗✓
00bf8d0c6.17-rc1Bounds when s64 crosses sign boundaryJLTs64∩u64s64 \cap u64✗✓
6279846b6.17-rc1Forget ranges when refining tnum after JSETJSETu32∩u64u32 \cap u64✗✓

caption: tbl:1. Ability to detect historical invariant violations (Q1). Our system detects the empty intersection and prunes the dead path (✓), whereas the stock verifier reports domain invariant violation (✗).

:::

check on each refined scratch state; and (3) if any refined operand is in EI∪IFEI \cup IF, Theorem 3.1 certifies the branch is unreachable and the verifier prunes it.

Pruning dead branches before forking ensures domain reduction and downstream operators are never invoked on contradictory abstract states (R∈EIR \in EI). This not only eliminates domain invariant violations (no more EI→IFEI \to IF transitions), but also prunes unreachable paths in the program, allowing the kernel verifier more room to stay within its budget of 1M checked instructions.

Experimental Evaluation

We evaluate our allwise intersection check for pruning dead paths and answer the following research questions. (Q1) Does the allwise intersection check help detect historical invariant violations? (Q2) Does the early dead-path pruning using allwise intersection checks prevent state explosion? (Q3) Does it eliminate false rejections of safe eBPF programs? (Q4) What is the verification time overhead and performance cost on real-world production applications?

Methodology and setup. We conduct all our experiments on an x86_64 Linux host (24-core AMD EPYC 7352, 256 GiB RAM), using a 16 GiB QEMU x86_64 guest for bug reproducers. We compare two kernel configurations. (1) Stock baseline, which is an unmodified Linux kernel (v7.1-rc1, commit 7e85ca02ef3aa) that includes standard domain operators, pairwise reduction (reg_bounds_sync()), and well-formedness checks (reg_bounds_sanity_check()) but lacks our intersection check and pre-path exploration refinement and dead-path pruning. (2) Our proposed system, which is the same kernel augmented with tnum_step(), reg_bounds_intersect(), and pre-path exploration branch refinement and pruning. On production suites, we use veristat to record verified instructions (insns_processed), total states, and wall-clock verification time (μ\mus); micro-benchmarks and bug reproducers are loaded via a custom C/libbpf harness (log-level=2).

Ability to detect and prevent historical domain invariant violations (Q1). We first evaluate whether our allwise intersection check resolves the recurring class of domain invariant violations affecting mainline Linux kernels. Over several years, kernel developers addressed these violations reactively by patching individual operator or reduction edge cases. Table 1 lists five prominent upstream bug-fix commits across v6.17-rc1–v7.0-rc3. We loaded the minimal BPF bytecode reproducer for each commit into both the stock kernel (with the point-fix reverted to reproduce the pre-patch failure) and proposed kernels. As shown in Table 1, the stock verifier triggers domain invariant violation warnings across all five programs when reg_bounds_sync() reduces contradictory domain bounds along an infeasible branch. In contrast, our proposed verifier invokes reg_bounds_intersect() before exploring paths and detects that no concrete 64-bit word satisfies all five domains. It subsequently prunes the dead path immediately with zero warnings, confirming that a single sound and complete intersection check subsumes years of ad-hoc point fixes. In summary, our algorithm fixes the root cause of these bugs!

Pruning infeasible paths avoids state space explosion (Q2). When the verifier fails to prune an infeasible path, it must explore all downstream instructions along that infeasible path. infeasible path often contains bounded loops (e.g., packet parsing) or cascading conditionals (e.g., firewall rule tables). If the cumulative exploration exceeds the one million instruction limit (BPF_COMPLEXITY_LIMIT_INSNS), loading aborts with the error code −E2BIG.

BoundScaleStockProposed
KK(Iters)InsnsStatusInsnsStatus
101043✓10✓
100100313✓10✓
1,0001,0003,013✓10✓
10,00010,00030,013✓10✓
50,00050,000150,013✓10✓
350,000350,000> 1M−E2BIG10✓

Table 2 (PDF p. 18). Scalability and complexity limit avoidance under stock vs. our proposed verifiers (Q2). Bounded loops (a) scale linearly and decision trees (b) scale exponentially, exhausting the 1M instruction limit (−E2BIG) in the stock verifier, whereas our verifier prunes the dead path in 10 instructions across all scales.

To evaluate the scalability benefits of early dead-branch detection, we ground our evaluation in a known upstream reproducer, where the true (taken) branch of a conditional jump at instruction 8 (if w6 == 0x1 goto pc+1) is infeasible due to an empty domain intersection (tnum⁡∩u64=∅\operatorname{tnum} \cap u64 = \varnothing). We construct two parameterized microbenchmark suites (Listings 1 and 2) attached to the dead path:

11  r3 = K
12  r4 = 0
13  r4 += 1
14  r3 -= 1
15  if r3 s> 0x0 goto pc-3

Listing 1. Bounded loop (KK iterations).

11  r0 = bpf_get_prandom_u32(); // stage d in 0..N-1
12  if (r0 > 0x7fffffff) goto skip_d;
13  r7 += (1 << d);
14  skip_d: ... // repeated for N stages
15  if (r7 == 0x7fffffff) goto exit;

Listing 2. Decision tree (NN diamond stages).

Bounded Loops (K∈[10,350,000]K \in[10, 350{,}000]). The bounded loop benchmark (Listing 1) simulates iterative packet scanning along the dead path, initializing counter r3 = K and accumulator r4 = 0 and executing a 3-instruction loop body (add, sub, jsgt) until r3 reaches 0. As shown in Table 2(a), the Stock verifier unrolls every iteration symbolically in 3K+133K + 13 instructions; at K=350,000K = 350{,}000 (1,050,013 instructions), it exceeds the 1M limit and rejects the program with −E2BIG. The Proposed verifier proves tnum⁡∩u64=∅\operatorname{tnum} \cap u64 = \varnothing at the guarding jump, pruning the dead loop and verifying in a constant 10 instructions across all KK.

Branching Decision Trees (N∈[1,18]N \in[1, 18]). The decision tree benchmark (Listing 2) models a classification DAG of NN sequential diamond branches on the dead path. Each stage d∈[0,N−1]d \in[0, N - 1] branches on bpf_get_prandom_u32() and conditionally adds bit 2d2^d to accumulator r7, generating 2N2^N distinct abstract values (0≤r7<2N0 \le r7 < 2^N) that prevent state merging. As shown in Table 2(b), Stock exploration grows exponentially (O(2N)O(2^N)) from 20 instructions (N=1N = 1) to 393,224 (N=16N = 16), exhausting the 1M limit at N=18N = 18 (262,144 paths) with −E2BIG. The Proposed verifier prunes the unreachable entry branch immediately, verifying in 10 instructions across all N∈[1,18]N \in[1, 18].

Elimination of false rejections and improvements in expressivity (Q3). We next evaluate whether our approach eliminates false rejections of safe eBPF programs containing unreachable code. In Clang/LLVM-compiled programs, defensive error guards, inlined helpers, and switch

IDSafety DomainDead-Path OperationStock (Error)Proposed
P1Stack MemoryOOB stack write: *(fp - 600) = 42✗ invalid write to stack off=-600✓
P2Pointer SafetyNull dereference: *(r8 - 8) = r0✗ R8 invalid mem access ’scalar’✓
P3Register Init.Uninitialized read: r0 = r8✗ R8 !read_ok✓
P4Context Isol.OOB context: r2 = *(skb + 1000)✗ invalid bpf_context access off=1000✓
P5Helper ArgsInvalid arg: bpf_get_socket_cookie(0)✗ R1 type=scalar expected=ctx✓

caption: Verifier program acceptance across five verifier safety domains (Q3). Unsafe operations on an unreachable branch trigger false rejections in Stock (✗), whereas Proposed prunes the dead branch and accepts all five safe programs (✓).

:::

fallbacks often create branches impossible under earlier constraints. When compiler optimizations obscure correlations across checks, the Stock verifier explores the dead path, which may leave a register uninitialized, compute an out-of-bounds offset, or set a pointer to NULL before merging into shared code, causing false rejections.

To evaluate this systematically, we construct five diamond-CFG micro-benchmarks (P1–P5 in Table 3) spanning five verifier safety domains, where the live path performs valid initialization while the dead path (tnum⁡∩u64=∅\operatorname{tnum} \cap\mathbb{u64} = \varnothing) violates a safety requirement before or at the merge point. (P1) Stack memory safety: The live path assigns valid stack offset r8 = -8; the dead path assigns out-of-bounds r8 = -600 before accessing r10 + r8 at the merge point. (P2) Pointer safety: The live path sets r8 = r10; the dead path sets NULL (r8 = 0) before dereferencing *(u64*)(r8 - 8) at the merge point. (P3) Register initialization: The live path initializes r8 = 42; the dead path skips initialization and jumps to the merge point reading r0 = r8. (P4) Kernel context isolation: The dead path reads offset 1000 from skb (*(u32*)(skb + 1000)), exceeding struct __sk_buff. (P5) Helper argument safety: The live path sets r1 = skb; the dead path sets scalar r1 = 0 before calling bpf_get_socket_cookie(r1).

As shown in Table 3, the stock verifier explores the dead branch and falsely rejects all five programs, whereas our proposed verifier detects tnum⁡∩u64=∅\operatorname{tnum} \cap\mathbb{u64} = \varnothing via reg_bounds_intersect(), prunes the dead branch, and accepts all five safe programs.

Performance on real-world production applications (Q4). To confirm that our approach maintains verifier throughput and does not introduce regressions on complex real-world software, we evaluate our system across two industrial benchmark suites. (1) Linux kernel selftests, comprising 3,334 program configurations across 742 compiled ELF files. (2) Cilium complexity CI tests comprising 2,229 program configurations across 71 programs. Together, this evaluation covers 5,563 test cases and over 40.3 million verified instructions.

Soundness and regressions. Across all 5,563 configurations, the proposed verifier with our O(1)O(1) intersection check achieves a 100% verdict match against the stock kernel: in Linux kernel selftests, all 1,820 valid programs pass and all 1,514 negative tests are rejected; in Cilium, all 2,229 configurations pass, confirming zero regressions or false rejections.

Workload SuiteConfigsInsns. ExploredAvg. Time (μ\mus)
StockProposedStockProposed
Linux Kernel Selftests3,3348,718,9828,718,982 (+0.00%)20,78421,328 (+2.62%)
Cilium Complexity CI Tests2,22931,664,77831,666,493 (+0.01%)173,711175,928 (+1.28%)
Combined5,56340,383,76040,385,475 (+0.004%)82,05983,275 (+1.48%)

Table 4. Verification performance across workloads (Q4) over 5,563 BPF program configurations.

Control-flow and complexity impact. Across all 3,334 Linux Kernel Selftests, instruction complexity is unchanged (Δ=+0.00%\Delta= +0.00\%). In Cilium, complexity is identical on 88.1% of test cases (1,964 configs). On the remainder, our verifier walks 14 fewer instructions on tail_nodeport_ipv4_dsr (51 configs) and tail_policy_denied_ipv4 (18 configs) by pruning dead error-handling paths, and +11 to +29 instructions out of 205,000 (≤0.01%\le0.01\%) on cil_to_netdev: as noted by kernel developers [8], pruning an upstream branch can tighten the state cached at a merge point, requiring a few extra instructions before state equivalence pruning matches. Across all 31.66M Cilium instructions, the net complexity delta is +0.0054%.

Verification Throughput and Latency Overhead. Across more than 40.38M verified instructions, the wall-clock verification time overhead of executing reg_bounds_intersect() is negligible: +2.62% on Linux kernel selftests (median +0.43%) and +1.28% on Cilium (median +1.19%), for an overall average overhead of +1.48%.

Related Work

Circular numbers and tnums in the eBPF verifier. Building on wrapped intervals [21, 58], Zingerman recently upstreamed circular numbers (cnum64, cnum32) [59] into the eBPF verifier, replacing the four signed/unsigned interval domains with modular arcs (base, size) that wrap across zero without losing precision and add an explicit ⊥\bot sentinel (CNUM_EMPTY). However, cnum–tnum reduction still exchanges only outer bounds, missing circular arcs that fall inside interior tnum gaps (§ 4). As observed on the BPF mailing list, our framework directly decides joint emptiness for (cnum64, cnum32, tnum): cnum64 and cnum32 unify signed and unsigned bounds to directly yield Stage 1’s ≤2\le2 unsigned 64-bit intervals (I64\mathcal{I}_{64}) and ≤2\le2 unsigned 32-bit intervals (I32\mathcal{I}_{32}) (or CNUM_EMPTY). Because cnum32 still induces 2322^{32} periodic discontinuities in W64\mathbb{W}_{64}, Stages 2 and 3 of § 6 then project I64\mathcal{I}_{64} into W32\mathbb{W}_{32} and invoke tnum_step (Theorem 4.2) to decide joint emptiness in O(1)O(1) time. Kernel maintainers have adopted tnum_step in reduction to detect singleton intersections [10] and tighten interval bounds [43], while Vero [46, 47] has optimized tnum_step to synthesize a 4-line branchless strength reduction.

eBPF verification, proof-carrying frameworks, and fuzzers. Prior work in this area has formalized and verified the verifier’s tristate [53] and range analyses [3, 39, 54], compared operator precision via differential synthesis [40], and synthesized abstract transformers via CEGIS in Amurth [27, 28] and Vayou [55]. All of these frameworks assume satisfiable inputs (R∈CMR \in\mathrm{CM}), whereas we target the orthogonal problem of detecting and pruning unsatisfiable states (E∪IFE \cup IF) on infeasible paths. Userspace verifiers such as PREVAIL [22] (using Zones [30]) omit bitmasks and thus avoid interval-bitmask conflicts at the cost of bit-level precision, while proof-carrying frameworks (BCF [50], PCB [5], ExoBPF [33]) offload checks to external SMT solvers. Unlike verifier fuzzers [25, 26, 29, 48, 51] that expose invariant violations empirically, our work eliminates their root cause by construction within the existing in-kernel domains.

Reduced products and bitwise abstract domains. Astrée [17, 31] and Frama-C [18] along with LLVM’s KnownBits analysis approximate ρ∗\rho^{*} via Granger’s pairwise reduction [23] and communicate only through outer bounds [52], missing ⊥\bot whenever an interval lies inside an interior bitmask gap (§ 2). Our abstract step framework (Theorems 4.2 and 5.1) provides the first O(1)O(1) emptiness check between intervals and non-convex domains without enumerating elements. Closest in spirit are Warren’s bit-twiddling algorithms [24 Ch. 2, 4] (e.g., minOR, maxOR), which step to the next bitmask match via carry-rippling only when the starting value already satisfies the mask (z∈γ(t)z \in\gamma(t)); tnum_step generalizes this to any arbitrary starting integer z∈W64z \in\mathbb{W}_{64} in O(1)O(1) time.

Conclusion

We expose why infeasible branches trigger domain invariant violations in the Linux eBPF verifier: refining registers along dead paths creates empty-intersection (⊥\bot) states across interval and non-convex bitwise domains that violate the implicit non-emptiness precondition of domain reduction. We propose abstract step functions and tnum_step, a verified O(1)O(1) bitwise stepping operator now merged into the mainline Linux kernel. Using tnum_step to check multi-domain emptiness before branch exploration eliminates dead-branch invariant violations at their root and resolves false rejections in production workloads.

AI Use

We used Gemini 4 Argon to develop the Lean formalization of tnum_step and allwise intersection check proofs and to generate candidate test cases with a specified bound used for the evaluation. The authors claim full responsibility for the ideas, experimental design, research methodology, findings, and exposition in this paper.

Acknowledgments

We thank Yalu Cai for feedback on this draft. We also thank the Linux kernel developers and Paul Chaignon for feedback on various versions of the patches that we submitted. This material is based upon work supported in part by the National Science Foundation FMITF-Track-II grant-2422076, the eBPF Foundation’s research gift, and the GEMINI research award from Google Inc.

References

References

  1. [1]2025. Buzzer - an eBPF fuzzing toolchain. [Online, Retrieved Nov 12, 2026.] https://github.com/google/buzzer.
  2. [2]Daroc Alden. 2025. Taking BPF programs beyond one-million instructions. https://lwn.net/Articles/1017116/. LWN.net.
  3. [3]Sanjit Bhat and Hovav Shacham. 2022. Formal Verification of the Linux Kernel eBPF Verifier Range Analysis. [Online, Retrieved Nov 4, 2026.] https://sanjit-bhat.github.io/assets/pdf/ebpf-verifier-range-analysis22.pdf.
  4. [4]Daniel Borkmann. 2024. bpf: Fix reg_set_min_max corruption of fake_reg. https://lore.kernel.org/bpf/[email protected]/.
  5. [5]Yalu Cai and Santosh Nagarakatte. 2026. Proof-Carrying-BPF Programs for the eBPF Verifier. In Proceedings of the 4th Workshop on EBPF and Kernel Extensions (Prauge, Czech Republic) (eBPF’26). Association for Computing Machinery, New York, NY, USA, 9–17. doi:10.1145/3837779.3838158DOI
  6. [6]Paul Chaignon. 2025. bpf: Forget ranges when refining tnum after JSET. https://lore.kernel.org/bpf/75b3af3d315d60c1c5bfc8e3929ac69bb57d5cea.1752099022.git.paul.chaignon@gmail.com/.
  7. [7]Paul Chaignon. 2025. bpf: Improve bounds when s64 crosses sign boundary. https://lore.kernel.org/bpf/7cf24829f55ac6eee2b43e09e78fc03f43c8e5.1752934170.git.paul.chaignon@gmail.com/.
  8. [8]Paul Chaignon. 2025. bpf: Use tnums for JEQ/JNE is_branch_taken logic. https://lore.kernel.org/bpf/ba9baf9f73d51d9bce9ef13778bd39408d67db79.1755098817.git.paul.chaignon@gmail.com/.
  9. [9]Paul Chaignon. 2025. [BUG REPORT] BPF_JSET false branch leads to contradictory range bounds in verifier selftests. Linux Kernel Mailing List (lore.kernel.org/bpf). Message-ID: 75b3af3d315d60c1c5bfc8e3929ac69bb57d5cea.1752099022.git.paul.chaignon@gmail.com.
  10. [10]Paul Chaignon. 2026. bpf: Improve bounds when tnum has a single possible value. https://lore.kernel.org/bpf/[email protected]/.
  11. [11]Cilium Authors. 2026. Cilium: eBPF-based Networking, Observability, and Security. https://github.com/cilium/cilium.
  12. [12]Cilium Issue Tracker. 2025. Production node initialization failures due to verifier REG INVARIANTS VIOLATION. https://github.com/cilium/cilium/issues/44216.
  13. [13]Linux BPF Contributors. 2026. bpf: Refine u32/s32 bounds when ranges cross min/max boundary. https://lore.kernel.org/bpf/[email protected]/.
  14. [14]Agostino Cortesi, Giulia Costantini, and Pietro Ferrara. 2013. A Survey on Product Operators in Abstract Interpretation. Electronic Proceedings in Theoretical Computer Science 129 (Sept. 2013), 325–336. doi:10.4204/epcts.129.19
  15. [15]Patrick Cousot and Radhia Cousot. 1977. Abstract interpretation: a unified lattice model for static analysis of programs by construction or approximation of fixpoints. In Proceedings of the 4th ACM SIGACT-SIGPLAN Symposium on Principles of Programming Languages (Los Angeles, California) (POPL ’77). Association for Computing Machinery, New York, NY, USA, 238–252. doi:10.1145/512950.512793DOI
  16. [16]Patrick Cousot and Radhia Cousot. 1979. Systematic design of program analysis frameworks. In Proceedings of the 6th ACM SIGACT-SIGPLAN Symposium on Principles of Programming Languages (San Antonio, Texas) (POPL ’79). Association for Computing Machinery, New York, NY, USA, 269–282. doi:10.1145/567752.567778DOI
  17. [17]Patrick Cousot, Radhia Cousot, Jérôme Feret, Laurent Mauborgne, Antoine Miné, David Monniaux, and Xavier Rival. 2005. The ASTRÉE Analyzer. In Programming Languages and Systems, Mooly Sagiv (Ed.). Springer Berlin Heidelberg, Berlin, Heidelberg, 21–30.DOI
  18. [18]Pascal Cuoq, Florent Kirchner, Nikolai Kosmatov, Virgile Prevosto, Julien Signoles, and Boris Yakobowski. 2012. Frama-C. In Software Engineering and Formal Methods, George Eleftherakis, Mike Hinchey, and Mike Holcombe (Eds.). Springer Berlin Heidelberg, Berlin, Heidelberg, 233–247.DOI
  19. [19]Leonardo de Moura and Nikolaj Bjørner. 2008. Z3: An Efficient SMT Solver. In Tools and Algorithms for the Construction and Analysis of Systems, C. R. Ramakrishnan and Jakob Rehof (Eds.). Springer Berlin Heidelberg, Berlin, Heidelberg, 337–340.DOI
  20. [20]Matt Fleming. 2017. A thorough introduction to eBPF. https://lwn.net/Articles/740157/. LWN.net.
  21. [21]Graeme Gange, Jorge A. Navas, Peter Schachte, Harald Søndergaard, and Peter J. Stuckey. 2015. Interval Analysis and Machine Arithmetic: Why Signedness Ignorance Is Bliss. ACM Trans. Program. Lang. Syst. 37, 1, Article 1 (Jan. 2015), 35 pages. doi:10.1145/2651360DOI
  22. [22]Elazar Gershuni, Nadav Amit, Arie Gurfinkel, Nina Narodytska, Jorge A. Navas, Noam Rinetzky, Leonid Ryżykh, and Mooly Sagiv. 2019. Simple and Precise Static Analysis of Untrusted Linux Kernel Extensions. In Proceedings of the 40th ACM SIGPLAN Conference on Programming Language Design and Implementation (Phoenix, AZ, USA) (PLDI 2019). Association for Computing Machinery, New York, NY, USA, 1069–1084. doi:10.1145/3314221.3314590DOI
  23. [23]Philippe Granger. 1992. Improving the results of static analyses of programs by local decreasing iterations. Foundations of Software Technology and Theoretical Computer Science (FSTTCS) (1992), 68–79.DOI
  24. [24]Jr. Henry S. Warren. 2013. Hacker’s Delight (2nd ed.). Addison-Wesley Professional.
  25. [25]Hsin-Wei Hung and Ardalan Amiri Sani. 2024. BRF: Fuzzing the eBPF Runtime. Proc. ACM Softw. Eng. 1, FSE, Article 52 (July 2024), 20 pages. doi:10.1145/3643778DOI
  26. [26]Juan Xue. 2023. Linux Kernel: Vulnerability in the eBPF verifier register limit tracking. https://github.com/google/security-research/security/advisories/GHSA-hfqc-63c7-rj9f. Accessed: 2025-05-05.
  27. [27]Pankaj Kumar Kalita, Sujit Kumar Muduli, Loris D’Antoni, Thomas Reps, and Subhajit Roy. 2022. Synthesizing abstract transformers. Proc. ACM Program. Lang. 6, OOPSLA2, Article 171 (Oct. 2022), 29 pages. doi:10.1145/3563334DOI
  28. [28]Pankaj Kumar Kalita, Thomas Reps, and Subhajit Roy. 2026. Automated Abstract Transformer Synthesis for Reduced Product Domains. ACM Trans. Softw. Eng. Methodol. 35, 2, Article 48 (Jan. 2026), 41 pages. doi:10.1145/3733716DOI
  29. [29]Tao Lyu, Kumar Kartikeya Dwivedi, Thomas Bourgeat, Mathias Payer, Meng Xu, and Sanidhya Kashyap. 2025. eBPF Misbehavior Detection: Fuzzing with a Specification-Based Oracle. In Proceedings of the ACM SIGOPS 31st Symposium on Operating Systems Principles (Seoul, Republic of Korea) (SOSP ’25). Association for Computing Machinery, New York, NY, USA, 701–718. doi:10.1145/3731569.3764797
  30. [30]Antoine Miné. 2001. A New Numerical Abstract Domain Based on Difference-Bound Matrices. In Programs as Data Objects, Olivier Danvy and Andrzej Filinski (Eds.). Springer Berlin Heidelberg, Berlin, Heidelberg, 155–172.
  31. [31]Antoine Miné. 2012. Abstract domains for bit-level machine integer and floating-point operations. In WING’12 - 4th International Workshop on invariant Generation. Manchester, United Kingdom, 16. https://hal.science/hal-00748094
  32. [32]Antoine Miné. 2017. Tutorial on Static Inference of Numeric Invariants by Abstract Interpretation. Found. Trends Program. Lang. 4, 3–4 (Dec. 2017), 120–372. doi:10.1561/2500000034DOI
  33. [33]Luke Nelson, Xi Wang, and Emina Torlak. 2021. A Proof-Carrying Approach to Building Correct and Flexible BPF Verifiers. Linux Plumbers Conference (LPC). Accessed: 2026-06-17. https://lpc.events/event/11/contributions/944/.
  34. [34]Jan Onderka and Stefan Ratsch an. 2022. Fast Three-Valued Abstract Bit-Vector Arithmetic. In Verification, Model Checking, and Abstract Interpretation, Bernd Finkbeiner and Thomas Wies (Eds.). Springer International Publishing.DOI
  35. [35]John Rehger and Usit Duongsa. 2006. Deriving abstract transfer functions for analyzing embedded software. SIGPLAN Not. 41, 7, 34–43. doi:10.1145/1159974.1134657
  36. [36]Linux BPF Bug Reporter. 2025. BPF verifier missing range intersection validation in subregister bounds deduction. Linux Kernel Mailing List (lore.kernel.org/bpf). https://lore.kernel.org/bpf/[email protected]/.
  37. [37]Linux BPF Bug Reporter. 2025. REG INVARIANTS VIOLATION on BPF_JGT. Linux Kernel Mailing List (lore.kernel.org/bpf). https://syzkaller.appspot.com/bug?extid=c950cc277150935cc0b5.
  38. [38]Andrea Righi. 2026. bpf: Prevent invalid u32 bounds in __reg32_deduce_bounds(). Linux Kernel Mailing List (lore.kernel.org/bpf). https://lore.kernel.org/bpf/[email protected]/.
  39. [39]Matan Shachnai, Harishankar Vishwanathan, Srinivas Narayana, and Santosh Nagarakatte. 2025. Fixing Latent Unsound Abstract Operators in the eBPF Verifier of the Linux Kernel. In Static Analysis, Roberto Giacobazzi and Alessandra Gorla (Eds.). Springer Nature Switzerland, Cham, 386–406.
  40. [40]Matan Shachnai, Harishankar Vishwanathan, Srinivas Narayana, and Santosh Nagarakattе. 2026. Comparing the Precision of Abstract Operators in the eBPF Verifier Using Differential Synthesis. In Static Analysis, Hakjoo Oh and Yulei Sui (Eds.). Springer Nature Switzerland, Cham, 142–166.DOI
  41. [41]Shung-Hsi Yu. 2022. Model Checking (a very small part) of BPF Verifier. [Online, Retrieved Nov 12, 2026.] https://gist.github.com/shunghsiyu/a63e08e6231553d1abdece4aef29f70e.
  42. [42]SJTU Security Team. 2025. [WARNING] BPF verifier: REG INVARIANTS VIOLATION(false, reg2): range bounds violation at reg_bounds_sanity_check on 6.19-rc2. Linux Kernel Mailing List (lore.kernel.org/bpf). https://lore.kernel.org/bpf/[email protected]/.
  43. [43]Alexei Starovoitov. 2026. [PATCH bpf-next 1/8] bpf: Trunc range ends to verifier's unpriv ranges. Linux Kernel Mailing List (lore.kernel.org/bpf). https://lore.kernel.org/bpf/[email protected]/.
  44. [44]Hao Sun. 2023. [BUG] bpf: reg invariant violation after JSET. Linux Kernel Mailing List (lore.kernel.org/bpf). Message-ID: CACKBjS7–M=1Yj2PQ7MJ4N=9rnDLP36fV035o9fuAvAMKe=[email protected].
  45. [45]Hao Sun. 2023. [BUG] bpf: reg invariant violation after JSLE. Linux Kernel Mailing List (lore.kernel.org/bpf). https://lore.kernel.org/bpf/CACKBjsaecr+VjmFOHzaMb1ei5G3WMDjvp4kZVE79Bn8ib1-Rg@mail.gmail.com/.
  46. [46]Hao Sun. 2026. [PATCH bpf-next v2] bpf: Simplify tnum_step(). Linux Kernel Mailing List (lore.kernel.org/bpf). https://lore.kernel.org/bpf/[email protected]/.
  47. [47]Hao Sun, Zenan Li, Cong Li, and Zhendong Su. 2027. From Specification to Kernel Commit: Verified Code Generation on Real-World Systems. In Proceedings of the 32nd ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 1 (Heraklion, Greece) (ASPLOS ’27). Association for Computing Machinery, New York, NY, USA, 466–481. doi:10.1145/3854814.3850060DOI
  48. [48]Hao Sun and Zhendong Su. 2024. Validating the eBPF Verifier via State Embedding. In 18th USENIX Symposium on Operating Systems Design and Implementation (OSDI 24). USENIX Association, Santa Clara, CA, 615–628. https://www.usenix.org/conference/osdi24/presentation/sun-hao
  49. [49]Hao Sun and Zhendong Su. 2025. Approximation enforced execution of untrusted linux kernel extensions. In USENIX Security Symposium.DOI
  50. [50]Hao Sun and Zhendong Su. 2025. Prove It to the Kernel: Precise Extension Analysis via Proof-Guided Abstraction Refinement. In Proceedings of the ACM SIGOPS 31st Symposium on Operating Systems Principles (Seoul, Republic of Korea) (SOSP ’25). Association for Computing Machinery, New York, NY, USA, 736–751. doi:10.1145/3731569.3764796DOI
  51. [51]Hao Sun, Yiru Xu, Jianzhong Liu, Yuheng Shen, Nian Guan, and Yu Jiang. 2024. Finding Correctness Bugs in eBPF Verifier with Structured and Sanitized Program. In Proceedings of the Nineteenth European Conference on Computer Systems (Athens, Greece) (EuroSys ’24). Association for Computing Machinery, New York, NY, USA, 689–703. doi:10.1145/3627703.3629562DOI
  52. [52]Jubi Taneja, Zhengyang Liu, and John Regehr. 2020. Testing static analyses for precision and soundness. In Proceedings of the 18th ACM/IEEE International Symposium on Code Generation and Optimization (San Diego, CA, USA) (CGO ’20). Association for Computing Machinery, New York, NY, USA, 81–93. doi:10.1145/3368826.3377927DOI
  53. [53]Harishankar Vishwanathan, Matan Shachnai, Srinivas Narayana, and Santosh Nagarakatte. 2022. Sound, precise, and fast abstract interpretation with tristate numbers. In Proceedings of the 20th IEEE/ACM International Symposium on Code Generation and Optimization (Virtual Event, Republic of Korea) (CGO ’22). IEEE Press, 254–265. doi:10.1109/CGO53902.2022.9741267DOI
  54. [54]Harishankar Vishwanathan, Matan Shachnai, Srinivas Narayana, and Santosh Nagarakatte. 2023. Verifying the Verifier: eBPF Range Analysis Verification. In Computer Aided Verification: 35th International Conference, CAV 2023, Paris, France, July 17–22, 2023, Proceedings, Part III (Paris, France). Springer-Verlag, Berlin, Heidelberg, 226–251.
  55. [55]Harishankar Vishwanathan, Matan Shachnai, Srinivas Narayana, and Santosh Nagarakatte. 2025. Automatic Synthesis of Abstract Operators for eBPF. In Proceedings of the 3rd Workshop on EBPF and Kernel Extensions (Coimbra, Portugal) (eBPF ’25). Association for Computing Machinery, New York, NY, USA, 15–21. doi:10.1145/3748355.3748361DOI
  56. [56]KaFai Wan. 2025. bpf: Fix tnum_over_lap to check for zero mask first. https://lore.kernel.org/bpf/[email protected]/. Patch ID: [email protected].
  57. [57]KaFai Wan. 2025. bpf: Skip bounds adjustment for conditional jumps on same scalar register. https://lore.kernel.org/bpf/[email protected]/.
  58. [58]Shung-Hsi Yu. 2023. Unifying signed and unsigned min/max tracking. Linux Kernel Mailing List (lore.kernel.org/bpf). https://lore.kernel.org/bpf/ZTZxoDJJbX9mrQ9w@u94a/.
  59. [59]Eduard Zingerman. 2026. [PATCH bpf-next v2 0/4] bpf: replace min/max fields with struct cnum{32,64}. Linux Kernel Mailing List (lore.kernel.org/bpf). https://lore.kernel.org/bpf/20260424-cn​​[email protected]/.

Paper details

vlnc:W_qxdhanyg
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 10

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Gemini 4 Argon (bare)

View statement
Looking for related papers…
Contents