RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2015623 - mptcpize fails to force mptcp usage on some programs
Summary: mptcpize fails to force mptcp usage on some programs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: mptcpd
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Davide Caratti
QA Contact: xmu
URL:
Whiteboard:
: 2027232 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-19 16:52 UTC by Paolo Abeni
Modified: 2022-05-17 13:16 UTC (History)
3 users (show)

Fixed In Version: mptcpd-0.8-2.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 12:54:56 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-100258 0 None None None 2021-10-19 16:53:13 UTC
Red Hat Product Errata RHBA-2022:2417 0 None None None 2022-05-17 12:54:59 UTC

Description Paolo Abeni 2021-10-19 16:52:22 UTC
mptcpize run <command>

fails if <command> uses 'socket(AF_INET, SOCK_STREAM, IPPROTO_IP)' instead of 
'socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)'

mptcpize enable <unit>

fails if the /tmp directory is located on a different fs WRT the unit file itself.

Solved by the following upstream commits:

commit 591b3b168d949c45d5b5994332a3007767845434
Author: Paolo Abeni <paolo.abeni>
Date:   Thu Oct 14 05:05:54 2021 +0200

    mptcpize: use explicit file copy instead of rename() (#161)

commit 5633f08e35552295b2f9414ff32ca4e8e081b2f2
Author: Paolo Abeni <paolo.abeni>
Date:   Tue Oct 12 19:24:33 2021 +0200

    mptcpize: force MPTCP usage for IPPROTO_IP, too (#159)

Comment 1 Davide Caratti 2021-11-29 14:04:48 UTC
*** Bug 2027232 has been marked as a duplicate of this bug. ***

Comment 2 Davide Caratti 2021-11-29 15:56:15 UTC
@xmu, this can be verified by looking whether the listening socket got the TCP_ULP attached. See below:


# mptcpize run  ncat -l 0.0.0.0 1234 &
# ss -santi | grep -A1 1234
LISTEN 0      10           0.0.0.0:1234       0.0.0.0:*
  cubic cwnd:10 tcp-ulp-mptcp flags:m token:0000(id:0)/0000(id:0) seq:0 sfseq:0 ssnoff:0 maplen:0


<ctrl+c>

# mptcpize run  iperf3 -s -p 1234  &
# ss -santi | grep -A1 1234
LISTEN 0      4096               *:1234             *:*
   cubic cwnd:10

I'm in the progress of doing a build that backports a fix for this problem, so MPTCP testing with native applications will be much easier. I see you provided 'qa_ack+', can you please set a value >= 16 for the ITM? thanks!

Comment 3 xmu 2021-11-30 02:57:47 UTC
set ITM18

Comment 4 Christian Horn 2021-12-01 05:52:38 UTC
> Fixed In Version: mptcpd-0.8-2.el9
Fixes the issue works for me, tnx

Comment 5 xmu 2021-12-01 10:26:03 UTC
case /kernel/networking/mptcp/mptcpd/mptcpd_commands pass with  mptcpd-0.8-2.el9 and kernel-5.14.0-21.el9.x86_64

Comment 9 xmu 2021-12-01 11:29:10 UTC
Hi Davide,
  I tested "mptcpize run" fololowed comment #2, 
  how to test "mptcp enable" for patch "mptcpize: use explicit file copy instead of rename()"?
  Thanks

Comment 10 Davide Caratti 2021-12-02 08:45:23 UTC
hello Xiumei, thanks for confirming!

(In reply to xmu from comment #9)
> Hi Davide,
>   I tested "mptcpize run" fololowed comment #2, 
>   how to test "mptcp enable" for patch "mptcpize: use explicit file copy
> instead of rename()"?
>   Thanks

I *think* it should be sufficient to mptcpize a command that is in '/tmp' rather than '/usr/bin'. On mptcpd-0.8-1.el9 that should fail to mptcpize.

Comment 13 errata-xmlrpc 2022-05-17 12:54:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: mptcpd), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:2417


Note You need to log in before you can comment on or make changes to this bug.