ACK/cmnt: [SRU][PATCH 00/13][GCP-5.4] Requested eBPF improvements

Kleber Souza kleber.souza at canonical.com
Thu Sep 3 11:00:18 UTC 2020


On 31.08.20 06:03, Khalid Elmously wrote:
> BugLink: https://bugs.launchpad.net/bugs/1887740
> 
> A set of eBPF patches are requested by GKE for 5.4.
> 
> The actual backport work was done by Daniel Borkmann himself (who is also the upstream author of most of these patches)
> 
> I only made minor fix-ups to the commit messages, and compile- and boot-tested the GCP-5.4 kernel with the changes. No issues were observed.

Apart from the missing BugLink's on patches 10-13 (which can be fixed when
applying) the patches look good and were tested by the vendor.

Acked-by: Kleber Sacilotto de Souza <kleber.souza at canonical.com>

> 
> 
> 
> Daniel Borkmann (7):
>   bpf: Enable retrieval of socket cookie for bind/post-bind hook
>   bpf: Enable perf event rb output for bpf cgroup progs
>   bpf: Add netns cookie and enable it for bpf cgroup hooks
>   bpf, net: Fix build issue when net ns not configured
>   bpf: Allow to retrieve cgroup v1 classid from v2 hooks
>   bpf: Enable retrival of pid/tgid/comm from bpf cgroup hooks
>   bpf: Add get{peer, sock}name attach types for sock_addr
> 
> Joe Stringer (4):
>   bpf: Add socket assign support
>   net: Track socket refcounts in skb_steal_sock()
>   bpf: Don't refcount LISTEN sockets in sk_assign()
>   bpf: Fix use of sk->sk_reuseport from sk_assign
> 
> John Fastabend (1):
>   bpf, sk_msg: Add some generic helpers that may be useful from sk_msg
> 
> Martin KaFai Lau (1):
>   bpf: Add BPF_FUNC_jiffies64
> 
>  include/linux/bpf-cgroup.h     |   1 +
>  include/linux/bpf.h            |   2 +
>  include/net/cls_cgroup.h       |   7 +-
>  include/net/inet6_hashtables.h |   3 +-
>  include/net/inet_hashtables.h  |   3 +-
>  include/net/net_namespace.h    |   5 +
>  include/net/sock.h             |  46 ++++--
>  include/uapi/linux/bpf.h       | 251 ++++++++++++++++++++++++++++++++-
>  kernel/bpf/core.c              |   1 +
>  kernel/bpf/helpers.c           |  12 ++
>  kernel/bpf/syscall.c           |  12 ++
>  kernel/bpf/verifier.c          |  46 +++++-
>  net/core/filter.c              | 145 ++++++++++++++++++-
>  net/core/net_namespace.c       |  15 ++
>  net/core/sock.c                |  12 ++
>  net/ipv4/af_inet.c             |   8 +-
>  net/ipv4/ip_input.c            |   3 +-
>  net/ipv4/udp.c                 |   6 +-
>  net/ipv6/af_inet6.c            |   9 +-
>  net/ipv6/ip6_input.c           |   3 +-
>  net/ipv6/udp.c                 |   9 +-
>  net/sched/act_bpf.c            |   3 +
>  tools/include/uapi/linux/bpf.h | 251 ++++++++++++++++++++++++++++++++-
>  23 files changed, 811 insertions(+), 42 deletions(-)
> 




More information about the kernel-team mailing list