MoM - 31st of January 2022
Hello everyone,
Last Tuesday, we had our 227th meeting with Mat, Ossama (Intel), Christoph (Apple), Florian, Paolo, Davide (Red Hat), Benjamin and myself (Tessares).
Thanks again for this new good meeting!
Here are the minutes of the meeting:
Accepted patches:
- The list of accepted patches can be seen on PatchWork:
https://patchwork.kernel.org/project/mptcp/list/?state=3
netdev (if mptcp ML is in cc) (by: Matthieu Baerts):
13115500: [net-next,1/8] mptcp: let the in-kernel PM use mixed IPv4 and IPv6 addresses
13115501: [net-next,2/8] mptcp: propagate sk_ipv6only to subflows 13115502: [net-next,3/8] selftests: mptcp: add test-cases for mixed v4/v6 subflows
13115503: [net-next,4/8] mptcp: userspace pm: use a single point of exit 13115504: [net-next,5/8] selftests: mptcp: userspace: print titles 13115505: [net-next,6/8] selftests: mptcp: userspace: refactor asserts 13115506: [net-next,7/8] selftests: mptcp: userspace: print error details if any
13115507: [net-next,8/8] selftests: mptcp: userspace: avoid read errors:
- Series: mptcp: add mixed v4/v6 support for the in-kernel PM
- Submitter: Matthieu Baerts
- URL:
https://patchwork.kernel.org/project/mptcp/list/?series=715462&state=*&archive=both
our repo (by: Matthieu Baerts, Paolo Abeni):
13117402: [mptcp-next] mptcp: do not wait for bare sockets' timeout:
- Submitter: Paolo Abeni
- URL:
https://patchwork.kernel.org/project/mptcp/patch/1f0aa2feba9240d202a087e60013c6ff8039897c.1674747837.git.pabeni@redhat.com/
13117782: [v3,mptcp-next,01/15] mptcp: use mptcp_schedule_work() instead of open-codying it
13117779: [v3,mptcp-next,02/15] mptcp: fix locking for setsockopt corner-case
13117780: [v3,mptcp-next,03/15] mptcp: fix locking for in-kernel listener creation.
13117781: [v3,mptcp-next,04/15] mptcp: refactor passive socket initialization.
13117783: [v3,mptcp-next,05/15] mptcp: drop unneeded argument 13117784: [v3,mptcp-next,06/15] mptcp: drop legacy code. 13117785: [v3,mptcp-next,07/15] mptcp: avoid unneeded __mptcp_nmpc_socket() usage
13117786: [v3,mptcp-next,08/15] mptcp: move fastopen subflow check inside mptcp_sendmsg_fastopen()
13117787: [v3,mptcp-next,09/15] mptcp: move first subflow allocation at mpc access time
13117788: [v3,mptcp-next,10/15] mptcp: do not keep around the first subflow after disconnect.
13117789: [v3,mptcp-next,11/15] mptcp: fastclose msk when cleaning unaccepted sockets
13117790: [v3,mptcp-next,12/15] inet: factor out locked section of inet_accept() in a new helper
13117791: [v3,mptcp-next,13/15] mptcp: refactor mptcp_stream_accept() 13117792: [v3,mptcp-next,14/15] security, lsm: Introduce security_mptcp_add_subflow()
13117793: [v3,mptcp-next,15/15] selinux: Implement mptcp_add_subflow hook:
- Series: mptcp: refactor first subflow init
- Submitter: Paolo Abeni
- URL:
https://patchwork.kernel.org/project/mptcp/list/?series=716019&state=*&archive=both
13120889: [mptcp-others-next] mptcp: bpf: Pass const struct bpf_prog * to .check_member:
- Submitter: Matthieu Baerts
- URL:
https://patchwork.kernel.org/project/mptcp/patch/[email protected]/
13121420: [mptcp-net,v3] mptcp: be careful on subflow status propagation on errors:
- Submitter: Paolo Abeni
- URL:
https://patchwork.kernel.org/project/mptcp/patch/b9cfd415281fc206300a3adbcdbd36047facb31c.1675095773.git.pabeni@redhat.com/
Pending patches:
- The list of pending patches can be seen on PatchWork:
https://patchwork.kernel.org/project/mptcp/list/?state=*
netdev (if mptcp ML is in cc) (by: /):
/
our repo (by: Geliang Tang, Jiapeng Chong, Matthieu Baerts):
12282219: [RESEND,RFC,2/4] tcp: move selected mptcp helpers to tcp.h/mptcp.h 12282221: [RESEND,RFC,4/4] tcp: parse tcp options contained in reset packets:
12282223: [RESEND,RFC,mptpcp-next] mptcp: add ooo prune support:
12282225: [RESEND,1/5] tcp: make two mptcp helpers available to tcp stack 12282227: [RESEND,5/5] mptcp: send fastclose if userspace closes socket with unread data:
12321111: mptcp: Remove redundant assignment to remaining:
- State: RFC
- Series: mptcp: Remove redundant assignment to remaining
- Submitter: Jiapeng Chong
- URL:
https://patchwork.kernel.org/project/mptcp/list/?series=500495&state=*&archive=both
- status: same as last week
13070467: [mptcp-next,v4,1/2] mptcp: update mptcp_push_release 13070468: [mptcp-next,v4,2/2] mptcp: retrans for redundant sends:
- State: Changes requested
- Series: BPF redundant scheduler, part 3
- Submitter: Geliang Tang
- URL:
https://patchwork.kernel.org/project/mptcp/list/?series=703615&state=*&archive=both
- status: same as last week: see MPTCP sched discussions ↓
13100280: [mptcp-next,v2] mptcp: update userspace pm subflows info:
- State: Changes requested
- Submitter: Geliang Tang
- URL:
https://patchwork.kernel.org/project/mptcp/patch/d262f6beb6899f0a79acbeb1d3c8c855e95e098a.1673599496.git.geliang.tang@suse.com/
- patch is OK but other counters need to be updated as well (more
patches needed before closing the linked story)
13122893: [mptcp-net,v2,1/2] selftests: mptcp: allow more slack for slow test-case
13122894: [mptcp-net,v2,2/2] selftests: mptcp: stop tests earlier:
- State: New
- Series: selftests: mptcp: stabilise 'endpoint' Join tests
- Submitter: Matthieu Baerts
- URL:
https://patchwork.kernel.org/project/mptcp/list/?series=717332&state=*&archive=both
- Patch 2/2: to be reviewed (someone else than Matth)
Issues on Github:
https://github.com/multipath-tcp/mptcp_net-next/issues/
Recently opened (latest from the last meeting: 338):
340 netlink: switch to YAML Netlink specs [enhancement]:
- linked to the discussion we had last week
Bugs (opened, flagged as "bug" and assigned)
329 PM: userspace: update MPTCP_INFO fields [bug] @geliangtang:
- see patches above
320 Broken SELinux/LSM labelling with MPTCP and accept(2) [bug] @pabeni:
- see patches above
Bugs (opened and flagged as "bug" and not assigned)
336 Issues with BPF packet scheduler [bug]
325 selftests: mptcp_join: test 18 signal addresses race test is
sometimes failing [bug] [selftests]
324 selftests: mptcp_join: test 98 fastclose test is sometimes
failing [bug] [selftests]
323 selftests: mptcp_join: test 115 delete and re-add is often
failing [bug] [selftests]:
- see patches above
318 selftests: mptcp_connect.sh sometimes fails when validating SYN
cookies [bug] [selftests]:
- still appearing in the public CI
- not easy to reproduce
- might help to stress the host and lower prio of the VM
- maybe a sysctl to reduce the timeout → didn't find any
- + add losses? → maybe
315 Issues with backup flow [bug]
In Progress (opened, new feature and assigned)
330 MPTCP_INFO: document and support mptcpi_subflows for the
server side [enhancement] @geliangtang
296 Support IP_TTL & IPV6_UNICAST_HOPS [enhancement] @matttbe 234 Packetdrill: Support MPC+DATA+checksum error [enhancement]
[packetdrill] @spoorva
167 packetdrill: add coverage for RM_ADDR [enhancement] [packetdrill]
@dcaratti
75 BPF: packet scheduler [enhancement] @geliangtang:
- See patches above
74 BPF: path manager [enhancement] @geliangtang
Assigned Questions (opened, questions and assigned)
307 TCP performance better than MPTCP [question] @matttbe
Open questions (opened, questions and not assigned)
326 Issue with streaming traffic with MPTCP upstream implementation
[question]
For later (opened and not assigned assigned)
340 netlink: switch to YAML Netlink specs [enhancement] 337 in-kernel PM: listen socket: support "behind a NAT" use case
[enhancement]
335 Server to Client subflows: option to allow joining the initial
address and port [enhancement]
334 PM: in-kernel: send >1 ADD_ADDR before the establishment of a new
subflow [enhancement]
333 New MIBs to help understanding issues when PM cannot create new
subflows [enhancement]
332 scheduler: implement a "opportunistic retransmission" [enhancement] 298 CG Memory accounting for passive MPTCP socket [enhancement] 289 mptcp: audit comments for non inclusive language [enhancement] 273 Packetdrill: test outgoing MP_FASTCLOSE [enhancement] [packetdrill] 266 Packetdrill: add MP_FAIL coverage [packetdrill] 236 Review supported sockopts list [enhancement] 222 Netlink event API: add SUBFLOW_CREATED event [enhancement] 215 TCP Urgent pointer and MPTCP [enhancement] 213 add MPTCP man page [enhancement] 208 better handing of ssk memory pressure in the TX path [enhancement] 202 Add sendmsg support for ancillary data [enhancement] 197 more mibs needed [enhancement] 180 Get an update when MPTCP fall back to TCP [enhancement] 177 improve retransmit subflow selection [enhancement] 169 packetdrill: add coverage for ADD_ADDR and MP_JOIN on a different
port [enhancement] [packetdrill]
150 remove completely workqueue usage [enhancement] 141 avoid acquiring mptcp_data_lock() twice in the receive path
[enhancement]
133 PM: Closing the MPTCP connection when last subflow is not the
initial one and its IP address is removed [enhancement]
128 When the last subflow is closed without DATA_FIN and msk
Established, close msk (after a timeout) [enhancement]
79 allow 'force to MPTCP' mode: BPF [enhancement]
78 notify the application (userspace) when a subflow is
added/removed [enhancement]
77 [gs]etsockopt: forward to new/existing SF [enhancement] 76 [gs]etsockopt per subflow: BPF [enhancement] 61 move msk clone after ctx creation [enhancement] 57 After a few attempts of failed MPTCP, directly fallback to TCP
for new connections [enhancement]
43 [syzkaller] Change syzkaller to exercise MPTCP inet_diag
interface [enhancement] [syzkaller]
41 reduce indirect call usage [enhancement]
24 Revisit layout of struct mptcp_subflow_context [enhancement]
Recently closed (since 2023-01-24)
339 selftests: diag: failing: found msk after flush while expected
none [bug] [selftests] @pabeni
290 Not possible to connect() after a disconnect for a passive
socket [bug]
269 Allow having a mix of v4/v6 subflows for the same socket
[enhancement] @pabeni
FYI: Current Roadmap:
- Bugs: https://github.com/multipath-tcp/mptcp_net-next/projects/2
- Current/Coming merge window (6.3):
https://github.com/multipath-tcp/mptcp_net-next/projects/18
- For later: https://github.com/multipath-tcp/mptcp_net-next/projects/4
Patches to send to netdev:
- Fixes for other trees: /
- Fixes for -net:
- [80b7821256d6] mptcp: do not wait for bare sockets' timeout
(Paolo Abeni)
- [4d4269f3e7be] mptcp: fix locking for setsockopt corner-case
(Paolo Abeni)
- [4eda52f8aeb1] mptcp: fix locking for in-kernel listener
creation (Paolo Abeni)
- [fffc47c3e4dc] mptcp: be careful on subflow status propagation
on errors (Paolo Abeni):
- better to wait a bit more
- can be sent by the end of the week with the 2 other fixes
that are pending
- Fixes for net-next: /
- Features for net-next:
- [a0e82f11fb99] mptcp: use mptcp_schedule_work() instead of
open-coding it (Paolo Abeni)
- [fd5c29ff1f34] mptcp: refactor passive socket initialization
(Paolo Abeni)
- [42c581b79e4f] mptcp: drop unneeded argument (Paolo Abeni)
- [dd1b3cb74f1b] mptcp: drop legacy code (Paolo Abeni)
- [f6a16ead2d5b] mptcp: avoid unneeded __mptcp_nmpc_socket()
usage (Paolo Abeni)
- [f52b15ba44f5] mptcp: move fastopen subflow check insidemptcp_sendmsg_fastopen() (Paolo Abeni)
- [7122479b846e] mptcp: move first subflow allocation at mpc
access time (Paolo Abeni)
- [50ebf048b443] mptcp: do not keep around the first subflow
after disconnect (Paolo Abeni)
- [9ba9c1a4e057] mptcp: fastclose msk when cleaning unaccepted
sockets (Paolo Abeni)
- [8cc90eaa1ac9] inet: factor out locked section ofinet_accept() in a new helper (Paolo Abeni)
- [eeab9a31c0a5] mptcp: refactor mptcp_stream_accept() (Paolo
Abeni):
- it looks like it is too late to have these patches in the
current merge window:
- they depends on patches above that need to be sent to -net
- important to have them tested by syzkaller and more
- best to avoid sending a lot of patches at the end of
the merge window
- we are on rc6, an rc8 is expected, final release in
less than 3 weeks
- Features for net-next (next):/
- Features for other trees:
- [aa7640655582] security, lsm: Introducesecurity_mptcp_add_subflow() (Paolo Abeni)
- [fcde89fba294] selinux: Implement mptcp_add_subflow hook
(Paolo Abeni):
- need to wait to have some dependences in Linus tree first
- [c8ad2a868f6b] mptcp: refactor push_pending logic (Geliang Tang)
- [e03468a34818] mptcp: drop last_snd and MPTCP_RESET_SCHEDULER
(Geliang Tang)
- [36bab2e0ad58] mptcp: add struct mptcp_sched_ops (Geliang Tang)
- [53a5320fb9c0] mptcp: add a new sysctl scheduler (Geliang Tang)
- [faaf0bb47122] mptcp: add sched in mptcp_sock (Geliang Tang)
- [2289a2aa67d8] mptcp: add scheduled in mptcp_subflow_context
(Geliang Tang)
- [1c9e04054ff4] mptcp: add sched_data_set_contexts helper
(Geliang Tang)
- [0fcc7005f1de] mptcp: add scheduler wrappers (Geliang Tang)
- [e7942534501c] mptcp: use get_send wrapper (Geliang Tang)
- [2edbb9d222b4] mptcp: use get_retrans wrapper (Geliang Tang)
- [e46187ec7b26] bpf: Add bpf_mptcp_sched_ops (Geliang Tang)
- [a29a1b8fab0c] bpf: Add bpf_mptcp_sched_kfunc_set (Geliang Tang)
- [213d45dab44b] selftests/bpf: Add mptcp sched structs (Geliang
Tang)
- [3b358a5fbd70] selftests/bpf: Add bpf_first scheduler (Geliang
Tang)
- [8e96b4339581] selftests/bpf: Add bpf_first test (Geliang Tang)
- [da3383358ca3] selftests/bpf: Add bpf_bkup scheduler (Geliang
Tang)
- [b1306ecbfb7d] selftests/bpf: Add bpf_bkup test (Geliang Tang)
- [d51de165b562] selftests/bpf: Add bpf_rr scheduler (Geliang Tang)
- [dc484fd9f61f] selftests/bpf: Add bpf_rr test (Geliang Tang)
- [b9b2cac1e165] selftests/bpf: Add bpf_red scheduler (Geliang Tang)
- [c7e7857220a3] selftests/bpf: Add bpf_red test (Geliang Tang):
- status: same as last week
Extra tests:
- news about Syzkaller? (Christoph / Mat):
- nothing new for MPTCP
- news about interop with mptcp.org/other stacks? (Christoph):
- /
- news about Intel's kbuild? (Mat):
- /
- TODO: remove the section (Matth) → Done
- packetdrill (Davide):
- /
- Patchew (Davide):
- /
- CI (Matth):
- /
mptcpd:
- 0.12 has been tagged
- transfer has been done: https://github.com/multipath-tcp/mptcpd
- website moved: https://mptcpd.mptcp.dev
- but not announced on the ML yet:
- Ossama will do that → Done
MPTCP Scheduler API:
- from the last meeting:
- a new callback each time a ACK is received is required
- penalisation: keep state per sf to send a fraction of the cwnd
- be able to re-inject quicker from the scheduler (see below)
- the default sched should do ↑
- opportunistic reinjection:
- is it complex to put in place with the current architecture?
- additional hooking needed for the MPTCP sched:
- currently there are only hooks for the MPTCP RTO
- the packet sched should be able to get more info:
- MPTCP cwnd close or the seq num has increased
- (max allowed MPTCP level seq num to be sent == last
ack + (...))
- typically: a RTO at subflow level:
- hooking at TCP window level changes should be enough:
- maybe too frequent?
- might affect perf?
- or hook in MPTCP options to do more checks there?:
- quite heavy, the core should filter events
- do we ever significantly queue more than what the cwnd of a
subflow would accept?:
- currently, the in-kernel only accepts to queue up to the
MPTCP level cwnd
- (a few more bytes due to rounding)
- do we have enough hook / missing events?
→ can be checked with packetdrill: a ACK is received at TCP
level and the scheduler might not send anything while it should.
- about "a new callback each time a ACK is received is required":
- just to be sure:
- when a TCP ACK is received (at subflow level)?
- not when an "MPTCP ACK" is received (at MPTCP level)?
- see above
- probing:
- extend the "stale" logic?
- if a subflow is marked as "stale", a probing should be done:
- already there if there is data to be sent at TCP level
- if there is no data, no probing done
- something more is needed, e.g. (periodically) force a
reinjection (last data sent but not ACKed yet - we don't want to send "new" data only on this subflow as the chance is high the subflow is currently "bad")
- the sched should be able to (un)mark a subflow:
- it should be possible to do that with BPF by modifying the
'stale' bit
- some area in the socket structure reserved for the scheduler:
- a refactoring is probably needed not to increase the size too much
- at MPTCP level and subflow level
- next steps:
- document ↑ in (a) new ticket(s) → TODO Matt
- packetdrill for the scenario mentioned above
Other topics:
- Mat & Ossama will probably no longer be able to join the following
meetings
- Thank you for having led the different projects so well!
- Good luck with your new projects!
Next meeting:
- Next one on Tuesday, the 7th of February.
- 16:30 UTC (8.30am PST, 5.30pm CET, 12.30am CST)
- Still open to everyone!
- https://annuel2.framapad.org/p/mptcp_upstreaming_20230207
Feel free to comment on these topics and suggest new ones for the next meeting!
Talk to you on Tuesday,
Matt
Signature · 2 lines
Tessares | Belgium | Hybrid Access Solutions www.tessares.net