Commit 2083bb9
committed
selftests/bpf: Add tests with stack ptr register in conditional jmp
JIRA: https://issues.redhat.com/browse/RHEL-110274
commit 5ffb537
Author: Yonghong Song <yonghong.song@linux.dev>
Date: Fri May 23 21:13:40 2025 -0700
selftests/bpf: Add tests with stack ptr register in conditional jmp
Add two tests:
- one test has 'rX <op> r10' where rX is not r10, and
- another test has 'rX <op> rY' where rX and rY are not r10
but there is an early insn 'rX = r10'.
Without previous verifier change, both tests will fail.
Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250524041340.4046304-1-yonghong.song@linux.dev
Signed-off-by: Viktor Malik <vmalik@redhat.com>1 parent 217714b commit 2083bb9
File tree
2 files changed
+58
-2
lines changed- kernel/bpf
- tools/testing/selftests/bpf/progs
2 files changed
+58
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15556 | 15556 | | |
15557 | 15557 | | |
15558 | 15558 | | |
| 15559 | + | |
| 15560 | + | |
15559 | 15561 | | |
15560 | 15562 | | |
15561 | 15563 | | |
| |||
15565 | 15567 | | |
15566 | 15568 | | |
15567 | 15569 | | |
| 15570 | + | |
| 15571 | + | |
| 15572 | + | |
15568 | 15573 | | |
15569 | 15574 | | |
15570 | | - | |
15571 | | - | |
15572 | 15575 | | |
15573 | 15576 | | |
15574 | 15577 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
133 | 186 | | |
0 commit comments