jammy:linux bpf selftest do not build

Bug #2076334 reported by Roxana Nicolescu
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned
Jammy
Fix Committed
High
Roxana Nicolescu

Bug Description

SRU Justification:

[Impact]

* bpf selftest do not compile. See the error below.
Commit "bpf: Allow reads from uninit stack" introduced the usage of '__failure',
without bringing the commit where this is defined.
This prevents us from running other tests and it also affects the netselfts because they are dependant on it.

Logs:

17242 progs/test_global_func10.c:24:17: error: expected parameter declarator
17243 __failure __msg("invalid indirect access to stack")
17244 ^
17245 progs/test_global_func10.c:24:17: error: expected ')'
17246 progs/test_global_func10.c:24:16: note: to match this '('
17247 __failure __msg("invalid indirect access to stack")
17248 ^
17249 progs/test_global_func10.c:24:52: error: expected ';' after top level declarator
17250 __failure __msg("invalid indirect access to stack")
17251 ^

[Fix]

* While discussing with upstream a revert of this commit will be the fix for now.

[Test Plan]

* Revert, build the kernel, run the ubuntu_bpf_selftests and see it they build.

Changed in linux (Ubuntu Jammy):
importance: Undecided → High
status: New → In Progress
assignee: nobody → Roxana Nicolescu (roxanan)
Changed in linux (Ubuntu):
status: New → Invalid
description: updated
summary: - jammy:linux bpfk selftest do not build
+ jammy:linux bpf selftest do not build
Changed in linux (Ubuntu Jammy):
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.