1
0
Files
linux/net
Colin Ian King 1464086939 net: sctp: fix array overrun read on sctp_timer_tbl
Table sctp_timer_tbl is missing a TIMEOUT_RECONF string so
add this in. Also compare timeout with the size of the array
sctp_timer_tbl rather than SCTP_EVENT_TIMEOUT_MAX.  Also add
a build time check that SCTP_EVENT_TIMEOUT_MAX is correct
so we don't ever get this kind of mismatch between the table
and SCTP_EVENT_TIMEOUT_MAX in the future.

Kudos to Marcelo Ricardo Leitner for spotting the missing string
and suggesting the build time sanity check.

Fixes CoverityScan CID#1397639 ("Out-of-bounds read")

Fixes: 7b9438de0c ("sctp: add stream reconf timer")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Reviewed-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-01-24 15:24:35 -05:00
..
2017-01-22 16:46:13 -05:00
2017-01-24 12:39:52 -05:00
2016-12-25 17:21:22 +01:00
2016-12-03 23:54:25 -05:00
2017-01-18 13:04:28 -05:00
2017-01-24 15:00:22 -05:00
2016-12-25 17:21:22 +01:00
2016-11-14 13:17:21 -05:00
2017-01-17 14:38:43 -05:00
2016-10-20 11:23:08 -04:00
2017-01-09 11:40:33 +01:00
2016-12-25 17:21:22 +01:00