Revision 3ecdda3e9ad837cf9cb41b6faa11b1af3a5abc0c authored by Xin Long on 22 July 2020, 15:52:12 UTC, committed by David S. Miller on 23 July 2020, 01:00:12 UTC
When adding a stream with stream reconf, the new stream firstly is in CLOSED state but new out chunks can still be enqueued. Then once gets the confirmation from the peer, the state will change to OPEN. However, if the peer denies, it needs to roll back the stream. But when doing that, it only sets the stream outcnt back, and the chunks already in the new stream don't get purged. It caused these chunks can still be dequeued in sctp_outq_dequeue_data(). As its stream is still in CLOSE, the chunk will be enqueued to the head again by sctp_outq_head_data(). This chunk will never be sent out, and the chunks after it can never be dequeued. The assoc will be 'hung' in a dead loop of sending this chunk. To fix it, this patch is to purge these chunks already in the new stream by calling sctp_stream_shrink_out() when failing to do the addstream reconf. Fixes: 11ae76e67a17 ("sctp: implement receiver-side procedures for the Reconf Response Parameter") Reported-by: Ying Xu <yinxu@redhat.com> Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 8f13399
File | Mode | Size |
---|---|---|
Makefile | -rw-r--r-- | 394 bytes |
decode-fcp.c | -rw-r--r-- | 5.5 KB |
list.h | -rw-r--r-- | 1.3 KB |
nosy-dump.c | -rw-r--r-- | 24.5 KB |
nosy-dump.h | -rw-r--r-- | 3.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...