linux-sctp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch net-next] sctp: fix some debug output
@ 2017-01-24  9:05 Dan Carpenter
  2017-01-24  9:14 ` Marcelo Ricardo Leitner
  0 siblings, 1 reply; 6+ messages in thread
From: Dan Carpenter @ 2017-01-24  9:05 UTC (permalink / raw)
  To: Vlad Yasevich, Xin Long
  Cc: Neil Horman, David S. Miller, linux-sctp, netdev, kernel-janitors

We added SCTP_EVENT_TIMEOUT_RECONF but we didn't update this array so
it causes an off-by-one read overflow.

Fixes: 7b9438de0cd4 ("sctp: add stream reconf timer")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/net/sctp/debug.c b/net/sctp/debug.c
index 95d7b15dad21..c5f4ed5242ac 100644
--- a/net/sctp/debug.c
+++ b/net/sctp/debug.c
@@ -159,6 +159,7 @@ static const char *const sctp_timer_tbl[] = {
 	"TIMEOUT_T4_RTO",
 	"TIMEOUT_T5_SHUTDOWN_GUARD",
 	"TIMEOUT_HEARTBEAT",
+	"TIMEOUT_RECONF",
 	"TIMEOUT_SACK",
 	"TIMEOUT_AUTOCLOSE",
 };

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-01-24 13:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-24  9:05 [patch net-next] sctp: fix some debug output Dan Carpenter
2017-01-24  9:14 ` Marcelo Ricardo Leitner
2017-01-24  9:51   ` Dan Carpenter
2017-01-24  9:52     ` Colin Ian King
2017-01-24 10:50   ` Dan Carpenter
2017-01-24 13:00     ` Marcelo Ricardo Leitner

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).