Commit b282131
Alexei Starovoitov
Merge branch 'bpf-add-bitwise-tracking-for-bpf_end'
Tianci Cao says:
====================
bpf: Add bitwise tracking for BPF_END
Add bitwise tracking (tnum analysis) for BPF_END (`bswap(16|32|64)`,
`be(16|32|64)`, `le(16|32|64)`) operations. Please see commit log of
1/2 for more details.
v3:
- Resend to fix a version control error in v2.
- The rest of the changes are identical to v2.
v2 (incorrect): https://lore.kernel.org/bpf/20260204091146.52447-1-ziye@zju.edu.cn/
- Refactored selftests using BSWAP_RANGE_TEST macro to eliminate code
duplication and improve maintainability. (Eduard)
- Simplified test names. (Eduard)
- Reduced excessive comments in test cases. (Eduard)
- Added more comments to explain BPF_END's special handling of zext_32_to_64.
v1: https://lore.kernel.org/bpf/20260202133536.66207-1-ziye@zju.edu.cn/
====================
Link: https://patch.msgid.link/20260204111503.77871-1-ziye@zju.edu.cn
Signed-off-by: Alexei Starovoitov <ast@kernel.org>4 files changed
Lines changed: 121 additions & 3 deletions
File tree
- include/linux
- kernel/bpf
- tools/testing/selftests/bpf/progs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15832 | 15832 | | |
15833 | 15833 | | |
15834 | 15834 | | |
| 15835 | + | |
| 15836 | + | |
| 15837 | + | |
| 15838 | + | |
| 15839 | + | |
| 15840 | + | |
| 15841 | + | |
| 15842 | + | |
| 15843 | + | |
| 15844 | + | |
| 15845 | + | |
| 15846 | + | |
| 15847 | + | |
| 15848 | + | |
| 15849 | + | |
| 15850 | + | |
| 15851 | + | |
| 15852 | + | |
| 15853 | + | |
| 15854 | + | |
| 15855 | + | |
| 15856 | + | |
| 15857 | + | |
| 15858 | + | |
| 15859 | + | |
| 15860 | + | |
| 15861 | + | |
| 15862 | + | |
| 15863 | + | |
| 15864 | + | |
| 15865 | + | |
| 15866 | + | |
| 15867 | + | |
| 15868 | + | |
| 15869 | + | |
| 15870 | + | |
| 15871 | + | |
| 15872 | + | |
| 15873 | + | |
| 15874 | + | |
| 15875 | + | |
| 15876 | + | |
15835 | 15877 | | |
15836 | 15878 | | |
15837 | 15879 | | |
| |||
15858 | 15900 | | |
15859 | 15901 | | |
15860 | 15902 | | |
| 15903 | + | |
15861 | 15904 | | |
15862 | 15905 | | |
15863 | 15906 | | |
| |||
16047 | 16090 | | |
16048 | 16091 | | |
16049 | 16092 | | |
| 16093 | + | |
| 16094 | + | |
| 16095 | + | |
16050 | 16096 | | |
16051 | 16097 | | |
16052 | 16098 | | |
16053 | 16099 | | |
16054 | | - | |
16055 | | - | |
| 16100 | + | |
| 16101 | + | |
| 16102 | + | |
| 16103 | + | |
| 16104 | + | |
| 16105 | + | |
| 16106 | + | |
| 16107 | + | |
| 16108 | + | |
| 16109 | + | |
16056 | 16110 | | |
16057 | 16111 | | |
16058 | 16112 | | |
| |||
16232 | 16286 | | |
16233 | 16287 | | |
16234 | 16288 | | |
16235 | | - | |
| 16289 | + | |
16236 | 16290 | | |
16237 | 16291 | | |
16238 | 16292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
51 | 94 | | |
52 | 95 | | |
53 | 96 | | |
| |||
0 commit comments