[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20101211.114731.104061835.davem@davemloft.net>
Date: Sat, 11 Dec 2010 11:47:31 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: jon.mason@...r.com
Cc: netdev@...r.kernel.org, sivakumar.subramani@...r.com,
sreenivasa.honnur@...r.com, ram.vepa@...r.com
Subject: Re: [PATCH 1/4] s2io: rx_ring_sz bounds checking
From: Jon Mason <jon.mason@...r.com>
Date: Fri, 10 Dec 2010 19:40:01 -0600
> modparm rx_ring_sz can be set to be greater than the maximum allowable
> number of blocks. This results in an array overrun when probing the
> driver, and causes memory corruption.
>
> Also, the MAX_RX_DESC_1 multiply the max number of rings by max number
> of blocker per ring by 127, but the driver does the same calculation
> with 127+1. This results in the possibility of the value being set
> being larger than the maximum allowable value.
>
> Finally, clean-up the s2io_ethtool_gringparam code to be more
> intuitive.
>
> Signed-off-by: Jon Mason <jon.mason@...r.com>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists