]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sctp: honor PMTU_DISABLED when handling icmp
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Thu, 26 Apr 2018 19:59:00 +0000 (16:59 -0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 18:35:23 +0000 (14:35 -0400)
commit63d01330aad9531a491db1bed5f15cc6b7fd1a78
tree6a703e3dcaee07f27eb5c09dd19d0e9e59e48633
parent6e91b578bf3f9e19c250835cba97a4be38ffcb31
sctp: honor PMTU_DISABLED when handling icmp

sctp_sendmsg() could trigger PMTU updates even when PMTU_DISABLED was
set, as pmtu_pending could be set unconditionally during icmp handling
if the socket was in use by the application.

This patch fixes it by checking for PMTU_DISABLED when handling such
deferred updates.

Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c