Commit 329a672
Alexei Starovoitov
Merge branch 'bpf-verifier-range-computation-improvements'
Cupertino Miranda says:
====================
bpf/verifier: range computation improvements
Hi everyone,
This is what I hope to be the last version. :)
Regards,
Cupertino
Changes from v1:
- Reordered patches in the series.
- Fix refactor to be acurate with original code.
- Fixed other mentioned small problems.
Changes from v2:
- Added a patch to replace mark_reg_unknowon for __mark_reg_unknown in
the context of range computation.
- Reverted implementation of refactor to v1 which used a simpler
boolean return value in check function.
- Further relaxed MUL to allow it to still compute a range when neither
of its registers is a known value.
- Simplified tests based on Eduards example.
- Added messages in selftest commits.
Changes from v3:
- Improved commit message of patch nr 1.
- Coding style fixes.
- Improve XOR and OR tests.
- Made function calls to pass struct bpf_reg_state pointer instead.
- Improved final code as a last patch.
Changes from v4:
- Merged patch nr 7 in 2.
====================
Link: https://lore.kernel.org/r/20240506141849.185293-1-cupertino.miranda@oracle.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>2 files changed
Lines changed: 104 additions & 65 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13878 | 13878 | | |
13879 | 13879 | | |
13880 | 13880 | | |
| 13881 | + | |
| 13882 | + | |
| 13883 | + | |
| 13884 | + | |
| 13885 | + | |
| 13886 | + | |
| 13887 | + | |
| 13888 | + | |
| 13889 | + | |
| 13890 | + | |
| 13891 | + | |
| 13892 | + | |
| 13893 | + | |
| 13894 | + | |
| 13895 | + | |
| 13896 | + | |
| 13897 | + | |
| 13898 | + | |
| 13899 | + | |
| 13900 | + | |
| 13901 | + | |
| 13902 | + | |
| 13903 | + | |
| 13904 | + | |
| 13905 | + | |
| 13906 | + | |
| 13907 | + | |
| 13908 | + | |
| 13909 | + | |
| 13910 | + | |
| 13911 | + | |
| 13912 | + | |
| 13913 | + | |
| 13914 | + | |
| 13915 | + | |
| 13916 | + | |
| 13917 | + | |
| 13918 | + | |
| 13919 | + | |
| 13920 | + | |
13881 | 13921 | | |
13882 | 13922 | | |
13883 | 13923 | | |
| |||
13887 | 13927 | | |
13888 | 13928 | | |
13889 | 13929 | | |
13890 | | - | |
13891 | 13930 | | |
13892 | | - | |
13893 | | - | |
13894 | | - | |
13895 | | - | |
13896 | | - | |
13897 | | - | |
13898 | 13931 | | |
13899 | 13932 | | |
13900 | 13933 | | |
13901 | | - | |
13902 | | - | |
13903 | | - | |
13904 | | - | |
13905 | | - | |
13906 | | - | |
13907 | | - | |
13908 | | - | |
13909 | | - | |
13910 | | - | |
13911 | | - | |
13912 | | - | |
13913 | | - | |
13914 | | - | |
13915 | | - | |
13916 | | - | |
13917 | | - | |
13918 | | - | |
13919 | | - | |
13920 | | - | |
13921 | | - | |
13922 | | - | |
13923 | | - | |
13924 | | - | |
13925 | | - | |
13926 | | - | |
13927 | | - | |
13928 | | - | |
13929 | | - | |
13930 | | - | |
13931 | | - | |
13932 | | - | |
13933 | | - | |
13934 | | - | |
13935 | | - | |
13936 | | - | |
| 13934 | + | |
13937 | 13935 | | |
13938 | 13936 | | |
13939 | 13937 | | |
| |||
13990 | 13988 | | |
13991 | 13989 | | |
13992 | 13990 | | |
13993 | | - | |
13994 | | - | |
13995 | | - | |
13996 | | - | |
13997 | | - | |
13998 | | - | |
13999 | | - | |
14000 | 13991 | | |
14001 | 13992 | | |
14002 | 13993 | | |
14003 | 13994 | | |
14004 | 13995 | | |
14005 | 13996 | | |
14006 | | - | |
14007 | | - | |
14008 | | - | |
14009 | | - | |
14010 | | - | |
14011 | | - | |
14012 | | - | |
14013 | 13997 | | |
14014 | 13998 | | |
14015 | 13999 | | |
14016 | 14000 | | |
14017 | 14001 | | |
14018 | 14002 | | |
14019 | | - | |
14020 | | - | |
14021 | | - | |
14022 | | - | |
14023 | | - | |
14024 | | - | |
14025 | | - | |
14026 | 14003 | | |
14027 | 14004 | | |
14028 | 14005 | | |
14029 | 14006 | | |
14030 | 14007 | | |
14031 | 14008 | | |
14032 | | - | |
14033 | 14009 | | |
14034 | 14010 | | |
14035 | 14011 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
888 | 951 | | |
889 | 952 | | |
890 | 953 | | |
| |||
0 commit comments