Commit a640de4
committed
Merge branch 'bpf-simplify-checking-size-of-helper-accesses'
Andrei Matei says:
====================
bpf: Simplify checking size of helper accesses
v3->v4:
- kept only the minimal change, undoing debatable changes (Andrii)
- dropped the second patch from before, with changes to the error
message (Andrii)
- extracted the new test into a separate patch (Andrii)
- added Acked by Andrii
v2->v3:
- split the error-logging function to a separate patch (Andrii)
- make the error buffers smaller (Andrii)
- include size of memory region for PTR_TO_MEM (Andrii)
- nits from Andrii and Eduard
v1->v2:
- make the error message include more info about the context of the
zero-sized access (Andrii)
====================
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Andrii Nakryiko <[email protected]>File tree
3 files changed
+46
-11
lines changed- kernel/bpf
- tools/testing/selftests/bpf/progs
3 files changed
+46
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7279 | 7279 | | |
7280 | 7280 | | |
7281 | 7281 | | |
7282 | | - | |
7283 | | - | |
7284 | | - | |
7285 | | - | |
7286 | | - | |
7287 | | - | |
| 7282 | + | |
| 7283 | + | |
| 7284 | + | |
| 7285 | + | |
7288 | 7286 | | |
7289 | 7287 | | |
7290 | 7288 | | |
| |||
Lines changed: 41 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
92 | 97 | | |
93 | 98 | | |
94 | | - | |
| 99 | + | |
95 | 100 | | |
96 | 101 | | |
97 | 102 | | |
| |||
113 | 118 | | |
114 | 119 | | |
115 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
116 | 153 | | |
117 | 154 | | |
118 | 155 | | |
| |||
221 | 258 | | |
222 | 259 | | |
223 | 260 | | |
224 | | - | |
| 261 | + | |
225 | 262 | | |
226 | 263 | | |
227 | 264 | | |
| |||
386 | 423 | | |
387 | 424 | | |
388 | 425 | | |
389 | | - | |
| 426 | + | |
390 | 427 | | |
391 | 428 | | |
392 | 429 | | |
| |||
556 | 593 | | |
557 | 594 | | |
558 | 595 | | |
559 | | - | |
| 596 | + | |
560 | 597 | | |
561 | 598 | | |
562 | 599 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
0 commit comments