[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160605184443.GD13357@hector.attlocal.net>
Date: Sun, 5 Jun 2016 13:44:43 -0500
From: Andy Gross <andy.gross@...aro.org>
To: Bjorn Andersson <bjorn.andersson@...aro.org>
Cc: David Brown <david.brown@...aro.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jiri Slaby <jslaby@...e.com>, linux-arm-msm@...r.kernel.org,
linux-soc@...r.kernel.org, linux-serial@...r.kernel.org,
linux-kernel@...r.kernel.org,
Frank Rowand <frowand.list@...il.com>,
Nicolas Dechesne <nicolas.dechesne@...aro.org>,
Ivan Ivanov <iivanov.xz@...il.com>,
Stephen Boyd <sboyd@...eaurora.org>, stable@...r.kernel.org
Subject: Re: [PATCH] tty: serial: msm: Don't read off end of tx fifo
On Thu, Jun 02, 2016 at 05:48:28PM -0700, Bjorn Andersson wrote:
> For dm uarts in pio mode tx data is transferred to the fifo register 4
> bytes at a time, but care is not taken when these 4 bytes spans the end
> of the xmit buffer so the loop might read up to 3 bytes past the buffer
> and then skip the actual data at the beginning of the buffer.
>
> Fix this by, analogous to the DMA case, make sure the chunk doesn't
> wrap the xmit buffer.
>
> Fixes: 3a878c430fd6 ("tty: serial: msm: Add TX DMA support")
> Cc: Andy Gross <andy.gross@...aro.org>
> Cc: Ivan Ivanov <iivanov.xz@...il.com>
> Cc: Stephen Boyd <sboyd@...eaurora.org>
> Cc: stable@...r.kernel.org
> Reported-by: Frank Rowand <frowand.list@...il.com>
> Reported-by: Nicolas Dechesne <nicolas.dechesne@...aro.org>
> Signed-off-by: Bjorn Andersson <bjorn.andersson@...aro.org>
Acked-by: Andy Gross <andy.gross@...aro.org>
Powered by blists - more mailing lists