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 for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240502042318.801932-1-miaxu@meta.com>
Date: Wed, 1 May 2024 21:23:15 -0700
From: Miao Xu <miaxu@...a.com>
To: Eric Dumazet <edumazet@...gle.com>,
        "David S . Miller"
	<davem@...emloft.net>,
        Jakub Kicinski <kuba@...nel.org>, Paolo Abeni
	<pabeni@...hat.com>,
        David Ahern <dsahern@...nel.org>, Martin Lau
	<kafai@...a.com>
CC: <netdev@...r.kernel.org>, <bpf@...r.kernel.org>, Miao Xu <miaxu@...a.com>
Subject: [PATCH net-next v3 0/3] Add new args into tcp_congestion_ops' cong_control

This patchset attempts to add two new arguments into the hookpoint
cong_control in tcp_congestion_ops. The new arguments are inherited
from the caller tcp_cong_control and can be used by any bpf cc prog
that implements its own logic inside this hookpoint.

Please review. Thanks a lot!

Changelog
=====
v2->v3:
  - Fixed the broken selftest caused by the new arguments.
  - Renamed the selftest file name and bpf prog name.

v1->v2:
  - Split the patchset into 3 separate patches.
  - Added highlights in the selftest prog.
  - Removed the dependency on bpf_tcp_helpers.h.

Miao Xu (3):
  tcp: Add new args for cong_control in tcp_congestion_ops
  bpf: tcp: Allow to write tp->snd_cwnd_stamp in bpf_tcp_ca
  selftests/bpf: Add test for the use of new args in cong_control

 include/net/tcp.h                             |   2 +-
 net/ipv4/bpf_tcp_ca.c                         |   6 +-
 net/ipv4/tcp_bbr.c                            |   2 +-
 net/ipv4/tcp_input.c                          |   2 +-
 .../selftests/bpf/progs/bpf_cc_cubic.c        | 206 ++++++++++++++++++
 .../selftests/bpf/progs/bpf_tracing_net.h     |  10 +
 .../selftests/bpf/progs/tcp_ca_kfunc.c        |   6 +-
 7 files changed, 227 insertions(+), 7 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/progs/bpf_cc_cubic.c

-- 
2.43.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ