]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: bcmgenet: correctly pad short packets
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 22 Jul 2014 18:01:52 +0000 (11:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Aug 2014 01:51:47 +0000 (09:51 +0800)
commit34ada3629e591ddb43c1aa799f5e4f39b1a1597a
treeba209fdc30dc2a7c6ebf1878b4151989b66197f5
parent0617859f504df3a9f3b8d8765be98eae066621c8
net: bcmgenet: correctly pad short packets

[ Upstream commit 474ea9cafc459976827a477f2c30eaf6313cb7c1 ]

Packets shorter than ETH_ZLEN were not padded with zeroes, hence leaking
potentially sensitive information. This bug has been present since the
driver got accepted in commit 1c1008c793fa46703a2fee469f4235e1c7984333
("net: bcmgenet: add main driver file").

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/genet/bcmgenet.c