]> git.karo-electronics.de Git - karo-tx-linux.git/commit
af_packet: prevent information leak
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 7 Jun 2011 05:42:06 +0000 (22:42 -0700)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 17 May 2012 15:21:06 +0000 (11:21 -0400)
commit2c92bce21378239199838eb0c3471c8cb3a93dc1
tree49c8807bdef8682281bf5103d2012a4a9ec72944
parent06007b7e2d2e96d1fa36cfd42db13eead3ae7f5d
af_packet: prevent information leak

commit 13fcb7bd322164c67926ffe272846d4860196dc6 upstream.

In 2.6.27, commit 393e52e33c6c2 (packet: deliver VLAN TCI to userspace)
added a small information leak.

Add padding field and make sure its zeroed before copy to user.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
include/linux/if_packet.h
net/packet/af_packet.c