[PATCH for v4.9 LTS 35/86] net: sctp: fix array overrun read on sctp_timer_tbl

2017-06-17 Thread Levin, Alexander (Sasha Levin)
From: Colin Ian King [ Upstream commit 0e73fc9a56f22f2eec4d2b2910c649f7af67b74d ] The comparison on the timeout can lead to an array overrun read on sctp_timer_tbl because of an off-by-one error. Fix this by using < instead of <= and also compare to the array size

[PATCH for v4.9 LTS 35/86] net: sctp: fix array overrun read on sctp_timer_tbl

2017-06-17 Thread Levin, Alexander (Sasha Levin)
From: Colin Ian King [ Upstream commit 0e73fc9a56f22f2eec4d2b2910c649f7af67b74d ] The comparison on the timeout can lead to an array overrun read on sctp_timer_tbl because of an off-by-one error. Fix this by using < instead of <= and also compare to the array size rather than