[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7e76394c-cb50-e6e3-e3be-9574dcd7b5b8@cogentembedded.com>
Date: Sun, 26 Jan 2020 13:04:21 +0300
From: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To: Colin King <colin.king@...onical.com>,
Stanislaw Gruszka <stf_xl@...pl>,
Kalle Valo <kvalo@...eaurora.org>,
"David S . Miller" <davem@...emloft.net>,
Meenakshi Venkataraman <meenakshi.venkataraman@...el.com>,
Wey-Yi Guy <wey-yi.w.guy@...el.com>,
Johannes Berg <johannes.berg@...el.com>,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] iwlegacy: ensure loop counter addr does not wrap
and cause an infinite loop
Hello!
On 26.01.2020 3:09, Colin King wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> The loop counter addr is a u16 where as the upper limit of the loop
> is a an int. In the unlikely event that the il->cfg->eeprom_size is
^^^^
Double article? :-)
> greater than 64K then we end up with an infinite loop since addr will
> wrap around an never reach upper loop limit. Fix this by making addr
> an int.
>
> Addresses-Coverity: ("Infinite loop")
> Fixes: be663ab67077 ("iwlwifi: split the drivers for agn and legacy devices 3945/4965")
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
[...]
MBR< Sergei
Powered by blists - more mailing lists