https://github.com/torvalds/linux
Revision eebfb643c0799ecb98ba77d4a0dd0e56f6a17553 authored by Ben Hutchings on 22 January 2015, 12:40:13 UTC, committed by David S. Miller on 27 January 2015, 00:13:15 UTC
If an skb to be transmitted is shorter than the minimum Ethernet frame
length, we currently set the DMA descriptor length to the minimum but
do not add zero-padding.  This could result in leaking sensitive
data.  We also pass different lengths to dma_map_single() and
dma_unmap_single().

Use skb_padto() to pad properly, before calling dma_map_single().

Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 02a5416
History
Tip revision: eebfb643c0799ecb98ba77d4a0dd0e56f6a17553 authored by Ben Hutchings on 22 January 2015, 12:40:13 UTC
sh_eth: Fix padding of short frames on TX
Tip revision: eebfb64
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.8 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 94.0 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 292.1 KB
Makefile -rw-r--r-- 53.1 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top