[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180522120841.xtyw7g7s6rgcncbk@ninjato>
Date: Tue, 22 May 2018 14:08:41 +0200
From: Wolfram Sang <wsa@...-dreams.de>
To: George Cherian <george.cherian@...ium.com>
Cc: linux-i2c@...r.kernel.org, linux-kernel@...r.kernel.org,
jglauber@...ium.com, kamlakant.patel@...ium.com,
mchehab+samsung@...nel.org, davem@...emloft.net,
gregkh@...uxfoundation.org, akpm@...ux-foundation.org,
linus.walleij@...aro.org, rdunlap@...radead.org,
Jayachandran C <jnair@...iumnetworks.com>
Subject: Re: [PATCH 3/4] i2c: xlp9xx: Make sure the transfer size is not more
than I2C_SMBUS_BLOCK_SIZE
On Wed, May 16, 2018 at 12:00:18AM -0700, George Cherian wrote:
> For SMBus transactions the max permissible transfer size is
> I2C_SMBUS_BLOCK_SIZE. It is possible that some clients might
> not follow it strictly occasionally.
> This would lead to stack corruption if the driver copies more than
> I2C_SMBUS_BLOCK_SIZE bytes. Add a check to avoid such conditions.
>
> Signed-off-by: Jayachandran C <jnair@...iumnetworks.com>
> Signed-off-by: George Cherian <george.cherian@...ium.com>
Applied to for-next, thanks!
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists