Skip to content

Fix potential verification failure for opensnoop.py#5364

Merged
yonghong-song merged 1 commit intomasterfrom
yhs_dev2
Jul 13, 2025
Merged

Fix potential verification failure for opensnoop.py#5364
yonghong-song merged 1 commit intomasterfrom
yhs_dev2

Conversation

@yonghong-song
Copy link
Collaborator

When testing #5362, I found the following verification failure for fentry progs:

  ...
  44: (b7) r0 = 0                       ; R0_w=0 refs=3
  45: (95) exit
  Unreleased reference id=3 alloc_insn=10

The reason is missing ringbuf_discard for certain conditionals for fentry progs since it used ringbuf_reserve. Adding ringbuf_discard in proper places can fix verification failure.

When testing #5362,
I found the following verification failure for fentry progs:

  ...
  44: (b7) r0 = 0                       ; R0_w=0 refs=3
  45: (95) exit
  Unreleased reference id=3 alloc_insn=10

The reason is missing `ringbuf_discard` for certain conditionals
for fentry progs since it used `ringbuf_reserve`. Adding
`ringbuf_discard` in proper places can fix verification failure.
@yonghong-song yonghong-song merged commit 5640952 into master Jul 13, 2025
2 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant