Patch "sctp: reset probe_timer in sctp_transport_pl_update" has been added to the 5.14-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    sctp: reset probe_timer in sctp_transport_pl_update

to the 5.14-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     sctp-reset-probe_timer-in-sctp_transport_pl_update.patch
and it can be found in the queue-5.14 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 9a5613afcc2f2c5729b3ba8b3402c87e74f69e56
Author: Xin Long <lucien.xin@xxxxxxxxx>
Date:   Thu Oct 28 05:36:02 2021 -0400

    sctp: reset probe_timer in sctp_transport_pl_update
    
    [ Upstream commit c6ea04ea692fa0d8e7faeb133fcd28e3acf470a0 ]
    
    sctp_transport_pl_update() is called when transport update its dst and
    pathmtu, instead of stopping the PLPMTUD probe timer, PLPMTUD should
    start over and reset the probe timer. Otherwise, the PLPMTUD service
    would stop.
    
    Fixes: 92548ec2f1f9 ("sctp: add the probe timer in transport for PLPMTUD")
    Signed-off-by: Xin Long <lucien.xin@xxxxxxxxx>
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h
index 69bab88ad66b1..bc00410223b03 100644
--- a/include/net/sctp/sctp.h
+++ b/include/net/sctp/sctp.h
@@ -653,12 +653,10 @@ static inline void sctp_transport_pl_update(struct sctp_transport *t)
 	if (t->pl.state == SCTP_PL_DISABLED)
 		return;
 
-	if (del_timer(&t->probe_timer))
-		sctp_transport_put(t);
-
 	t->pl.state = SCTP_PL_BASE;
 	t->pl.pmtu = SCTP_BASE_PLPMTU;
 	t->pl.probe_size = SCTP_BASE_PLPMTU;
+	sctp_transport_reset_probe_timer(t);
 }
 
 static inline bool sctp_transport_pl_enabled(struct sctp_transport *t)



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux