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 1281637 - sctp_spinfo_state values out of sync with kernel
Summary: sctp_spinfo_state values out of sync with kernel
Keywords:
Status: CLOSED DUPLICATE of bug 1283339
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lksctp-tools
Version: 7.1
Hardware: Unspecified
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Marcelo Ricardo Leitner
QA Contact: Network QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-13 00:29 UTC by Hitesh ingole
Modified: 2019-12-16 05:05 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-18 18:41:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Hitesh ingole 2015-11-13 00:29:55 UTC
Description of problem:
There is a mismatch between lksctp and kernel  around sctp_spinfo_state
In /include/uapi/linux/sctp.h

enum sctp_spinfo_state {
        SCTP_INACTIVE,
        SCTP_PF,
        SCTP_ACTIVE,
        SCTP_UNCONFIRMED,
        SCTP_UNKNOWN = 0xffff  /* Value used for transport state unknown */
};

In /usr/include/linux/sctp.h

enum sctp_spinfo_state {
        SCTP_INACTIVE,
        SCTP_PF,
        SCTP_ACTIVE,
        SCTP_UNCONFIRMED,
        SCTP_UNKNOWN = 0xffff  /* Value used for transport state unknown */
};



In /usr/include/netinet/sctp.h

enum sctp_spinfo_state {
        SCTP_INACTIVE,
        SCTP_ACTIVE,
        SCTP_UNCONFIRMED
};


Version-Release number of selected component:
lksctp-tools-devel-1.0.13-3.el7



Actual results:

The sctp.h povided by lksctp-tools-devel is not in sync and does not include the Partially Failed state.

[root@localhost ~]# grep -i PF  /usr/include/netinet/sctp.h
[root@localhost ~]#

[root@localhost ~]# grep -i SCTP_PF  /usr/include/linux/sctp.h
	SCTP_PF,
[root@localhost ~]# 


Expected results:
The sctp.h provided by kernel-headers and lksctp-tools-devel should be in sync

Comment 1 Marcelo Ricardo Leitner 2015-11-13 11:06:07 UTC
it's already fixed upstream:

commit 41251182e9f228835b226eb581ea1d8a7d27b613
Author: Neil Horman <nhorman>
Date:   Tue Apr 2 15:07:59 2013 -0400

    sctp: Add new spinfo state values to enumeration

    A while back the kernel added two enumeration values to sctp_spinfo_state.
    Unfortunately, those were never added to the user space header file, and as a
    result we get inconsistent behavior when reading spinfo state.  This patch adds
    the missing fields in, and corrects the behavior.


I'll backport this next week

Comment 2 Marcelo Ricardo Leitner 2015-11-18 18:41:30 UTC
I'm closing this bug as a dup of bz1283339 as this last will do an update to the package. If you need a z-stream of this fix, please request it against this one. Then only this fix will get backported.

*** This bug has been marked as a duplicate of bug 1283339 ***


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