[PATCH v3 0/5] bpf: fix gotol with a signed offset and fallout

Project / Subsystem

binutils / bpf

Date

2026-09-07

Proposer

Vineet Gupta <vineet.gupta@linux.dev>

Source type

public_inbox

Consensus

Proposed

Sentiment

—/10

Technical tradeoffs

  • • Fixes critical bugs leading to runtime failures in libbpf.
  • • Improves assembler robustness and accuracy.
  • • Introduces a new parsing specifier (`%t`) for stricter tokenization.

All attributes

project
binutils
subsystem
bpf
patch_id
—
discussion_id
20260907091102.2595057-1-vineet.gupta@linux.dev
source_type
public_inbox
title
[PATCH v3 0/5] bpf: fix gotol with a signed offset and fallout
headline
BPF gas: Fix `gotol` misassembly with signed offset
tldr
BPF gas `gotol` instruction now correctly assembles signed offsets, resolving libbpf load-time failures.
proposer
Vineet Gupta <vineet.gupta@linux.dev>
consensus
Proposed
outcome
proposed
sentiment_score
—
technical_tradeoffs
  • • Fixes critical bugs leading to runtime failures in libbpf.
  • • Improves assembler robustness and accuracy.
  • • Introduces a new parsing specifier (`%t`) for stricter tokenization.
series_id
binutils:bpf: fix gotol with a signed offset and fallout
series_role
cover
series_parts
[]
tags
  • • BPF
  • • gas
  • • assembler
  • • parsing
  • • libbpf
bugzilla_url
—
date
2026-09-07T00:00:00.000Z

[PATCH v3 0/5] bpf: fix gotol with a signed offset and fallout

This patch series addresses an issue in the BPF assembler (gas) where the gotol instruction was silently misassembled when given a signed offset. This led to errors during libbpf loading. The series introduces a more robust parsing mechanism using the %t token boundary specifier to correctly distinguish gotol from goto, especially in contexts with flexible spacing. It also includes fixes for related issues like testing gotol in compound conditional jumps and improving ISA spec diagnostics.