Commit 270386d
bpf: verifier: centralize const dynptr check in unmark_stack_slots_dynptr()
Move the const dynptr check into unmark_stack_slots_dynptr() so callers
don’t have to duplicate it. This puts the validation next to the code
that manipulates dynptr stack slots and allows upcoming changes to reuse
it directly.
Signed-off-by: Mykyta Yatsenko <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Acked-by: Eduard Zingerman <[email protected]>1 parent 486ef88 commit 270386d
1 file changed
+9
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
828 | 828 | | |
829 | 829 | | |
830 | 830 | | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
831 | 840 | | |
832 | 841 | | |
833 | 842 | | |
| |||
11514 | 11523 | | |
11515 | 11524 | | |
11516 | 11525 | | |
11517 | | - | |
11518 | | - | |
11519 | | - | |
11520 | | - | |
11521 | 11526 | | |
11522 | | - | |
11523 | | - | |
11524 | | - | |
11525 | | - | |
11526 | 11527 | | |
11527 | 11528 | | |
11528 | 11529 | | |
| |||
0 commit comments