Skip to content

bpf: Adjustments for four function implementations

Markus Elfring bpf kernel-janitors lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5bpf: Improve exception handling in bpf_struct_ops_link_create()kernel/bpf/bpf_struct_ops.c+5 -40 replies
2/5bpf: Move an assignment for the variable “st_map” in bpf_struct_ops_link_create()kernel/bpf/bpf_struct_ops.c+1 -20 replies
3/5bpf: Improve exception handling in bpf_core_apply()kernel/bpf/btf.c+5 -30 replies
4/5bpf: Return directly after a failed bpf_map_kmalloc_node() in bpf_cgroup_storage_alloc()kernel/bpf/local_storage.c+1 -10 replies
5/5bpf: Improve exception handling in trie_update_elem()kernel/bpf/lpm_trie.c+11 -130 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] bpf: Adjustments for four function implementations

From: Markus Elfring <[email protected]>
Date: Sat, 30 Dec 2023 20:51:23 +0100

A few update suggestions were taken into account
from static source code analysis.

Markus Elfring (5):
Improve exception handling in bpf_struct_ops_link_create() Move an assignment for the variable “st_map”
in bpf_struct_ops_link_create()
Improve exception handling in bpf_core_apply() Return directly after a failed bpf_map_kmalloc_node()
in bpf_cgroup_storage_alloc()
Improve exception handling in trie_update_elem()

 kernel/bpf/bpf_struct_ops.c | 12 ++++++------
 kernel/bpf/btf.c            |  8 +++++---
 kernel/bpf/local_storage.c  |  2 +-
 kernel/bpf/lpm_trie.c       | 24 +++++++++++-------------
 4 files changed, 23 insertions(+), 23 deletions(-)

--
2.43.0