Fix for BPF devmap percpu allocation splat
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 15 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | mm, percpu: add support for __GFP_NOWARN flagmm/ | +10 | 1 reply | |
| 2/3 | bpf: fix splat for illegal devmap percpu allocationkernel/ | +3 | 2 replies | |
| 3/3 | bpf: do not test for PCPU_MIN_UNIT_SIZE before percpu allocationskernel/ kernel/ | +1 | 2 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Alexei Starovoitov | John Fastabend |
|---|---|---|
| 1/3 | A-b | |
| 2/3 | A-b | A-b |
| 3/3 | A-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net 0/3] Fix for BPF devmap percpu allocation splat
The set fixes a splat in devmap percpu allocation when we alloc the flush bitmap. Patch 1 is a prerequisite for the fix in patch 2, patch 1 is rather small, so if this could be routed via -net, for example, with Tejun's Ack that would be good. Patch 3 gets rid of remaining PCPU_MIN_UNIT_SIZE checks, which are percpu allocator internals and should not be used.
Thanks!
Daniel Borkmann (3):
mm, percpu: add support for __GFP_NOWARN flag
bpf: fix splat for illegal devmap percpu allocation
bpf: do not test for PCPU_MIN_UNIT_SIZE before percpu allocations
kernel/bpf/arraymap.c | 2 +- kernel/bpf/devmap.c | 5 +++-- kernel/bpf/hashtab.c | 4 ---- mm/percpu.c | 15 ++++++++++----- 4 files changed, 14 insertions(+), 12 deletions(-)
Signature · 1 line
1.9.3