Commit 9d2be44
bpf: Reuse canonical string formatter for ctx errs
The array "reg_type_str" provides canonical formatting of register
types, however a couple of places would previously check whether a
register represented the context and write the name "context" directly.
An upcoming commit will add another pointer type to these statements, so
to provide more accurate error messages in the verifier, update these
error messages to use "reg_type_str" instead.
Signed-off-by: Joe Stringer <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>1 parent aad2eea commit 9d2be44
File tree
2 files changed
+8
-9
lines changed- kernel/bpf
- tools/testing/selftests/bpf
2 files changed
+8
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1763 | 1763 | | |
1764 | 1764 | | |
1765 | 1765 | | |
1766 | | - | |
1767 | | - | |
| 1766 | + | |
1768 | 1767 | | |
1769 | 1768 | | |
1770 | 1769 | | |
| |||
4871 | 4870 | | |
4872 | 4871 | | |
4873 | 4872 | | |
4874 | | - | |
4875 | | - | |
| 4873 | + | |
| 4874 | + | |
4876 | 4875 | | |
4877 | 4876 | | |
4878 | 4877 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3276 | 3276 | | |
3277 | 3277 | | |
3278 | 3278 | | |
3279 | | - | |
| 3279 | + | |
3280 | 3280 | | |
3281 | 3281 | | |
3282 | 3282 | | |
| |||
3288 | 3288 | | |
3289 | 3289 | | |
3290 | 3290 | | |
3291 | | - | |
| 3291 | + | |
3292 | 3292 | | |
3293 | 3293 | | |
3294 | 3294 | | |
| |||
5266 | 5266 | | |
5267 | 5267 | | |
5268 | 5268 | | |
5269 | | - | |
| 5269 | + | |
5270 | 5270 | | |
5271 | 5271 | | |
5272 | 5272 | | |
| |||
5281 | 5281 | | |
5282 | 5282 | | |
5283 | 5283 | | |
5284 | | - | |
| 5284 | + | |
5285 | 5285 | | |
5286 | 5286 | | |
5287 | 5287 | | |
| |||
12230 | 12230 | | |
12231 | 12231 | | |
12232 | 12232 | | |
12233 | | - | |
| 12233 | + | |
12234 | 12234 | | |
12235 | 12235 | | |
12236 | 12236 | | |
| |||
0 commit comments