Re: [PATCH 2/2] dma: calculate the data tranferred by 8250

Greg KH
2013-10-11T13:33:57Z

On Fri, Oct 11, 2013 at 05:42:18PM -0400, Youquan Song wrote:
> When using UART transfers data by DMA mode, but it always shows 0 at
> /sys/class/dma/dma0chan*/bytes_transferred.
>
> Call the new function to calculate how many the data has been transferred
> after doing it by DMA mode.

How nice, you just leaked to userspace the size of passwords and other
sensitive things typed into a serial console :(

No, we can't do this, we fixed up this problem in other places we leaked
the transmition of serial data through proc and sysfs files, let's not
add new ones and go backwards in security.

Sorry, we can't do this, and I really doubt that it matters.

greg k-h