Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20305C04AB5 for ; Thu, 6 Jun 2019 23:49:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E0AB3206DF for ; Thu, 6 Jun 2019 23:49:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726922AbfFFXtQ (ORCPT ); Thu, 6 Jun 2019 19:49:16 -0400 Received: from www62.your-server.de ([213.133.104.62]:47020 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726609AbfFFXtQ (ORCPT ); Thu, 6 Jun 2019 19:49:16 -0400 Received: from [178.197.249.21] (helo=localhost) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1hZ28A-0005QS-H0; Fri, 07 Jun 2019 01:49:14 +0200 From: Daniel Borkmann To: alexei.starovoitov@gmail.com Cc: kafai@fb.com, rdna@fb.com, m@lambda.lt, bpf@vger.kernel.org, netdev@vger.kernel.org, Daniel Borkmann Subject: [PATCH bpf v3 0/6] Fix unconnected bpf cgroup hooks Date: Fri, 7 Jun 2019 01:48:56 +0200 Message-Id: <20190606234902.4300-1-daniel@iogearbox.net> X-Mailer: git-send-email 2.9.5 X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.100.3/25472/Thu Jun 6 10:09:59 2019) Sender: bpf-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org Please refer to the patch 1/6 as the main patch with the details on the current sendmsg hook API limitations and proposal to fix it in order to work with basic applications like DNS. Remaining patches are the usual uapi and tooling updates as well as test cases. Thanks a lot! v2 -> v3: - Add attach types to test_section_names.c and libbpf (Andrey) - Added given Acks, rest as-is v1 -> v2: - Split off uapi header sync and bpftool bits (Martin, Alexei) - Added missing bpftool doc and bash completion as well Daniel Borkmann (6): bpf: fix unconnected udp hooks bpf: sync tooling uapi header bpf, libbpf: enable recvmsg attach types bpf, bpftool: enable recvmsg attach types bpf: more msg_name rewrite tests to test_sock_addr bpf: expand section tests for test_section_names include/linux/bpf-cgroup.h | 8 + include/uapi/linux/bpf.h | 2 + kernel/bpf/syscall.c | 8 + kernel/bpf/verifier.c | 12 +- net/core/filter.c | 2 + net/ipv4/udp.c | 4 + net/ipv6/udp.c | 4 + .../bpftool/Documentation/bpftool-cgroup.rst | 6 +- .../bpftool/Documentation/bpftool-prog.rst | 2 +- tools/bpf/bpftool/bash-completion/bpftool | 5 +- tools/bpf/bpftool/cgroup.c | 5 +- tools/bpf/bpftool/prog.c | 3 +- tools/include/uapi/linux/bpf.h | 2 + tools/lib/bpf/libbpf.c | 4 + .../selftests/bpf/test_section_names.c | 10 + tools/testing/selftests/bpf/test_sock_addr.c | 213 ++++++++++++++++-- 16 files changed, 264 insertions(+), 26 deletions(-) -- 2.17.1