#947/p ringbuf: invalid reservation offset 1 FAIL in ubuntu_bpf/test_verifier for J-oem-5.17

Bug #1982831 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned

Bug Description

With the test build failure fixed (bug 1948831), the ubuntu_bpf test on J-oem-5.17 is now failing with:

 #947/u ringbuf: invalid reservation offset 1 SKIP
 #947/p ringbuf: invalid reservation offset 1 FAIL
 Unexpected verifier log!
 EXP: dereference of modified alloc_mem ptr R1
 RES:
 FAIL
 Unexpected error message!
     EXP: dereference of modified alloc_mem ptr R1
     RES: helper wants pointer to allocated memory
 verification time 10 usec
 stack depth 8
 processed 14 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0

 helper wants pointer to allocated memory
 verification time 10 usec
 stack depth 8
 processed 14 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0
 #948/u ringbuf: invalid reservation offset 2 SKIP

It also failing with bug #1973366 - sk_fullsock(skb->sk): sk->dst_port [load 2nd byte] FAIL

Summary: 1313 PASSED, 631 SKIPPED, 2 FAILED

Po-Hsu Lin (cypressyew)
summary: - #947/p ringbuf: invalid reservation offset 1 FAIL in ubuntu_bpf for
- J-oem-5.17
+ #947/p ringbuf: invalid reservation offset 1 FAIL in
+ ubuntu_bpf/test_verifier for J-oem-5.17
Po-Hsu Lin (cypressyew)
tags: added: sru-20230130
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This is because the test is expecting the following error message when this test fails:
"dereference of modified alloc_mem ptr R1"

But we are using "helper wants pointer to allocated memory" from SAUCE patch 33623ca13a "UBUNTU: SAUCE: bpf: prevent helper argument PTR_TO_ALLOC_MEM to have offset other than 0" (bug 1956585)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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