Skip to content

bpf: Minor fixes for non-preallocated memory

Yafang Shao bpf linux-mm 3 versions – Applied

Status from this message: Applied to bpf-next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 7 repliesApplied
  2. v22 patches 17 repliesSuperseded
  3. v14 patches 9 repliesSuperseded

Changes in v3 from the cover letter

- use GFP_NOWAIT instead and update commit log (Shakeel)
- exclude some attach types for BPF_PROG_TYPE_TRACING (Alexei)

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2bpf: Make non-preallocated allocation low prioritykernel/bpf/devmap.c kernel/bpf/hashtab.c kernel/bpf/local_storage.c +1 more+6 -63 replies
2/2bpf: Warn on non-preallocated case for missed trace typeskernel/bpf/verifier.c+13 -54 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchShakeel Butt
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH bpf-next v3 0/2] bpf: Minor fixes for non-preallocated memory

When I was implementing bpf recharge[1], I found some other issues. These issues are independent, so I send them separately.

[1]. https://lore.kernel.org/bpf/[email protected]/

v3:
- use GFP_NOWAIT instead and update commit log (Shakeel)
- exclude some attach types for BPF_PROG_TYPE_TRACING (Alexei)

v2:
- fix GFP_HIGH consistently over the bpf code. (Daniel, Roman)
- get rid of an error patch (Hao)

Yafang Shao (2):
bpf: Make non-preallocated allocation low priority
bpf: Warn on non-preallocated case for missed trace types

 kernel/bpf/devmap.c        |  2 +-
 kernel/bpf/hashtab.c       |  6 +++---
 kernel/bpf/local_storage.c |  2 +-
 kernel/bpf/lpm_trie.c      |  2 +-
 kernel/bpf/verifier.c      | 18 +++++++++++++-----
 5 files changed, 19 insertions(+), 11 deletions(-)
Signature · 1 line
2.17.1