]> git.baikalelectronics.ru Git - kernel.git/commit
ctcm: avoid wraparound in length of incoming data
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 24 Mar 2009 03:27:48 +0000 (03:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Mar 2009 22:24:30 +0000 (15:24 -0700)
commit880613f73ea2b032a1e581e54de4b47215bbbd61
tree7097afe2b7adc07f38457549a1e89701153ecae9
parent9bd16b5858612c0ad449e5dec3b2a1e98ad09da6
ctcm: avoid wraparound in length of incoming data

Since the receive code should tolerate any incoming garbage, it
should be protected against a potential wraparound when manipulating
length values within incoming data.
block_len is unsigned, so a too large subtraction will cause a
wraparound.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/ctcm_fsms.c
drivers/s390/net/ctcm_main.c