From: Xin Long <lucien.xin@gmail.com>
To: linux-sctp@vger.kernel.org
Subject: Re: Issue with handling too long FORWARD-TSN-SUPPORTED parameter in INIT chunk
Date: Wed, 18 Jan 2017 04:38:42 +0000 [thread overview]
Message-ID: <CADvbK_fB1-rQ91U_uN6SaeOkMBDpX=r9iqXztr+Tg6PU3j6jOA@mail.gmail.com> (raw)
In-Reply-To: <20170117131137.GE6494@aomx-netbook>
On Wed, Jan 18, 2017 at 4:03 AM, Julian Cordes <julian.cordes@gmail.com> wrote:
> 2017-01-17 19:13 GMT+01:00 Xin Long <lucien.xin@gmail.com>:
>> On Tue, Jan 17, 2017 at 9:11 PM, Julian Cordes <julian.cordes@gmail.com> wrote:
>>> An INIT-chunk with a FORWARD-TSN-SUPPORTED parameter having a length of
>>> 8 bytes is accepted by the linux kernel.
>>> According to the definition in https://tools.ietf.org/html/rfc3758#page-5
>>> the length of this parameter has to be 4 bytes long, so the
>>> implementation should ideally react with an ABORT.
>>>
>>> Testscript available at:
>>> https://github.com/nplab/PR_SCTP_Testsuite/blob/master/forward-tsn/error-cases/init-with-forward-tsn-too-long.pkt
>>
>> To react with an ABORT seems not RFC demands, no clear description for
>> that actually.
>> In sctp_verify_param(), sctp does send the necessary ABORT for the
>> other abnormal params that RFC demands.
>
> You are right,
> these situations are not specified clearly in the RFC. I have talked
> about this with Michael Tüxen before, he has suggested that the
> implementation should either silently discard the INIT-Chunk or send
> an ABORT-Chunk. The linux implementation accepts at the moment this
> invalid INIT-Chunk and replies with an INIT-ACK-Chunk. I am not sure
> if this is wanted behaviour?
It maybe just forget to check it, will think about it, and I need to check if
other params' processing also has the similar issue.
Thanks.
prev parent reply other threads:[~2017-01-18 4:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-17 13:11 Issue with handling too long FORWARD-TSN-SUPPORTED parameter in INIT chunk Julian Cordes
2017-01-17 18:13 ` Xin Long
2017-01-17 20:03 ` Julian Cordes
2017-01-18 4:38 ` Xin Long [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADvbK_fB1-rQ91U_uN6SaeOkMBDpX=r9iqXztr+Tg6PU3j6jOA@mail.gmail.com' \
--to=lucien.xin@gmail.com \
--cc=linux-sctp@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).