Re: [PATCHv2] serial: 8250: Fix thread unsafe __dma_tx_complete function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 24, 2014 at 11:34:48AM +0200, Loic Poulain wrote:
> __dma_tx_complete is not protected against concurrent
> call of serial8250_tx_dma. it can lead to circular tail
> index corruption or parallel call of serial_tx_dma on the
> same data portion.
> 
> This patch fixes this issue by holding the port lock.
> 
> Signed-off-by: Loic Poulain <loic.poulain@xxxxxxxxx>

I think this should also go to stable tree. It applies on top of >=v3.9.

Reviewed-by: Heikki Krogerus <heikki.krogerus@xxxxxxxxxxxxxxx>

Thanks!

-- 
heikki
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux