bpf: Allow doing stack read with size larger than the earlier spilled reg
Status from this message: This series was applied to bpf/bpf.git (master)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | bpf: Do not reject when the stack read size is different from the tracked scalar sizekernel/ | +6 | 2 replies | Applied |
| 2/2 | bpf: selftest: verifier test on refill from a smaller spilltools/ | +17 | 1 reply | Applied |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Hengqi Chen | Yonghong Song |
|---|---|---|
| 1/2 | T-b | A-b |
| 2/2 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH bpf-next 0/2] bpf: Allow doing stack read with size larger than the earlier spilled reg
This set fixes an issue that the verifier rejects a u64 stack read after an earlier u32 scalar spill. It is caused by the earlier commit that allows tracking the spilled u32 scalar reg.
Martin KaFai Lau (2):
bpf: Do not reject when the stack read size is different from the
tracked scalar size
bpf: selftest: verifier test on refill from a smaller spill
kernel/bpf/verifier.c | 18 ++++++------------ .../selftests/bpf/verifier/spill_fill.c | 17 +++++++++++++++++ 2 files changed, 23 insertions(+), 12 deletions(-)
Signature · 1 line
2.30.2