Commit d320d7b
bpf: verifier: refactor bpf_wq handling
Move bpf_wq map-field validation into the common helper by adding a
BPF_WORKQUEUE case that maps to record->wq_off, and switch
process_wq_func() to use it instead of doing its own offset math.
Fix handling maps with no BTF and non-constant offsets for the bpf_wq.
This de-duplicates logic with other internal structs (task_work, timer),
keeps error reporting consistent, and makes future changes to the layout
handling centralized.
Fixes: d940c9b ("bpf: add support for KF_ARG_PTR_TO_WORKQUEUE")
Signed-off-by: Mykyta Yatsenko <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Acked-by: Eduard Zingerman <[email protected]>1 parent c9241b4 commit d320d7b
1 file changed
+12
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8479 | 8479 | | |
8480 | 8480 | | |
8481 | 8481 | | |
| 8482 | + | |
| 8483 | + | |
| 8484 | + | |
8482 | 8485 | | |
8483 | 8486 | | |
8484 | 8487 | | |
| |||
8520 | 8523 | | |
8521 | 8524 | | |
8522 | 8525 | | |
8523 | | - | |
| 8526 | + | |
8524 | 8527 | | |
8525 | | - | |
8526 | | - | |
8527 | | - | |
8528 | | - | |
| 8528 | + | |
| 8529 | + | |
| 8530 | + | |
| 8531 | + | |
| 8532 | + | |
| 8533 | + | |
| 8534 | + | |
8529 | 8535 | | |
| 8536 | + | |
8530 | 8537 | | |
8531 | 8538 | | |
8532 | 8539 | | |
| |||
0 commit comments