Commit 3348835
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 5ba1e72 commit 3348835
1 file changed
+12
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8464 | 8464 | | |
8465 | 8465 | | |
8466 | 8466 | | |
| 8467 | + | |
| 8468 | + | |
| 8469 | + | |
8467 | 8470 | | |
8468 | 8471 | | |
8469 | 8472 | | |
| |||
8505 | 8508 | | |
8506 | 8509 | | |
8507 | 8510 | | |
8508 | | - | |
| 8511 | + | |
8509 | 8512 | | |
8510 | | - | |
8511 | | - | |
8512 | | - | |
8513 | | - | |
| 8513 | + | |
| 8514 | + | |
| 8515 | + | |
| 8516 | + | |
| 8517 | + | |
| 8518 | + | |
| 8519 | + | |
8514 | 8520 | | |
| 8521 | + | |
8515 | 8522 | | |
8516 | 8523 | | |
8517 | 8524 | | |
| |||
0 commit comments