Commit b658bbb
committed
bpf: Rework ptr_limit into alu_limit and add common error path
Small refactor with no semantic changes in order to consolidate the max
ptr_limit boundary check.
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: John Fastabend <[email protected]>
Acked-by: Alexei Starovoitov <[email protected]>1 parent 24c109b commit b658bbb
1 file changed
Lines changed: 13 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5858 | 5858 | | |
5859 | 5859 | | |
5860 | 5860 | | |
5861 | | - | |
| 5861 | + | |
5862 | 5862 | | |
5863 | 5863 | | |
5864 | 5864 | | |
5865 | 5865 | | |
5866 | | - | |
| 5866 | + | |
5867 | 5867 | | |
5868 | 5868 | | |
5869 | 5869 | | |
| |||
5880 | 5880 | | |
5881 | 5881 | | |
5882 | 5882 | | |
5883 | | - | |
| 5883 | + | |
5884 | 5884 | | |
5885 | | - | |
5886 | | - | |
| 5885 | + | |
| 5886 | + | |
5887 | 5887 | | |
5888 | 5888 | | |
5889 | 5889 | | |
5890 | | - | |
| 5890 | + | |
5891 | 5891 | | |
5892 | 5892 | | |
5893 | | - | |
| 5893 | + | |
5894 | 5894 | | |
5895 | | - | |
| 5895 | + | |
5896 | 5896 | | |
5897 | 5897 | | |
5898 | 5898 | | |
| 5899 | + | |
| 5900 | + | |
| 5901 | + | |
| 5902 | + | |
| 5903 | + | |
5899 | 5904 | | |
5900 | 5905 | | |
5901 | 5906 | | |
| |||
0 commit comments