Thread (4 messages) 4 messages, 4 authors, 2020-01-26

Re: [PATCH][next] iwlegacy: ensure loop counter addr does not wrap and cause an infinite loop

From: Stanislaw Gruszka <stf_xl@wp.pl>
Date: 2020-01-26 09:39:37
Also in: kernel-janitors, linux-wireless, lkml

On Sun, Jan 26, 2020 at 12:09:54AM +0000, Colin King wrote:
From: Colin Ian King <redacted>

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
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 <redacted>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help