Commit 52eecfb
bpf/verifier: do not limit maximum direct offset into arena map
The verifier currently limits direct offsets into a map to 512MiB
to avoid overflow during pointer arithmetic. However, this prevents
arena maps from using direct addressing instructions to access data
at the end of > 512MiB arena maps. This is necessary when moving
arena globals to the end of the arena instead of the front.
Refactor the verifier code to remove the offset calculation during
direct value access calculations. This is possible because the only
two map types that implement .map_direct_value_addr() are arrays and
arenas, and they both do their own internal checks to ensure the
offset is within bounds.
Signed-off-by: Emil Tsalapatis <[email protected]>1 parent 750a0d8 commit 52eecfb
1 file changed
+0
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21132 | 21132 | | |
21133 | 21133 | | |
21134 | 21134 | | |
21135 | | - | |
21136 | | - | |
21137 | | - | |
21138 | | - | |
21139 | | - | |
21140 | 21135 | | |
21141 | 21136 | | |
21142 | 21137 | | |
| |||
0 commit comments