aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/netlabel
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2018-11-27 19:11:50 +0800
committerDavid S. Miller <davem@davemloft.net>2018-11-30 13:12:43 -0800
commit4135cce7fd0a0d755665c02728578c7c5afe4726 (patch)
treec2da420d89fa8f3f40f29f4671e195eacb2d11d2 /Documentation/netlabel
parentnet: Prevent invalid access to skb->prev in __qdisc_drop_all (diff)
downloadlinux-dev-4135cce7fd0a0d755665c02728578c7c5afe4726.tar.xz
linux-dev-4135cce7fd0a0d755665c02728578c7c5afe4726.zip
sctp: update frag_point when stream_interleave is set
sctp_assoc_update_frag_point() should be called whenever asoc->pathmtu changes, but we missed one place in sctp_association_init(). It would cause frag_point is zero when sending data. As says in Jakub's reproducer, if sp->pathmtu is set by socketopt, the new asoc->pathmtu inherits it in sctp_association_init(). Later when transports are added and their pmtu >= asoc->pathmtu, it will never call sctp_assoc_update_frag_point() to set frag_point. This patch is to fix it by updating frag_point after asoc->pathmtu is set as sp->pathmtu in sctp_association_init(). Note that it moved them after sctp_stream_init(), as stream->si needs to be set first. Frag_point's calculation is also related with datachunk's type, so it needs to update frag_point when stream->si may be changed in sctp_process_init(). v1->v2: - call sctp_assoc_update_frag_point() separately in sctp_process_init and sctp_association_init, per Marcelo's suggestion. Fixes: 2f5e3c9df693 ("sctp: introduce sctp_assoc_update_frag_point") Reported-by: Jakub Audykowicz <jakub.audykowicz@gmail.com> Signed-off-by: Xin Long <lucien.xin@gmail.com> Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/netlabel')
0 files changed, 0 insertions, 0 deletions