Re: [PATCH net] AX.25: Prevent integer overflows in connect and sendmsg

2020-07-23 Thread David Miller
From: Dan Carpenter Date: Thu, 23 Jul 2020 17:49:57 +0300 > We recently added some bounds checking in ax25_connect() and > ax25_sendmsg() and we so we removed the AX25_MAX_DIGIS checks because > they were no longer required. > > Unfortunately, I believe they are required to prevent integer overf

[PATCH net] AX.25: Prevent integer overflows in connect and sendmsg

2020-07-23 Thread Dan Carpenter
We recently added some bounds checking in ax25_connect() and ax25_sendmsg() and we so we removed the AX25_MAX_DIGIS checks because they were no longer required. Unfortunately, I believe they are required to prevent integer overflows so I have added them back. Fixes: 8885bb0621f0 ("AX.25: Prevent