lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251016204539.773707-1-martin.lau@linux.dev>
Date: Thu, 16 Oct 2025 13:45:39 -0700
From: Martin KaFai Lau <martin.lau@...ux.dev>
To: David Miller <davem@...emloft.net>,
	Jakub Kicinski <kuba@...nel.org>,
	Eric Dumazet <edumazet@...gle.com>,
	Paolo Abeni <pabeni@...hat.com>
Cc: Alexei Starovoitov <ast@...nel.org>,
	Andrii Nakryiko <andrii@...nel.org>,
	Daniel Borkmann <daniel@...earbox.net>,
	Martin KaFai Lau <martin.lau@...nel.org>,
	netdev@...r.kernel.org,
	bpf@...r.kernel.org
Subject: pull-request: bpf-next 2025-10-16

Hi David, hi Jakub, hi Paolo, hi Eric,

The following pull-request contains BPF updates for your *net-next* tree.

We've added 6 non-merge commits during the last 1 day(s) which contain
a total of 18 files changed, 577 insertions(+), 38 deletions(-).

The main changes are:

1) Bypass the global per-protocol memory accounting either by setting
   a netns sysctl or using bpf_setsockopt in a bpf program,
   from Kuniyuki Iwashima.

Please consider pulling these changes from:

  git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git tags/for-netdev

Thanks a lot!

Also thanks to reporters, reviewers and testers of commits in this pull-request:

Eric Dumazet, Roman Gushchin, Shakeel Butt

----------------------------------------------------------------

The following changes since commit 55db64ddd6a12c5157a61419a11a18fc727e8286:

  Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net (2025-10-16 11:06:28 -0700)

are available in the Git repository at:

  https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git tags/for-netdev

for you to fetch changes up to 03de843bd0806184505f1e8099ff4ca9a8665dbb:

  Merge branch 'bpf-allow-opt-out-from-sk-sk_prot-memory_allocated' (2025-10-16 12:15:10 -0700)

----------------------------------------------------------------
bpf-next-for-netdev

----------------------------------------------------------------
Kuniyuki Iwashima (6):
      tcp: Save lock_sock() for memcg in inet_csk_accept().
      net: Allow opt-out from global protocol memory accounting.
      net: Introduce net.core.bypass_prot_mem sysctl.
      bpf: Support bpf_setsockopt() for BPF_CGROUP_INET_SOCK_CREATE.
      bpf: Introduce SK_BPF_BYPASS_PROT_MEM.
      selftests/bpf: Add test for sk->sk_bypass_prot_mem.

Martin KaFai Lau (1):
      Merge branch 'bpf-allow-opt-out-from-sk-sk_prot-memory_allocated'

 Documentation/admin-guide/sysctl/net.rst           |   8 +
 include/net/netns/core.h                           |   1 +
 include/net/proto_memory.h                         |   3 +
 include/net/sock.h                                 |   3 +
 include/net/tcp.h                                  |   3 +
 include/uapi/linux/bpf.h                           |   2 +
 net/core/filter.c                                  |  85 ++++++
 net/core/sock.c                                    |  37 ++-
 net/core/sysctl_net_core.c                         |   9 +
 net/ipv4/af_inet.c                                 |  22 ++
 net/ipv4/inet_connection_sock.c                    |  25 --
 net/ipv4/tcp.c                                     |   3 +-
 net/ipv4/tcp_output.c                              |   7 +-
 net/mptcp/protocol.c                               |   7 +-
 net/tls/tls_device.c                               |   3 +-
 tools/include/uapi/linux/bpf.h                     |   1 +
 .../selftests/bpf/prog_tests/sk_bypass_prot_mem.c  | 292 +++++++++++++++++++++
 .../selftests/bpf/progs/sk_bypass_prot_mem.c       | 104 ++++++++
 18 files changed, 577 insertions(+), 38 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
 create mode 100644 tools/testing/selftests/bpf/progs/sk_bypass_prot_mem.c

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ