sctp: fix some debug output
Subsystems (4)
PATCH 1/1 sctp: fix some debug output
We added SCTP_EVENT_TIMEOUT_RECONF but we didn't update this array so it causes an off-by-one read overflow.
net/sctp/debug.c +1 -0
@@ -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", };
Marcelo Ricardo Leitner
maintainerQuoted 5 lines · Dan Carpenter
We added
SCTP_EVENT_TIMEOUT_RECONFbut 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 <[email protected]>
Weird, seems your patch is missing the --- marker here. Colin (Cc'ed) is supposed to post a v3 of his patch containing this fix.
Quoted 18 lines
net/sctp/debug.c +1
-1@@ -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", }; --To unsubscribe from this list: send the line "unsubscribe linux-sctp" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 10 lines · Marcelo Ricardo Leitner
Quoted 5 lines · Dan Carpenter
We added
SCTP_EVENT_TIMEOUT_RECONFbut 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 <[email protected]>Weird, seems your patch is missing the --- marker here. Colin (Cc'ed) is supposed to post a v3 of his patch containing this fix.
Colin, if you wanted, you could CC kernel-janitors with static checker fixes. There are several of us on that list.
regards,
dan carpenter
Quoted 8 lines · Dan Carpenter
Quoted 7 lines · Marcelo Ricardo Leitner
Quoted 5 lines · Dan Carpenter
We added
SCTP_EVENT_TIMEOUT_RECONFbut 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 <[email protected]>
Quoted 6 lines
Quoted 3 lines
Weird, seems your patch is missing the --- marker here. Colin (Cc'ed) is supposed to post a v3 of his patch containing this fix.
Colin, if you wanted, you could CC kernel-janitors with static checker fixes. There are several of us on that list.
OK, thanks for the heads-up on that Dan.
Colin
Quoted 4 lines
regards,
dan carpenter
Quoted 8 lines · Marcelo Ricardo Leitner
Quoted 5 lines · Dan Carpenter
We added
SCTP_EVENT_TIMEOUT_RECONFbut 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 <[email protected]>Weird, seems your patch is missing the --- marker here.
Are there tools that require the --- marker? I normally leave it out when it's not required.
regards,
dan carpenter
Marcelo Ricardo Leitner
maintainerQuoted 5 lines · Dan Carpenter
Quoted 4 lines · Marcelo Ricardo Leitner
Quoted 3 lines · Dan Carpenter
We added
SCTP_EVENT_TIMEOUT_RECONFbut we didn't update this array so it causes an off-by-one read overflow.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Fixes 7b9438de0cd4 ("sctp: add stream reconf timer")Signed-off-by Dan Carpenter <[email protected]>Weird, seems your patch is missing the --- marker here.
Are there tools that require the --- marker? I normally leave it out when it's not required.
Yeah I don't think it's required. It's usually there to split it between changelog and non-changelog stuff like the diffstat output, which is not there too, so it should be okay.
Marcelo